LemonAgent. Types. AgentState
(lemon_agent v0.1.0)
View Source
Runtime state of the agent containing all configuration and conversation data.
Fields
system_prompt- The system prompt for the agentmodel- The AI model being usedthinking_level- Level of extended reasoningtools- Available tools for the agentmessages- Conversation history (can include custom message types)is_streaming- Whether currently streaming a responsestream_message- The message being streamed (if any)pending_tool_calls- Set of tool call IDs awaiting executionerror- Error message if the agent encountered an error
Summary
Types
@type t() :: %LemonAgent.Types.AgentState{ error: String.t() | nil, is_streaming: boolean(), messages: [LemonAgent.Types.agent_message()], model: LemonAi.Types.Model.t(), pending_tool_calls: MapSet.t(String.t()), stream_message: LemonAgent.Types.agent_message() | nil, system_prompt: String.t(), thinking_level: LemonAgent.Types.thinking_level(), tools: [LemonAgent.Types.AgentTool.t()] }