Closed
Description
Yes you can do something like this:
class MyContext: should_enable_foo_tool: bool = False def is_foo_enabled(ctx, agent) -> bool: return ctx.context.should_enable_foo_tool @function_tool(is_enabled=is_foo_enabled) def foo_tool(...): ...
Originally posted by @rm-openai in #918
Metadata
Metadata
Assignees
Labels
No labels