Skip to main content

Crate otherone_agent

Crate otherone_agent 

Source

Re-exports§

pub use crate::types::AgentStreamCommand;
pub use crate::types::AgentStreamHandle;
pub use crate::types::StreamAgentEvent;

Modules§

error
multi_agent
response_parser
types

Functions§

invoke_agent
调用 Agent — 核心驱动方法 作用:驱动完整的 AI 对话流程,支持非流式模式 关联:调用所有子模块 预期结果:返回最终的 ParsedResponse
invoke_agent_stream
流式 Agent 调用 作用:启动流式 Agent 循环,通过 mpsc channel 实时发送事件 关联:被 otherone 主 crate 的 Otherone::invoke_agent_stream 调用 预期结果:返回 mpsc Receiver,调用者可以异步迭代接收事件
invoke_agent_stream_interactive
可交互的流式 Agent 调用 作用:启动流式 Agent 循环,并返回事件接收器和运行中命令发送器