Python: [BREAKING] Renamed create_agent to as_agent (#3249)

* Renamed create_agent to as_agent

* Override for as_agent

* Added override
This commit is contained in:
Dmytro Struk
2026-01-16 11:21:52 -08:00
committed by GitHub
Unverified
parent a151f10cc2
commit 5687e13221
163 changed files with 498 additions and 358 deletions
@@ -75,7 +75,7 @@ async def main() -> None:
chat_client = OpenAIChatClient()
# Create an agent with tools that use kwargs
inner_agent = chat_client.create_agent(
inner_agent = chat_client.as_agent(
name="data_agent",
instructions=(
"You are a data access agent. Use the available tools to help users. "