Base agent implementation with core event handling
AbstractAgent
class provides the foundation for all agent implementations
in the Agent User Interaction Protocol. It handles the core event stream
processing, state management, and message history.
AgentConfig
object to the constructor.
AgentConfig
interface and call the super constructor with the extended config
from your subclass like this:
subscriber
parameter allows you to provide an
AgentSubscriber for handling events during this
specific run.
unsubscribe()
method to remove the subscriber when
no longer needed.
agentId
: Unique identifier for the agent instancedescription
: Human-readable descriptionthreadId
: Conversation thread identifiermessages
: Array of conversation messagesstate
: Current agent state object