You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: [Team][Investigation] Compare OAuth consent function-call behavior with .NET #10020
Team-owned — not open for community pickup yet. Do not start implementation or submit a PR without explicit maintainer agreement.
Category
Other
Problem
Check what happens to later function calls after consent is required, and whether Python needs a configurable error message with a default. The behavior was not fully understood in the meeting.
Evidence
Parent: #10009. Edited checklist; meeting 34:54–35:50. Review Python hosted Toolbox/Responses consent handling and .NET consent-aware function invocation.
Desired Outcome
Investigation needed. Document behavior for consent-required calls and subsequent calls in the same turn, including parallel calls, defaults, customizable messages, streaming, and continuation. Compare .NET prior art and recommend whether Python needs an equivalent capability. Preserve call/result pairing and consent-link validation. Do not equate language parity with automatic approval for an API addition.
Language
Python
Acknowledgements
I searched existing issues and did not find a duplicate.
I will wait for explicit maintainer agreement before starting implementation of a non-trivial change.
changed the title [-][Team][Investigation] Compare OAuth consent function-call behavior with .NET[/-][+]Python: [Team][Investigation] Compare OAuth consent function-call behavior with .NET[/+]on Nov 3, 2026
Decision: structured invocation-time consent with stored continuation
Use a validated structured OAuth-consent action and an incomplete hosted response instead of reporting the consent requirement as an ordinary generic tool failure. Preserve exactly one terminal result for every emitted function call, completed sibling results, and stop later protected calls. Reconcile the complete settled result batch with inference-service history before returning.
Require store=true for this consent handling. Do not implement the earlier ephemeral store=false alternative; surface unsupported unstored handling explicitly without silently persisting or falling back to an apparently completed generic result.
Necessary breaking Core/hosting changes are allowed in the coordinated python-foundry-hosting-rc work, with shared Core compatibility/versioning coordinated separately. Keep policy approval and OAuth consent distinct. A bare user-input exception that leaves an unmatched function call is not a sufficient implementation.
Coordinate #9903 and the function-calling-loop contract for sequential/concurrent batches, streaming/final/non-streaming output, and continuation. This chooses the behavior; exact mechanics remain implementation design. It does not authorize unrelated parity APIs or future checkpoint/retry redesign.
Dependency update: wire structured consent into the split hosts
#10010 is now decided: separate agent-host and native-workflow-host classes. Final hosted consent, persistence, continuation wiring, and migration should follow the selected split, rather than wait for a host-shape choice.
The existing #10020/#9903 direction is unchanged: structured invocation-time OAuth consent, incomplete response status, one terminal result per function call, preservation of completed sibling results, no later protected calls, and required store=true. Coordinate any necessary shared Core changes separately. The split does not authorize ephemeral store=false consent or new checkpoint contracts.
Activity
[-][Team][Investigation] Compare OAuth consent function-call behavior with .NET[/-][+]Python: [Team][Investigation] Compare OAuth consent function-call behavior with .NET[/+]eavanvalkenburg commentedon Nov 3, 2026
/plan
eavanvalkenburg commentedon Nov 9, 2026
Decision: structured invocation-time consent with stored continuation
Use a validated structured OAuth-consent action and an incomplete hosted response instead of reporting the consent requirement as an ordinary generic tool failure. Preserve exactly one terminal result for every emitted function call, completed sibling results, and stop later protected calls. Reconcile the complete settled result batch with inference-service history before returning.
Require
store=truefor this consent handling. Do not implement the earlier ephemeralstore=falsealternative; surface unsupported unstored handling explicitly without silently persisting or falling back to an apparently completed generic result.Necessary breaking Core/hosting changes are allowed in the coordinated
python-foundry-hosting-rcwork, with shared Core compatibility/versioning coordinated separately. Keep policy approval and OAuth consent distinct. A bare user-input exception that leaves an unmatched function call is not a sufficient implementation.Coordinate #9903 and the function-calling-loop contract for sequential/concurrent batches, streaming/final/non-streaming output, and continuation. This chooses the behavior; exact mechanics remain implementation design. It does not authorize unrelated parity APIs or future checkpoint/retry redesign.
eavanvalkenburg commentedon Nov 9, 2026
Dependency update: wire structured consent into the split hosts
#10010 is now decided: separate agent-host and native-workflow-host classes. Final hosted consent, persistence, continuation wiring, and migration should follow the selected split, rather than wait for a host-shape choice.
The existing #10020/#9903 direction is unchanged: structured invocation-time OAuth consent, incomplete response status, one terminal result per function call, preservation of completed sibling results, no later protected calls, and required
store=true. Coordinate any necessary shared Core changes separately. The split does not authorize ephemeralstore=falseconsent or new checkpoint contracts.