Skip to content

Commit 7d39b2c

Browse files
authored
Fix some typos. (#18)
1 parent cfb1704 commit 7d39b2c

File tree

1 file changed

+8
-8
lines changed
  • agents/agentic_loop_tool_call_openai_python

1 file changed

+8
-8
lines changed

agents/agentic_loop_tool_call_openai_python/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
description: A basic agentic loop that invokes a dyanamic set of tools.
2+
description: A basic agentic loop that invokes a dynamic set of tools.
33
tags: [agents, python]
44
priority: 775
55
-->
@@ -21,7 +21,7 @@ Being external API calls, invoking the LLM and invoking any functions/tools are
2121
This recipe highlights the following key design decisions:
2222
- We use dynamic Activities to allow the agent to be loosely coupled from specific
2323
tools. This sample isolates the tools in the `tools` directory; changing the tools
24-
requires NO changes to the agent implemention.
24+
requires NO changes to the agent implementation.
2525
- Because there is an agentic loop, each LLM invocation is passed the accumulated
2626
*conversation history*, that includes the initial user input as well as LLM and tool
2727
calls.
@@ -59,7 +59,7 @@ the initial user input and any previous LLM responses and tool outputs.
5959
demonstrates a most simple UX where the user provides single shot input. Note
6060
however that the agent is not single shot.
6161

62-
*File:workflows/agent.py*
62+
*File: workflows/agent.py*
6363

6464
```python
6565
from temporalio import workflow
@@ -127,7 +127,7 @@ Otherwise, the Activity invocation is the same as any non-dynamic Activity
127127
invocation passing the name of the Activity, the arguments and any Activity
128128
configurations.
129129

130-
*File: workflows\agent.py*
130+
*File: workflows/agent.py*
131131

132132
```python
133133
async def _handle_function_call(self, item, result, input_list):
@@ -256,9 +256,9 @@ async def dynamic_tool_activity(args: Sequence[RawValue]) -> dict:
256256
The `oai_responses_tool_from_model` function accepts a tool name and description, as well as a list of argument name/description pairs and returns json that is in the format expected for tool definitions in the OpenAI responses API.
257257

258258
> [!WARNING]
259-
> The API used to generate the tools json is an interal function from the [Open AI API](https://github.com/openai/openai-python) and may therefore change in the future. There currently is no public API to generate the tool definition from a Pydantic model or a function signature.
259+
> The API used to generate the tools json is an internal function from the [Open AI API](https://github.com/openai/openai-python) and may therefore change in the future. There currently is no public API to generate the tool definition from a Pydantic model or a function signature.
260260
261-
*File:helpers/tool_helpers.py*
261+
*File: helpers/tool_helpers.py*
262262
```python
263263
from openai.lib._pydantic import to_strict_json_schema # private API; may change
264264
# there currently is no public API to generate the tool definition from a Pydantic model
@@ -306,7 +306,7 @@ updating the `get_tools` and `get_handler` methods).
306306
the LLM.
307307
- The `get_handler` method captures the mapping from tool name to tool function
308308

309-
*File: tools/__init__py*
309+
*File: tools/__init__.py*
310310
```python
311311
# Uncomment and comment out the tools you want to use
312312

@@ -344,7 +344,7 @@ def get_tools() -> list[dict[str, Any]]:
344344
# return [RANDOM_NUMBER_TOOL_OAI]
345345
```
346346

347-
The tool descriptions and functions are defined in `tools/get_location.,py`,
347+
The tool descriptions and functions are defined in `tools/get_location.py`,
348348
`tools/get_weather.py` and `tools/random_stuff.py` files. Each of these files contains:
349349
- data structures for function arguments
350350
- tool definitions (in `json` form)

0 commit comments

Comments
 (0)