Package akka.javasdk.agent
package akka.javasdk.agent
-
ClassDescriptionAn AI agent component that interacts with an AI model, such as a large language model (LLM), to perform specific tasks.Agent.Effect<T>An Effect is a description of what the runtime needs to do after the command is handled.Construct the effect that is returned by the message handler.Agent.Effect.FailureBuilder<Result>Construct the effect for token streaming that is returned by the message handler.Context information available to an agent during command handling.The registry contains information about all agents.Exception thrown when there is an internal failure within the agent system.Exception thrown when there is an error parsing JSON responses from the model.Exception thrown when an MCP (Model Context Protocol) tool call fails during execution.Interface for configuring memory management in agent systems.Memory provider that uses a custom SessionMemory implementation.Disabled memory provider, which does not store or retrieve contextual history.Configuration-based memory provider that reads settings from the specified path.Memory provider that limits session history based on size or message count.Exception thrown when there is a failure with the AI model.Configuration interface for AI model providers used by agents.Settings for the Anthropic Large Language Model provider.Settings for the Google AI Gemini Large Language Model provider.Settings for the Local AI Large Language Model provider.Settings for the Ollama Large Language Model provider.Settings for the OpenAI Large Language Model provider.Exception thrown when a request to an AI model or external service times out.A built-in Event Sourced Entity for managing dynamic prompt templates with change history.Exception thrown when rate limits are exceeded when calling an AI model or external service.Configuration for accessing tools from remote Model Context Protocol (MCP) servers.Context details about the intercepted MCP tool call.Interface for managing contextual session history between users and AI models.Built-in Event Sourced Entity that provides persistent session memory for agent interactions with the AI model.Sealed interface representing events that can occur in the SessionMemory entity.Interface for message representation used inside SessionMemoryEntity state.Exception thrown when there is a failure executing a tool call.Thrown when the maximum number of tool call steps has been reached.Exception thrown when an unsupported feature is requested from an AI model or service.