Move tool definitions into ContextState as system entries
Tool definitions are now pushed as a ContextEntry in the system section at Agent construction time, formatted in the Qwen chat template style. They're tokenized, scored, and treated like any other context entry. assemble_prompt_tokens() no longer takes a tools parameter — tools are already in the context. This prepares for the switch to /v1/completions where tools aren't a separate API field. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
67e3228c32
commit
e9765799c4
3 changed files with 220 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ json5 = "1.3"
|
|||
|
||||
crossterm = { version = "0.29", features = ["event-stream"] }
|
||||
ratatui = { version = "0.30", features = ["unstable-rendered-line-info"] }
|
||||
tui-markdown = { git = "https://github.com/koverstreet/tui-markdown", subdirectory = "tui-markdown", default-features = false }
|
||||
tui-markdown = { git = "https://github.com/koverstreet/tui-markdown", subdirectory = "tui-markdown" }
|
||||
tui-textarea = { version = "0.10.2", package = "tui-textarea-2" }
|
||||
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue