forked from kent/consciousness
Three fixes:
1. Sanitize tool call arguments before pushing to conversation
history — vllm re-parses them as JSON on the next request and
crashes on invalid JSON from a previous turn. Malformed args now
get replaced with {} and the model gets an error message telling
it to retry with valid JSON.
2. Remove is_split special case — split goes through the normal
job_consolidation_agent path like all other agents.
3. call_for_def always uses API when api_base_url is configured,
regardless of tools field. Remove tools field from all .agent
files — memory tools are always provided by the API layer.
Also adds prompt size guard (800KB max) to catch oversized prompts
before they hit the model context limit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| agents | ||
| bin | ||
| cli | ||
| neuro | ||
| query | ||
| store | ||
| config.rs | ||
| counters.rs | ||
| cursor.rs | ||
| graph.rs | ||
| lib.rs | ||
| lookups.rs | ||
| main.rs | ||
| migrate.rs | ||
| similarity.rs | ||
| spectral.rs | ||
| transcript.rs | ||
| tui.rs | ||
| util.rs | ||