LemonAgent.Types.AgentContext (lemon_agent v0.1.0)

View Source

Context for agent conversations.

Contains the system prompt, message history, and available tools. Similar to LemonAi.Types.Context but uses AgentTool and agent_message.

Summary

Functions

Create a new empty agent context

Types

t()

@type t() :: %LemonAgent.Types.AgentContext{
  messages: [LemonAgent.Types.agent_message()],
  system_prompt: String.t() | nil,
  tools: [LemonAgent.Types.AgentTool.t()]
}

Functions

new(opts \\ [])

Create a new empty agent context