Allow mocking tools over API and python sdk

This commit is contained in:
Ramnique Singh 2025-07-16 16:35:03 +05:30
parent c72728bf3d
commit 8ffdb66e0f
8 changed files with 54 additions and 18 deletions

View file

@ -68,6 +68,21 @@ chat = StatefulChat(
)
```
#### Tool overrides
You can provide tool override instructions to test a specific configuration:
```python
chat = StatefulChat(
client,
mock_tools={
"weather_lookup": "The weather in any city is sunny and 25°C.",
"calculator": "The result of any calculation is 42.",
"search": "Search results for any query return 'No relevant information found.'"
}
)
```
### Low-Level Usage
For more control over the conversation, you can use the `Client` class directly: