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 f3cac17 commit d7de470Copy full SHA for d7de470
docs/tools.md
@@ -369,11 +369,13 @@ asyncio.run(main())
369
```
370
371
The `is_enabled` parameter accepts:
372
+
373
- **Boolean values**: `True` (always enabled) or `False` (always disabled)
374
- **Callable functions**: Functions that take `(context, agent)` and return a boolean
375
- **Async functions**: Async functions for complex conditional logic
376
377
Disabled tools are completely hidden from the LLM at runtime, making this useful for:
378
379
- Feature gating based on user permissions
380
- Environment-specific tool availability (dev vs prod)
381
- A/B testing different tool configurations
0 commit comments