Skip to content

Commit 9447964

Browse files
fix(docs): updating API response descriptions (#1162)
Co-authored-by: Joshua Croft <[email protected]>
1 parent 40dfa4c commit 9447964

File tree

8 files changed

+112
-270
lines changed

8 files changed

+112
-270
lines changed

pages/apis/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"agentverse": "AgentVerse",
2+
"agentverse": "Agentverse",
33
"ai-engine": "AI Engine",
44
"asi-alliance-wallet": "ASI Alliance Wallet"
55
}

pages/apis/agentverse/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"almanac": { "title": "Almanac APIs", "timestamp": true },
3-
"hosting": { "title": "Hosting APIs", "timestamp": true },
4-
"mailroom": { "title": "Mailroom APIs", "timestamp": true },
5-
"search": { "title": "Search APIs", "timestamp": true }
2+
"almanac": { "title": "Almanac API", "timestamp": true },
3+
"hosting": { "title": "Hosting API", "timestamp": true },
4+
"mailroom": { "title": "Mailroom API", "timestamp": true },
5+
"search": { "title": "Search API", "timestamp": true }
66
}

pages/apis/agentverse/almanac.mdx

Lines changed: 14 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -16,125 +16,21 @@ import {
1616

1717
# Almanac API
1818

19-
<div className="nx-text-fetch-content">
20-
Welcome to the Almanac API documentation.
21-
</div>
22-
2319
## Overview
2420

25-
<Row>
26-
<Col>
27-
The Almanac API allows you to manage your agents that are hosted by Agentverse. This involves searching for and registering
28-
agents, updating the manifests of existing agents, checking Agent name availability and getting as well as updating Agent manifests.
29-
</Col>
30-
<Col>
31-
```bash filename="Endpoints"
32-
GET /v1/almanac/recent
33-
POST /v1/almanac/search
34-
35-
GET /v1/almanac/agents/:address
36-
GET /v1/almanac/search/available_name
37-
38-
GET /v1/almanac/manifests/protocols/:protocol_digest
39-
GET /v1/almanac/manifests/models/:model_digest
40-
```
41-
</Col>
42-
43-
</Row>
44-
45-
## Notable Objects
46-
47-
### The Agent Object
48-
49-
<Row>
50-
<Col>
51-
<Properties>
52-
<Property name="status" type="string">
53-
The given address of the agent.
54-
</Property>
55-
<Property name="address" type="string">
56-
The domain name associated with an address.
57-
</Property>
58-
<Property name="Endpoints" type="array">
59-
The endpoints and their associated weights for an agent.
60-
</Property>
61-
<Property name="Protocol" type="array">
62-
Protocol digests associated with an Agent.
63-
</Property>
64-
<Property name="Expiry" type="string" format="date-time">
65-
The Almanac registration expiration.
66-
</Property>
67-
</Properties>
68-
</Col>
69-
<Col>
70-
```json filename="Sample Agent Object"
71-
{
72-
"status": "Active",
73-
"address": "agent1qwckmey38jd6xl6al9k5qcelr9faqfgpxh73tev6fa3ruqnzajp6yneg3qw",
74-
"endpoints": [{"url": "https://agentverse.ai/v1/hosting/submit", "weight": 1}],
75-
"protocol": "a98290009c0891bc431c5159357074527d10eff6b2e86a61fcf7721b472f1125",
76-
"expiry": "2023-08-26T03:30:05.568195+00:00"
77-
}
78-
```
79-
</Col>
80-
</Row>
21+
The Almanac API provides tools for managing Agents in Agentverse; this includes functionalities for searching, registering, and updating Agents. The Almanac API allows developers to verify Agents' name availability, retrieve Agents' manifests, and access recently registered Agents on the network. The API is designed to support efficient interactions with Agent-related data through a set of well-defined endpoints.
8122

82-
### The AgentNameAvailability Object
83-
84-
<Row>
85-
<Col>
86-
<Properties>
87-
<Property name="name_prefix" type="string">
88-
The prefix for the Agent's name.
89-
</Property>
90-
<Property name="domain" type="string">
91-
The Agent's domain.
92-
</Property>
93-
<Property name="status" type="string">
94-
The status of the AgentNameAvailability object i.e reserved or available.
95-
</Property>
96-
</Properties>
97-
</Col>
98-
<Col>
99-
```json filename="Sample AgentNameAvailability Object"
100-
{
101-
"name_prefix": "Example Name",
102-
"domain": ".agent",
103-
"Status": "Available"
104-
}
105-
```
106-
</Col>
107-
</Row>
108-
109-
### The AgentNameAvailabilityStatus Object
110-
111-
<Row>
112-
<Col>
113-
<Properties>
114-
<Property name="AgentNameAvailability" type="string">
115-
Enumerated as reserved or available.
116-
</Property>
117-
</Properties>
118-
</Col>
119-
<Col>
120-
```json filename="Sample AgentNameAvailabilityStatus Object"
121-
{
122-
"AgentNameAvailabilityStatus": "Enumeration": "Available"
123-
}
124-
```
125-
</Col>
126-
</Row>
23+
You can see our dedicated objects reference documentation [here ↗️](/references/agentverse/almanac).
12724

12825
## Request and response library
12926

13027
### Get Recently Registered Agents
13128

132-
13329
<ApiEndpointRequestResponse
13430
apiUrl="https://agentverse.ai"
13531
method="GET"
13632
path="/v1/almanac/recent"
137-
description="Request for getting your recently registered Agents"
33+
description="Request for getting your recently registered Agents."
13834
responses={[
13935
{
14036
status: "active",
@@ -151,7 +47,7 @@ import {
15147
expiry: "2023-08-26T13:20:10.035592+00:00",
15248
},
15349
]}
154-
responseDescription="On a success the response will be an array of Agent Object properties."
50+
responseDescription="An array of [Agent Object ↗️](/references/agentverse/almanac#the-agent-object) properties for your recently registered Agents."
15551
/>
15652

15753
### Search Agents
@@ -191,7 +87,7 @@ import {
19187
expiry: "2023-08-26T03:30:05.568195+00:00",
19288
},
19389
]}
194-
responseDescription="On success the response will be an array of json objects with the properties of the Agent you've searched"
90+
responseDescription="An array of JSON objects for Agents matching the search criteria and represented as a [Agent Objects ↗️](/references/agentverse/almanac#the-agent-object)."
19591
/>
19692

19793
### Get Specific Agent
@@ -200,7 +96,7 @@ import {
20096
apiUrl="https://agentverse.ai"
20197
method="GET"
20298
path="/v1/almanac/agents/{address}"
203-
description="Get a specific agent by address"
99+
description="Get a specific Agent by its address."
204100
properties={[
205101
{
206102
name: "address",
@@ -231,7 +127,7 @@ import {
231127
expiry: "2023-08-26T13:18:26.946201+00:00",
232128
},
233129
]}
234-
responseDescription="On success, the response will be an array of the specified Agent's properties."
130+
responseDescription="An array containing the properties of a specific Agent represented as an [Agent Object ↗️](/references/agentverse/almanac#the-agent-object)."
235131
/>
236132

237133
### Search Available Agent Name
@@ -259,7 +155,7 @@ import {
259155
status: "available",
260156
},
261157
]}
262-
responseDescription="On success the response will be an array of json objects with information about the availability of a name"
158+
responseDescription="An array of JSON objects containing information about the availability of the requested agent name."
263159
/>
264160

265161
### Get Protocol Manifest
@@ -268,7 +164,7 @@ import {
268164
apiUrl="https://agentverse.ai"
269165
method="GET"
270166
path="/v1/almanac/manifests/protocols/{protocol_digest}"
271-
description="Get the protocol manifest."
167+
description="Get the protocol's manifest."
272168
properties={[
273169
{
274170
name: "protocol_digest",
@@ -296,16 +192,16 @@ import {
296192
interactions: [],
297193
},
298194
]}
299-
responseDescription="On success, the response will be a JSON object with the updated digest."
195+
responseDescription="An array of JSON object containing the protocol manifest details, including version, metadata, models, and interactions."
300196
/>
301197

302-
### Get Protocol Manifest.
198+
### Get Model details
303199

304200
<ApiEndpointRequestResponse
305201
apiUrl="https://agentverse.ai"
306202
method="GET"
307203
path="/v1/almanac/manifests/models/{model_digest}"
308-
description="Get the protocol manifest"
204+
description="Get the Model's details."
309205
properties={[
310206
{
311207
name: "model_digest",
@@ -333,5 +229,5 @@ import {
333229
interactions: [],
334230
},
335231
]}
336-
responseDescription="On success the response will be an array of json objects containing information about the protocol manifests."
337-
/>
232+
responseDescription="An array of JSON objects containing the model's details, including version, metadata, models, and interactions."
233+
/>

0 commit comments

Comments
 (0)