include reference to new audio span related concepts
This commit is contained in:
parent
1e8930d6ae
commit
7a4c71f23b
1 changed files with 9 additions and 3 deletions
|
|
@ -1,12 +1,18 @@
|
|||
import asyncio
|
||||
|
||||
from agents import Agent, Runner
|
||||
from agents import Agent, Runner, ModelSettings, OpenAIResponsesModel
|
||||
|
||||
|
||||
async def main():
|
||||
agent = Agent(
|
||||
name="Assistant",
|
||||
instructions="You only respond in haikus.",
|
||||
name="English agent",
|
||||
instructions="You only speak English",
|
||||
model=OpenAIResponsesModel(
|
||||
model="gpt-4o",
|
||||
model_settings=ModelSettings(
|
||||
store=False,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
result = await Runner.run(agent, "Tell me about recursion in programming.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue