Skip to content

Commit e2d2938

Browse files
authored
Consistently use "Python" in docstrings (#1261)
1 parent 8f1ed6c commit e2d2938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/agents/function_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def to_call_args(self, data: BaseModel) -> tuple[list[Any], dict[str, Any]]:
7676

7777
@dataclass
7878
class FuncDocumentation:
79-
"""Contains metadata about a python function, extracted from its docstring."""
79+
"""Contains metadata about a Python function, extracted from its docstring."""
8080

8181
name: str
8282
"""The name of the function, via `__name__`."""
@@ -194,7 +194,7 @@ def function_schema(
194194
strict_json_schema: bool = True,
195195
) -> FuncSchema:
196196
"""
197-
Given a python function, extracts a `FuncSchema` from it, capturing the name, description,
197+
Given a Python function, extracts a `FuncSchema` from it, capturing the name, description,
198198
parameter descriptions, and other metadata.
199199
200200
Args:
@@ -208,7 +208,7 @@ def function_schema(
208208
descriptions.
209209
strict_json_schema: Whether the JSON schema is in strict mode. If True, we'll ensure that
210210
the schema adheres to the "strict" standard the OpenAI API expects. We **strongly**
211-
recommend setting this to True, as it increases the likelihood of the LLM providing
211+
recommend setting this to True, as it increases the likelihood of the LLM producing
212212
correct JSON input.
213213
214214
Returns:

0 commit comments

Comments
 (0)