Skip to content

Conversation

cramosc
Copy link
Contributor

@cramosc cramosc commented Mar 28, 2025

Currently when using extra tools added either via

.set use_tools some_tool

or the agent config yaml

use_tools: some_tool

these tools cannot be used when in agent mode. The reason is that the ToolCall::eval method only looks inside the tools defined inside the agent agent.functions() and when not found it returns an error instead of looking into the config's use_tools

@cramosc cramosc force-pushed the fix/extra-tools-agent branch from 3d534de to 0742796 Compare March 28, 2025 13:27
@sigoden
Copy link
Owner

sigoden commented Mar 28, 2025

@cramosc
Please remove .vscode/launch.json

Currently when using extra tools added either via
```
.set use_tools some_tool
```
or the agent config yaml
```
use_tools: some_tool
```
these tools cannot be used when in agent mode. The reason is that the `ToolCall::eval` method only looks inside the tools defined inside the agent `agent.functions()` and when not found it returns an error instead of looking into the config's `use_tools`
@cramosc cramosc force-pushed the fix/extra-tools-agent branch from 0742796 to 9571f08 Compare March 28, 2025 14:03
@cramosc
Copy link
Contributor Author

cramosc commented Mar 28, 2025

@cramosc Please remove .vscode/launch.json

oops sorry. Removed

@sigoden sigoden merged commit fe6263b into sigoden:main Mar 28, 2025
3 checks passed
dbroeglin pushed a commit to dbroeglin/aichat that referenced this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants