Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = ["worktrees"]
# true`, so the version the release workflow bumps is written in exactly one
# place and every crate moves together.
[workspace.package]
version = "0.3.0"
version = "0.4.0"
edition = "2024"
rust-version = "1.88"
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion crates/tinytools-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tinytools = { path = "../tinytools", version = "0.3.0" }
tinytools = { path = "../tinytools", version = "0.4.0" }
tracing = { workspace = true, optional = true }

[features]
Expand Down
4 changes: 3 additions & 1 deletion crates/tinytools-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ and the unknown-tool policy remain the consuming harness's or host's.
| `repair` | `json::recover_object` (relaxed / damaged JSON), `name::resolve` (damaged tool names against the offered set), `args` (aliases, envelopes, schema-guided coercion) |
| `stream` | `StreamScrubber`: the same grammars applied to a live text stream, releasing safe text and completed calls as they arrive |
| `render` | the catalogue, the protocol block for each dialect, the `<tool_result>` envelope and transcript replay |
| `dialect` | `ToolDialect` binding one rendering to one parser: `XmlDialect`, `PFormatDialect`, `NativeDialect` |
| `codecall` | `parse_calls(body, &registry)`: Python / TypeScript function calls, and `render_code_signature` for the catalogue |
| `dialect` | `ToolDialect` binding one rendering to one parser: `XmlDialect`, `PFormatDialect`, `CodeDialect`, `NativeDialect` |
| `types` | `ParsedToolCall`, `CallSource`, `ParseOptions`, `ParseOutcome`, `ParseDiagnostic` |

## Grammars
Expand All @@ -33,6 +34,7 @@ and the unknown-tool policy remain the consuming harness's or host's.
| `Glm` | `tool/param>value` lines | GLM |
| `BareJson` | the whole response is one object / `tool_calls` envelope | Minimax gateways, `llama3.2:3b` under `tool_choice: required` |
| `PFormat` | `name[0\|value]` inside a tag, registry-gated | any prompted model |
| `Code` | `name(arg="value")` / `name({arg: "value"})` inside a tag, registry-gated; literals only, all-or-nothing per body | any code-trained model |

Adding a grammar is one file under `src/parse/grammar/` and one entry in
`GRAMMARS`; batch parsing, streaming, and every dialect pick it up.
Expand Down
Loading
Loading