We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb727a3 commit 5f6ad04Copy full SHA for 5f6ad04
samples-v2/openai_agents/durable_model_stub.py
@@ -132,12 +132,16 @@ def make_tool_info(tool: Tool) -> ToolInput:
132
# Serialize activity_input to JSON
133
activity_input_json = activity_input.to_json()
134
135
- activity_output = self.durable_orchestration_context.call_activity(
+ task = self.durable_orchestration_context.call_activity(
136
"invoke_model_activity",
137
activity_input_json
138
)
139
140
- raise OrchestratorYielded(activity_output)
+ if not self.durable_orchestration_context.is_replaying:
141
+ raise OrchestratorYielded(task)
142
+
143
+ result = task.result
144
+ return result
145
146
def stream_response(
147
self,
0 commit comments