Skip to content

Commit 4cb011c

Browse files
authored
Fix Typos (#258)
Noticed a bunch of typos when reading code, fixing.
2 parents 8282bc6 + ab0d940 commit 4cb011c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

examples/basic/lifecycle_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class FinalResult(BaseModel):
7979

8080
start_agent = Agent(
8181
name="Start Agent",
82-
instructions="Generate a random number. If it's even, stop. If it's odd, hand off to the multipler agent.",
82+
instructions="Generate a random number. If it's even, stop. If it's odd, hand off to the multiplier agent.",
8383
tools=[random_number],
8484
output_type=FinalResult,
8585
handoffs=[multiply_agent],

examples/research_bot/agents/search_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
INSTRUCTIONS = (
55
"You are a research assistant. Given a search term, you search the web for that term and"
66
"produce a concise summary of the results. The summary must 2-3 paragraphs and less than 300"
7-
"words. Capture the main points. Write succintly, no need to have complete sentences or good"
7+
"words. Capture the main points. Write succinctly, no need to have complete sentences or good"
88
"grammar. This will be consumed by someone synthesizing a report, so its vital you capture the"
99
"essence and ignore any fluff. Do not include any additional commentary other than the summary"
1010
"itself."

src/agents/models/openai_chatcompletions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def extract_all_content(
757757
elif isinstance(c, dict) and c.get("type") == "input_file":
758758
raise UserError(f"File uploads are not supported for chat completions {c}")
759759
else:
760-
raise UserError(f"Unknonw content: {c}")
760+
raise UserError(f"Unknown content: {c}")
761761
return out
762762

763763
@classmethod

src/agents/models/openai_responses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def get_response(
8383
)
8484

8585
if _debug.DONT_LOG_MODEL_DATA:
86-
logger.debug("LLM responsed")
86+
logger.debug("LLM responded")
8787
else:
8888
logger.debug(
8989
"LLM resp:\n"

tests/test_agent_runner_streamed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ async def test_streaming_events():
674674
total_expected_item_count = sum(expected_item_type_map.values())
675675

676676
assert event_counts["run_item_stream_event"] == total_expected_item_count, (
677-
f"Expectd {total_expected_item_count} events, got {event_counts['run_item_stream_event']}"
677+
f"Expected {total_expected_item_count} events, got {event_counts['run_item_stream_event']}"
678678
f"Expected events were: {expected_item_type_map}, got {event_counts}"
679679
)
680680

tests/test_global_hooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class Foo(TypedDict):
223223

224224

225225
@pytest.mark.asyncio
226-
async def test_structed_output_non_streamed_agent_hooks():
226+
async def test_structured_output_non_streamed_agent_hooks():
227227
hooks = RunHooksForTests()
228228
model = FakeModel()
229229
agent_1 = Agent(name="test_1", model=model)
@@ -296,7 +296,7 @@ async def test_structed_output_non_streamed_agent_hooks():
296296

297297

298298
@pytest.mark.asyncio
299-
async def test_structed_output_streamed_agent_hooks():
299+
async def test_structured_output_streamed_agent_hooks():
300300
hooks = RunHooksForTests()
301301
model = FakeModel()
302302
agent_1 = Agent(name="test_1", model=model)

0 commit comments

Comments
 (0)