sdk-python
sdk-python copied to clipboard
Vended tools: use_agent — delegation pattern (py + ts)
Part of #3234. Multi-agent pattern: delegation.
Add a use_agent vended tool in both SDKs: the agent constructs and invokes a nested agent at runtime. Shim over Agent + as_tool()/asTool(); the tool is spec, model resolution, and invocation.
- Shares the model config mapping (
model_provider/model_settings-> typed model objects) with the other multi-agent tools. - A follow-up design review on dynamic agent creation is expected; this issue is the shim.
Done: ships in both SDKs with types, tests, README, docs section.
Update 10/6: Addressing feedback on Python side. Will port to TS after.