Commit cfe1439
authored
feat(tools): add tool dispatch and agentic docs (#2063)
* Add max tool rounds
* feat(tools): add http tool dispatch
* feat(tools): add CLI agentic flags, secure tool dispatch, Python SDK support
- Remove tool_dispatch_url from HTTP request body to prevent SSRF from
untrusted API clients. It is now server-level only via --tool-dispatch-url
CLI flag, while the Rust and Python SDKs can still set it per-request.
- Add --max-tool-rounds and --tool-dispatch-url CLI flags to `serve` command,
wired through AgenticDefaults axum Extension.
- Expose max_tool_rounds and tool_dispatch_url in Python SDK
ChatCompletionRequest for trusted per-request control.
- Rewrite TOOL_CALLING.md for cohesive structure: two modes (basic vs
agentic), unified examples section, clear dispatch order.
- Add examples: tool_dispatch.py, agentic_tool_rounds.py, agentic_tools.py.
- Update README agentic section and HTTP.md with security note.
* Add agents docs
* Simplify docs
* Simplify docs1 parent 1e3c73b commit cfe1439
41 files changed
Lines changed: 1846 additions & 577 deletions
File tree
- docs
- examples
- python
- server
- mistralrs-bench/src
- mistralrs-cli/src
- args
- commands
- run
- mistralrs-core/src
- engine
- tools
- parsers
- mistralrs-mcp/src
- mistralrs-pyo3/src
- mistralrs-server-core/src
- mistralrs-server/src
- mistralrs
- examples/advanced
- mcp_client
- perplexity
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
0 commit comments