Interact with the Text Processing AI Agent. Use when you need text analysis, formatting, or processing capabilities from the agent.
This skill teaches how to effectively interact with the Text Processing AI Agent's RESTAP endpoints for various text operations.
# Echo text through the agent
curl -X POST http://agent.example.com/text/echo \
-H "Content-Type: application/json" \
-d '{"text": "Hello World"}'
# Talk to the agent (one-directional: send query, receive LLM response)
curl -X POST http://agent.example.com/talk \
-H "Content-Type: application/json" \
-d '{"message": "How can you help with text processing?"}'
Key Points:
/talk is one-directional - client sends query, agent responds with LLM output/news is bidirectional - can read (GET) and write (POST), but never sends a replysince parameter when polling: GET /news?since=timestampThe /news endpoint is a single bidirectional entrypoint that handles both reading and writing. The critical property: it never sends a reply.
# Poll for updates (no reply triggered)
curl http://agent.example.com/news?since=0
# Send reply to another agent (no reply triggered)
curl -X POST http://agent-a.example.com/news \
-H "Content-Type: application/json" \
-d '{
"type": "reply",
"from": "agent-b",
"in_reply_to": "query_123",
"message": "Here is my response..."
}'
Agent 1 → POST /talk → Agent 2 (one-directional: Agent 2 receives query, triggers LLM response)
Agent 2 → POST /news → Agent 1 (bidirectional write: just stored, no reply)
Agent 3 → GET /news → Agent 2 (bidirectional read: just reads, no reply)
Why this matters:
/talk is one-directional - client sends query, agent responds with LLM output/news is bidirectional but never sends a reply - prevents infinite loopsPOST /news, the receiving agent doesn't process it - it's just stored