Skip to content

feat: add an Impossible ReAct Agent adapter example - #5

Merged
autoantohaki merged 1 commit into
mainfrom
feat/react-agent-adapter
Oct 22, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
feat/react-agent-adapter

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: Relay Chat had no way to talk to Impossible ReAct Agent.

After: relay-chat -- node examples/react-agent-model.mjs streams replies from the agent's /v1/chat/stream endpoint (default http://127.0.0.1:4141, override with RELAY_AGENT_URL).

The agent keeps its own memory per thread, so the adapter sends only the newest user message and uses the conversation ID as threadId. The README notes that regenerating or editing does not rewind the agent's memory.

How: parses the agent's named SSE events (text, done, error) into protocol chunks. Tests cover the request body, streamed text, and a mid-stream error.

@autoantohaki
autoantohaki force-pushed the feat/react-agent-adapter branch from 5fa899b to f44b3b0 Compare October 22, 2026 01:31
@autoantohaki
autoantohaki merged commit 1e29957 into main Oct 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant