Skip to main content

Module derived_shared

Module derived_shared 

Source

Structs§

AgentContextConfig
子 agent 调用 LLM 前用到的上下文配置(从父 AgentConfig 抽取)
DerivedAgentShared
派生 Agent(SubAgent / Teammate)共享字段
LlmNonStreamRequest
call_llm_non_stream 的请求参数(封装 7 个独立参数为结构体)
SubAgentDisplay
子 Agent UI 展示快照(克隆无锁,给 UI 渲染用)
SubAgentHandle
register 返回的 handle 集合,供 loop 写入状态
SubAgentMetrics
子 Agent(SubAgent / Teammate)的 metrics 累加器
SubAgentSnapshot
一个正在运行(或刚结束)的子 Agent 的快照
SubAgentTracker
管理所有运行中的子 Agent 快照,供 /dump 读取。
ToolExecContext
execute_tool_with_permission 的上下文参数(封装 5 个独立参数为结构体)

Enums§

SubAgentStatus
子 Agent 细粒度运行状态

Functions§

call_llm_non_stream
对瞬时错误(网络超时、5xx、429)自动重试,策略针对多 Agent 并发优化:
create_runtime_and_client
创建 tokio runtime 和 LlmClient
execute_tool_with_permission
执行单个工具调用(含权限检查)
extract_tool_items
从 LLM response 的 tool_calls 中提取 ToolCallItem 列表

Type Aliases§

RetryCallback
非流式调用 LLM(含指数退避重试)
RunningSubAgentDump
单次 snapshot 元素:(id, description, mode, system_prompt, messages)