Skip to content

Python: [Team][Investigation] Compare OAuth consent function-call behavior with .NET #10020

Done

Description

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.

Activity

  1. added
    python
    on Nov 3, 2026
  2. 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
  3. eavanvalkenburg commented on Nov 3, 2026

    @eavanvalkenburg
    MemberAuthor

    /plan

  4. eavanvalkenburg commented on Nov 9, 2026

    @eavanvalkenburg
    MemberAuthor

    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.

  5. eavanvalkenburg commented on Nov 9, 2026

    @eavanvalkenburg
    MemberAuthor

    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.

  6. moved this from In Progress to Done in Agent Frameworkon Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

python

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions