Crate llm_agent

Crate llm_agent 

Source

Modules§

mcp

Structs§

Agent
AgentItemTool
AgentParams
Parameters required to create a new agent.
AgentRequest
AgentResponse
AgentStreamItemEvent
AgentToolResult
RunSession
Manages the run session for an agent. It initializes all necessary components for the agent to run and handles the execution of the agent’s tasks. Once finished, the session cleans up any resources used during the run. The session can be reused in multiple runs. RunSession binds to a specific
RunSessionRequest
RunSessionRequest contains the input items used for a run.
RunState

Enums§

AgentError
AgentItem
An input for or output entry generated by the agent run
AgentStreamEvent
Stream events emitted by the agent during runStream call.
InstructionParam

Traits§

AgentTool
Agent tool that can be used by the agent to perform specific tasks. Any type that implements the AgentTool trait can be used as a tool.
Toolkit
Toolkit produces a per-session toolkit session that can provide dynamic prompt and tool data.
ToolkitSession
ToolkitSession exposes dynamically resolved tools and system prompt data for a run session.

Type Aliases§

AgentStream
BoxedError