consciousness/src
Kent Overstreet 204ba5570a agent: send images as multi_modal_data on completion requests
Split the prompt assembly into two forms: the AST keeps the
fully-expanded representation (N image_pads per image, for accurate
context budget accounting), while the request wire form collapses
each image to a single <|image_pad|> bookended by vision_start/end
and ships the raw bytes out-of-band as a base64 data URI in a new
`multi_modal_data.image` field on /v1/completions.

vLLM's Qwen3VL processor uses PromptReplacement with target=single
<|image_pad|> and replacement=N image_pads, so the wire-form matches
what the processor expects and it re-expands to N server-side.

Server side needs /v1/completions to accept multi_modal_data for
this to land images end-to-end — that's the next piece.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-16 18:08:26 -04:00
..
agent agent: send images as multi_modal_data on completion requests 2026-04-16 18:08:26 -04:00
bin context: tighten timestamp schema; every AstNode has one 2026-04-16 12:35:16 -04:00
cli config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
hippocampus scoring: drop dead Elo/agent_budget block in consolidation_plan 2026-04-16 16:08:20 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
subconscious config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
thalamus hours_since_last_dream: return 0 if dream in progress 2026-04-15 21:58:03 -04:00
user agent: add NodeBody::Image for Qwen3-VL vision input 2026-04-16 18:00:10 -04:00
config.rs config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
config_writer.rs config_writer: emit pretty multi-line sections, drop json5 crate 2026-04-16 13:08:19 -04:00
lib.rs config_writer: json5 round-trip editing via json-five 2026-04-16 11:48:47 -04:00
locks.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
main.rs cli: add 'node restore' command for undeleting nodes 2026-04-15 01:40:29 -04:00
mcp_server.rs memory.rs: clean up store access and tool dispatch 2026-04-13 14:27:38 -04:00
session.rs delete claude code integration 2026-04-09 19:58:07 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00