Package-level declarations

Types

Link copied to clipboard
abstract class AbstractAgent(config: AgentConfig = AgentConfig())

Base class for all agents in the AG-UI protocol. Provides the core agent functionality including state management and event processing.

Link copied to clipboard
open class AgentConfig(val agentId: String? = null, val description: String = "", val threadId: String? = null, val initialMessages: List<Message> = emptyList(), val initialState: State = JsonObject(emptyMap()), val debug: Boolean = false)

Configuration for creating an agent. Base configuration class containing common agent settings such as ID, description, initial state, and debug options.

Link copied to clipboard
data class AgentState(val messages: List<Message>? = null, val state: State? = null)

Represents the transformed agent state. Contains the current state of the agent including messages and state data.

Link copied to clipboard
class HttpAgent(config: HttpAgentConfig, httpClient: HttpClient? = null) : AbstractAgent

HTTP-based agent implementation using Ktor client. Extends AbstractAgent to provide HTTP/SSE transport.

Link copied to clipboard
class HttpAgentConfig(val agentId: String? = null, val description: String = "", val threadId: String? = null, val initialMessages: List<Message> = emptyList(), val initialState: State = JsonObject(emptyMap()), val debug: Boolean = false, val url: String, val headers: Map<String, String> = emptyMap(), val requestTimeout: Long, val connectTimeout: Long) : AgentConfig

HTTP-specific agent configuration extending AgentConfig. Includes URL and HTTP headers for HTTP-based agent implementations.

Link copied to clipboard
data class RunAgentParameters(val runId: String? = null, val tools: List<Tool>? = null, val context: List<Context>? = null, val forwardedProps: JsonElement? = null)

Parameters for running an agent. Optional parameters that can be provided when starting an agent run.