可选customPrompts: Partial<AgentPrompts>可选llmService: LLMService受保护config受保护llm受保护log可选last受保护get获取当前 LLM 配置
受保护isLLM 是否已启用
设置共享的 ToolRegistry 实例
设置共享的 LLMService 实例
受保护get获取 ToolRegistry 实例。 优先使用共享实例,若无则按需创建(兼容独立使用场景)。
受保护call基础 LLM 调用方法(单次调用模式) 子类可通过 options 参数覆盖默认的 maxTokens、temperature 等配置
可选options: CallLLMOptions受保护get子类必须提供 Agent 名称,用于 logger 标识
Planner 需要 customPrompts 额外配置
更新 Agent 配置 同时更新 AgentConfig 和 LLMService
可选extraParams: Record<string, unknown>子类可 override 处理的额外参数
静态parse
最近一次 callLLM / callLLMWithAgentLoop 调用的 token 用量