Connect to existing protocols, in process agents or custom solutions via AG-UI
AbstractAgent
classintegrations/openai/package.json
and update the fields to match your new
folder:
integrations/openai/src/index.ts
:
apps/dojo/src/menu.ts
:
apps/dojo/src/agents.ts
:
apps/dojo/package.json
and add the package @ag-ui/openai
:
AbstractAgent
and emits a sequence of events to signal:
RUN_STARTED
, RUN_FINISHED
, RUN_ERROR
)TEXT_MESSAGE_*
, TOOL_CALL_*
, and more)RUN_STARTED
chat.completions
with
stream: true
TEXT_MESSAGE_CHUNK
or
TOOL_CALL_CHUNK
RUN_FINISHED
(or RUN_ERROR
if something goes wrong)
and complete the observabletypescript-sdk/integrations/
. See
Contributing for more details and naming
conventions.