From 52f92f4498cc37382f1a21db3ee0ff3578a978b3 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Sat, 28 Dec 2024 15:37:53 +0000 Subject: [PATCH] More API doc hacking --- docs/apis/api-agent.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/apis/api-agent.md b/docs/apis/api-agent.md index cd23500d..f2afbc89 100644 --- a/docs/apis/api-agent.md +++ b/docs/apis/api-agent.md @@ -107,3 +107,27 @@ Responses: } ``` +## Pulsar + +The Pulsar schema for the Agent API is defined in Python code here: + +https://github.com/trustgraph-ai/trustgraph/blob/master/trustgraph-base/trustgraph/schema/agent.py + +Default request queue: +`non-persistent://tg/request/agent` + +Default response queue: +`non-persistent://tg/response/agent` + +Request schema: +`trustgraph.schema.AgentRequest` + +Response schema: +`trustgraph.schema.AgentResponse` + +## Pulsar Python client + +The client class is +`trustgraph.clients.AgentClient` + +https://github.com/trustgraph-ai/trustgraph/blob/master/trustgraph-base/trustgraph/clients/agent_client.py