consciousness/src
Kent Overstreet be6ba4e9a5 agent: bundle sampling fields as SamplingParams on AgentState
Collapse the split `temperature` / `top_p` / `top_k` fields on
AgentState into a single `sampling: SamplingParams` struct, mirroring
how the wire-level fields flow into the Generate RPC. Adds
`max_tokens` to SamplingParams so it's actually plumbed end to end
(previously the client had a hardcoded 4096 fallback inside
`run_session_generate`).

AgentState construction sites now set `sampling: SamplingParams { ...
max_tokens: 4096 }` as the default. The assignment sites in
oneshot.rs / subconscious.rs / unconscious.rs switch from
`st.temperature = X` to `st.sampling.temperature = X`.

`stream_session_mm` takes `SamplingParams` directly; the
`sampling_max_tokens()` helper goes away. `pb::GenerateRequest` is
populated with `sampling.max_tokens` (and the other fields) in
`run_session_generate`. SamplingParams is `pub` so it can be
embedded in the public AgentState without a visibility warning.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-24 12:37:20 -04:00
..
agent agent: bundle sampling fields as SamplingParams on AgentState 2026-04-24 12:37:20 -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 agent: bundle sampling fields as SamplingParams on AgentState 2026-04-24 12:37:20 -04:00
subconscious agent: bundle sampling fields as SamplingParams on AgentState 2026-04-24 12:37:20 -04:00
thalamus thalamus/supervisor: reap channel daemons via SIGCHLD instead of SIG_IGN 2026-04-24 11:54:25 -04:00
user salience: add gRPC client + TLS plumbing for stateful vllm sessions 2026-04-24 11:56:32 -04:00
config.rs user: F7 compare screen 2026-04-17 16:12:26 -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 salience: add gRPC client + TLS plumbing for stateful vllm sessions 2026-04-24 11:56:32 -04:00
locks.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
logging.rs salience: add gRPC client + TLS plumbing for stateful vllm sessions 2026-04-24 11:56:32 -04:00
main.rs poc-memory: load AppConfig at startup 2026-04-16 18:19:01 -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