Skip to content

Commit e54397f

Browse files
committed
Rename call_activity method to get_activity_call_result
1 parent bb260b6 commit e54397f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples-v2/openai_agents/durable_ai_agent_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, context: DurableOrchestrationContext):
88
self.activities_called = 0
99
self.tasks_to_yield = []
1010

11-
def call_activity(self, activity_name, input: str):
11+
def get_activity_call_result(self, activity_name, input: str):
1212
task = self.context.call_activity(activity_name, input)
1313

1414
self.activities_called += 1

samples-v2/openai_agents/durable_model_stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def make_tool_info(tool: Tool) -> ToolInput:
131131

132132
activity_input_json = activity_input.to_json()
133133

134-
response = self.context.call_activity("invoke_model_activity", activity_input_json)
134+
response = self.context.get_activity_call_result("invoke_model_activity", activity_input_json)
135135
json_response = json.loads(response)
136136
model_response = ModelResponse(**json_response)
137137
return model_response

0 commit comments

Comments
 (0)