Learn about agents in the Agent User Interaction Protocol
AbstractAgent
class, which provides the
foundation for:
AbstractAgent
:
AbstractAgent
class and implement the
required run
method:
TOOL_CALL_START
: Indicates the beginning of a tool callTOOL_CALL_ARGS
: Streams the arguments for the tool callTOOL_CALL_END
: Marks the completion of the tool calluseCopilotAction
hook,
which provides a simplified way to define and handle tools in React
applications.
By keeping the AI informed about human decisions through the tool mechanism,
applications can maintain context and create more natural collaborative
experiences between users and AI assistants.
STATE_DELTA
eventsSTATE_SNAPSHOT
eventsAbstractAgent
class, you can create custom integrations with any AI service
while maintaining a consistent interface for your applications.
The event-driven architecture enables real-time, streaming interactions that are
essential for modern AI applications, and the standardized protocol ensures
compatibility across different implementations.