Skip to main content

Module agent_chat

Module agent_chat 

Source
Expand description

POST /agent/chat — a loopback HTTP ingress that wraps RunnerHost::handle_activity so an external caller (the designer’s runner sidecar) can send a chat turn to a loaded agentic-worker pack and receive the reply. Blocking JSON response (v1).

Structs§

AgentChatRequest
One chat turn for a loaded worker pack.
AgentChatResponse
The worker’s reply turn.
ReplyView
One outbound reply line.

Functions§

agent_chat
POST /agent/chat — loopback-only (AdminGuard). Sends one chat turn to the loaded worker pack and returns its reply.
replies_to_response
Map the runtime’s outbound activities into the chat response, dropping empties.