Skip to content

Fix typos and misspellings #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/scripts/translate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
eng_to_non_eng_instructions = {
"common": [
"* The term 'examples' must be code examples when the page mentions the code examples in the repo, it can be translated as either 'code exmaples' or 'sample code'.",
"* The term 'examples' must be code examples when the page mentions the code examples in the repo, it can be translated as either 'code examples' or 'sample code'.",
"* The term 'primitives' can be translated as basic components.",
"* When the terms 'instructions' and 'tools' are mentioned as API parameter names, they must be kept as is.",
"* The terms 'temperature', 'top_p', 'max_tokens', 'presence_penalty', 'frequency_penalty' as parameter names must be kept as is.",
Expand Down
2 changes: 1 addition & 1 deletion src/agents/function_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _detect_docstring_style(doc: str) -> DocstringStyle:

@contextlib.contextmanager
def _suppress_griffe_logging():
# Supresses warnings about missing annotations for params
# Suppresses warnings about missing annotations for params
logger = logging.getLogger("griffe")
previous_level = logger.getEffectiveLevel()
logger.setLevel(logging.ERROR)
Expand Down
2 changes: 1 addition & 1 deletion src/agents/tracing/span_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def export(self) -> dict[str, Any]:
class HandoffSpanData(SpanData):
"""
Represents a Handoff Span in the trace.
Includes source and desitnation agents.
Includes source and destination agents.
"""

__slots__ = ("from_agent", "to_agent")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_agent_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,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 = AgentHooksForTests()
model = FakeModel()
agent_1 = Agent(name="test_1", model=model)
Expand Down Expand Up @@ -295,7 +295,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 = AgentHooksForTests()
model = FakeModel()
agent_1 = Agent(name="test_1", model=model)
Expand Down