Skip to content

Commit 9a033a2

Browse files
committed
*
1 parent 63aa643 commit 9a033a2

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

modus/agents.mdx

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,16 @@ When you call this function through GraphQL, it returns a unique agent ID:
102102
mutation {
103103
deployAnalyst
104104
}
105+
```
106+
107+
Response:
105108

106-
# Returns: "agent_abc123xyz"
109+
```json
110+
{
111+
"data": {
112+
"deployAnalyst": "agent_abc123xyz"
113+
}
114+
}
107115
```
108116

109117
You can think of an Agent as a persistent server process with durable memory.
@@ -161,12 +169,40 @@ mutation {
161169
data: "Suspicious network activity detected"
162170
)
163171
}
172+
```
173+
174+
Response:
164175

176+
```json
177+
{
178+
"data": {
179+
"submitIntelligence": "Analysis complete.
180+
Threat pattern matches previous incident #7823.
181+
Confidence: 0.85 based on 3 briefings.
182+
Recommend immediate investigation."
183+
}
184+
}
185+
```
186+
187+
```graphql
165188
query {
166189
getThreatAssessment(agentId: "agent_abc123xyz")
167190
}
168191
```
169192

193+
Response:
194+
195+
```json
196+
{
197+
"data": {
198+
"getThreatAssessment": "Current threat assessment:
199+
3 briefings analyzed.
200+
Confidence level: 0.85.
201+
Agent operational."
202+
}
203+
}
204+
```
205+
170206
The agent receives the message, processes it using its internal state and AI
171207
reasoning, updates its intelligence database, and returns a response—all while
172208
maintaining persistent memory of every interaction.
@@ -436,6 +472,22 @@ query MonitorAnalysis($agentId: String!) {
436472
}
437473
```
438474

475+
Response:
476+
477+
```json
478+
{
479+
"data": {
480+
"checkAnalysisProgress": {
481+
"phase": "Deep Intelligence Analysis",
482+
"progress": 0.75,
483+
"currentTask": "[15:42:33] Phase 2: Generating threat assessment...",
484+
"estimatedTimeRemaining": 45,
485+
"isComplete": false
486+
}
487+
}
488+
}
489+
```
490+
439491
This polling approach enables:
440492

441493
- **Progress tracking**: Monitor completion percentage and current phase

0 commit comments

Comments
 (0)