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 9ca14a7 commit af0a5e6Copy full SHA for af0a5e6
samples-v2/openai_agents/tools.py
@@ -30,7 +30,7 @@ def activity_as_tool(context: DurableAIAgentContext, activity_func: Callable) ->
30
31
activity_name = activity_func._function._name
32
33
- def run_activity(ctx: RunContextWrapper[Any], input: str) -> Any:
+ async def run_activity(ctx: RunContextWrapper[Any], input: str) -> Any:
34
result = context.get_activity_call_result(activity_name, input)
35
return result
36
0 commit comments