Skip to content

Commit 1a758d8

Browse files
committed
Fix function schema reference in activity_as_tool
1 parent e468cba commit 1a758d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples-v2/openai_agents/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def run_activity(ctx: RunContextWrapper[Any], input: str) -> Any:
3535
return result
3636

3737
schema = function_schema(
38-
func=run_activity,
38+
func=activity_func._function._func,
3939
name_override=activity_name,
4040
docstring_style=None,
4141
description_override=None,

0 commit comments

Comments
 (0)