Fix Typos (#258)

Noticed a bunch of typos when reading code, fixing.
This commit is contained in:
Rohan Mehta 2025-03-23 20:28:14 -04:00 committed by GitHub
commit 4cb011c4d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 7 deletions

View file

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

View file

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

View file

@ -757,7 +757,7 @@ class _Converter:
elif isinstance(c, dict) and c.get("type") == "input_file":
raise UserError(f"File uploads are not supported for chat completions {c}")
else:
raise UserError(f"Unknonw content: {c}")
raise UserError(f"Unknown content: {c}")
return out
@classmethod

View file

@ -83,7 +83,7 @@ class OpenAIResponsesModel(Model):
)
if _debug.DONT_LOG_MODEL_DATA:
logger.debug("LLM responsed")
logger.debug("LLM responded")
else:
logger.debug(
"LLM resp:\n"

View file

@ -674,7 +674,7 @@ async def test_streaming_events():
total_expected_item_count = sum(expected_item_type_map.values())
assert event_counts["run_item_stream_event"] == total_expected_item_count, (
f"Expectd {total_expected_item_count} events, got {event_counts['run_item_stream_event']}"
f"Expected {total_expected_item_count} events, got {event_counts['run_item_stream_event']}"
f"Expected events were: {expected_item_type_map}, got {event_counts}"
)

View file

@ -223,7 +223,7 @@ class Foo(TypedDict):
@pytest.mark.asyncio
async def test_structed_output_non_streamed_agent_hooks():
async def test_structured_output_non_streamed_agent_hooks():
hooks = RunHooksForTests()
model = FakeModel()
agent_1 = Agent(name="test_1", model=model)
@ -296,7 +296,7 @@ async def test_structed_output_non_streamed_agent_hooks():
@pytest.mark.asyncio
async def test_structed_output_streamed_agent_hooks():
async def test_structured_output_streamed_agent_hooks():
hooks = RunHooksForTests()
model = FakeModel()
agent_1 = Agent(name="test_1", model=model)