Skip to content

Commit 4510440

Browse files
committed
*
1 parent 254bb25 commit 4510440

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

modus/knowledge-graphs.mdx

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ Here's how the AI analysis works:
121121
func analyzeAgentWithAI(behavior string) (string, error) {
122122
model, _ := models.GetModel[openai.ChatModel]("text-generator")
123123

124-
prompt := "Analyze this Agent behavior pattern and assess threat level, behavioral changes, and tactical implications for resistance operations."
124+
prompt := `Analyze this Agent behavior pattern and assess threat level,
125+
behavioral changes, and tactical implications for resistance operations.`
125126

126127
input, _ := model.CreateInput(
127128
openai.NewSystemMessage(prompt),
@@ -143,9 +144,7 @@ mutation {
143144
sightingId: "SIGHT-2025-001"
144145
agentName: "Smith"
145146
location: "Downtown Loop - Financial District"
146-
behavior: "Unusual pattern recognition algorithm detected.
147-
Agent displaying enhanced replication capabilities
148-
beyond normal parameters."
147+
behavior: "Unusual pattern recognition algorithm detected. Agent displaying enhanced replication capabilities beyond normal parameters."
149148
threatLevel: 9
150149
timestamp: "2025-01-15T14:30:00Z"
151150
}
@@ -214,7 +213,8 @@ related sightings:
214213
func generateThreatAssessment(sightings interface{}) (string, error) {
215214
model, _ := models.GetModel[openai.ChatModel]("text-generator")
216215

217-
prompt := "Based on these Agent sightings, provide a strategic threat assessment focusing on behavioral patterns and risks to resistance operations."
216+
prompt := `Based on these Agent sightings, provide a strategic threat assessment
217+
focusing on behavioral patterns and risks to resistance operations.`
218218

219219
sightingsJson, _ := json.Marshal(sightings)
220220
input, _ := model.CreateInput(
@@ -248,22 +248,10 @@ query {
248248
"data": {
249249
"analyzeAgentPatterns": {
250250
"sightingCount": 47,
251-
"activeAgents": [
252-
"Smith",
253-
"Brown",
254-
"Jones"
255-
],
256-
"threatAssessment": "Critical escalation detected.
257-
Agent Smith showing unprecedented adaptive behavior patterns
258-
and enhanced replication protocols.
259-
Cross-referencing indicates coordinated search algorithms
260-
across multiple city sectors.
261-
The One may have been detected by the system.",
262-
"recommendations": [
263-
"Implement emergency extraction protocols for key personnel",
264-
"Activate deep cover resistance cells in high-threat sectors",
265-
"Prepare for potential system-wide reset scenario"
266-
]
251+
"activeAgents": ["Smith", "Brown", "Jones"],
252+
"threatAssessment": "Critical escalation detected. Agent Smith showing
253+
unprecedented adaptive behavior patterns...",
254+
"recommendations": ["Emergency extraction protocols", "Activate deep cover cells", "..."]
267255
}
268256
}
269257
}
@@ -406,7 +394,7 @@ mutation {
406394
{
407395
"data": {
408396
"initiateSurveillance": "Surveillance sweep completed at 14:35:22.
409-
Monitoring 3 sectors for anomalous Agent activity."
397+
Monitoring 3 sectors for anomalous Agent activity."
410398
}
411399
}
412400
```
@@ -431,10 +419,10 @@ query {
431419
{
432420
"data": {
433421
"getSurveillanceStatus": "Surveillance Agent Status:
434-
- Operational: Active
435-
- Monitoring 3 sectors
436-
- Last sweep: 2025-01-15 14:35:22
437-
- Tracking 5 ongoing sightings"
422+
- Operational: Active
423+
- Monitoring 3 sectors
424+
- Last sweep: 2025-01-15 14:35:22
425+
- Tracking 5 ongoing sightings"
438426
}
439427
}
440428
```

0 commit comments

Comments
 (0)