rename agents/main→assistant, role-based default entry agent
Nightly Build / build (push) Successful in 6m31s

This commit is contained in:
2026-07-21 21:40:06 +01:00
parent 17f5769e0d
commit 8ff64cbddc
22 changed files with 204 additions and 44 deletions
+4 -2
View File
@@ -12,8 +12,10 @@ use crate::message_meta::MessageMetadata;
/// Optional parameters for a [`ChatHubApi::send_message`] call.
#[derive(Default)]
pub struct SendMessageOptions {
/// Agent to use for this source's session. Defaults to `"main"` if not set.
/// Only takes effect when a new session is created — ignored for existing sessions.
/// Agent to use for this source's session. When unset, falls back to the
/// hub's owner-resolved default entry agent (the caller's role `attrs.chat_agent`,
/// else `DEFAULT_CHAT_AGENT`). Only takes effect when a new session is created —
/// ignored for existing sessions.
pub agent_id: Option<String>,
/// Named substitutions applied to the agent's system prompt.
/// Each entry replaces the sentinel `__KEY__` in the loaded prompt text.