Skip to content

Commit 54cda1c

Browse files
committed
include reference to new audio span related concepts
1 parent 281144e commit 54cda1c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

examples/basic/hello_world.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import asyncio
22

3-
from agents import Agent, Runner
3+
from agents import Agent, Runner, ModelSettings, OpenAIResponsesModel
44

55

66
async def main():
77
agent = Agent(
8-
name="Assistant",
9-
instructions="You only respond in haikus.",
8+
name="English agent",
9+
instructions="You only speak English",
10+
model=OpenAIResponsesModel(
11+
model="gpt-4o",
12+
model_settings=ModelSettings(
13+
store=False,
14+
)
15+
)
1016
)
1117

1218
result = await Runner.run(agent, "Tell me about recursion in programming.")

0 commit comments

Comments
 (0)