You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: temporalio/contrib/openai_agents/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ In this example, Temporal provides the durable execution wrapper: the `HelloWorl
50
50
The content of that method, is regular OpenAI Agents SDK code.
51
51
52
52
If you are familiar with Temporal and with Open AI Agents SDK, this code will look very familiar.
53
-
We the `@workflow.defn`annotations on the `HelloWorldAgent` indicates that this class will contain durable execution and the`@workflow.run` annotation defines the entrypoint.
54
-
We use the `Agent` class from OpenAI Agents SDK to define a simple agent, instructing it to always responds with haikus.
53
+
The `@workflow.defn`annotation on the `HelloWorldAgent` indicates that this class will contain durable execution logic. The`@workflow.run` annotation defines the entry point.
54
+
We use the `Agent` class from OpenAI Agents SDK to define a simple agent, instructing it to always respond with haikus.
55
55
We then run that agent, using the `Runner` class from OpenAI Agents SDK, passing through `prompt` as an argument.
56
56
57
57
@@ -225,7 +225,7 @@ if __name__ == "__main__":
225
225
226
226
We use the `OpenAIAgentsPlugin` to configure Temporal for use with OpenAI Agents SDK.
227
227
The plugin automatically handles several important setup tasks:
228
-
- Ensures proper serialization by of Pydantic types
228
+
- Ensures proper serialization of Pydantic types
229
229
- Propagates context for [OpenAI Agents tracing](https://openai.github.io/openai-agents-python/tracing/).
230
230
- Registers an activity for invoking model calls with the Temporal worker.
231
231
- Configures OpenAI Agents SDK to run model calls as Temporal activities.
@@ -441,7 +441,7 @@ SQLite storage is not suited to a distributed environment.
441
441
442
442
### Utilities
443
443
444
-
The REPL utility is not suited to a distributed setting.
444
+
The REPL utility is not suitable for a distributed setting.
0 commit comments