Skip to content

Python: [Team][Action] Improve prepare_options documentation and examples #10021

In progress

Description

Team-owned — not open for community pickup yet. Do not start implementation or submit a PR without explicit maintainer agreement.

Category

Documentation

Problem

Explain the per-request purpose of prepare_options, callback input/output, precedence, and protected fields. Include an example that strips a caller-selected model while preserving developer defaults. Incorporate the prepare-options investigation under the parent.

Evidence

Parent: #10009. Edited checklist; meeting 40:36–43:57; local _responses.py annotation.

Desired Outcome

Action. Update host docstrings, package guidance, and directly related examples based on verified behavior. Distinguish per-run options from agent-construction defaults, sync/async hooks, protocol-specific supported paths, validation after the hook, and host-controlled fields that cannot be reintroduced.

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][Action] Improve prepare_options documentation and examples[/-] [+]Python: [Team][Action] Improve prepare_options documentation and examples[/+] on Nov 3, 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