org.llm4s.agent.AgentState
See theAgentState companion object
case class AgentState(conversation: Conversation, tools: ToolRegistry, initialQuery: Option[String], status: AgentStatus, logs: Seq[String], systemMessage: Option[SystemMessage], completionOptions: CompletionOptions, availableHandoffs: Seq[Handoff])
Represents the current state of an agent run.
Value parameters
- availableHandoffs
-
Available handoffs for this agent (used for detecting handoff tool calls)
- completionOptions
-
LLM completion options (temperature, maxTokens, etc.)
- conversation
-
The conversation history (without system message - that's in systemMessage field)
- initialQuery
-
The initial user query that started this conversation (optional for multi-turn)
- logs
-
Execution logs for this turn
- status
-
Current agent status (InProgress, WaitingForTools, Complete, or Failed)
- systemMessage
-
The system message (injected at API call time, not stored in conversation)
- tools
-
The available tool registry
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article