mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 08:26:22 +02:00
Allow mocking tools over API and python sdk
This commit is contained in:
parent
c72728bf3d
commit
8ffdb66e0f
8 changed files with 54 additions and 18 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue