Connect AG-UI with existing protocols or custom solutions
telnet
.
quit
to exit Telnet. Congratulations! You’ve just brought Eliza to life.
Now let’s connect her to the Agent User Interaction Protocol.
AbstractAgent
class from @ag-ui/client
and emit events for each piece of
content, progress, etc.
ElizaAgent
, which:
src/eliza-agent.ts
:
RUN_STARTED
means the agent started processing the request.TEXT_MESSAGE_START
/ TEXT_MESSAGE_CONTENT
/ TEXT_MESSAGE_END
together
send the agent’s textual response to the AG-UI pipeline.RUN_FINISHED
means this run is over.src/index.ts
that sets up our AG-UI agent:
AbstractAgent
and implements the run
method.run()
: Set up an agent or connect to an existing protocol.