Skip to main content

Module chat_agents

Module chat_agents 

Source
Expand description

Group-chat sub-agent hierarchy — local LLM / Webizen agents are bound to human principals.

Each participant may run a different model/backend. Processed outcomes (not raw prompts) can be shared with other participants when an explicit OutcomeSharingPolicy permits it.

Structs§

Mention
A parsed @mention extracted from a chat prompt.
OutcomeSharingPolicy
Permission for sharing Webizen-processed outcomes (summaries, grounded answers) with peers.
ParticipantAgentConfig
Local user’s sub-agent binding for a chat session.
PeerAgentSummary
Summary of a peer’s disclosed agent for cooperative multi-LLM briefing.

Enums§

AgentBackendKind
OutcomeVisibility
PromptDispatch
The outcome of parsing a prompt for agent dispatch.

Functions§

bind_local_roster_agent
Bind the local session projection to a named roster agent immediately before its turn. The roster remains the source of truth; this small session record is used solely to attribute the persisted chat message.
build_cooperative_agents_block
Builds cooperative-agents-block.
can_relay_agent_outcome
Whether a processed agent outcome may be relayed to group peers.
can_use_in_peer_llm_context
Whether another participant’s sub-agent may cite this outcome in inference context.
can_view_agent_outcome
Whether viewer_did may read a peer’s shared agent outcome in relay / UI.
collect_peer_agent_summaries
Collect peer agent disclosures from committed, shareable agent messages in the session.
compile_sub_agent_did
Deterministic sub-agent DID scoped to principal + session.
decorate_local_agent_message
Apply sub-agent metadata to an agent-role message from the local principal.
default_outcome_sharing
Default outcome-sharing policy.
default_outcome_sharing_for_profile
Default outcome-sharing for a profile.
ensure_local_agent_config
Ensures local-agent-config.
fresh_local_agent_config
Fresh local agent config.
is_participant
true when participant.
load_local_agent_config
Loads local-agent-config.
local_agent_display_name
Local agent-display-name.
parse_mention
Parse the first @mention from a prompt.
participant_dids
Participant DIDs.
resolve_mention
Resolve a parsed mention against the roster.
resolve_prompt_dispatch
Parse a prompt and resolve any @mention against the roster.
save_local_agent_config
Saves local-agent-config.
strip_mention
Strip the first @mention from a prompt, returning the cleaned text.
update_outcome_sharing
Updates outcome-sharing policy.
validate_ingested_agent_message
Validates an ingested agent message.