-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathagent-schema.json
More file actions
317 lines (317 loc) · 12.2 KB
/
Copy pathagent-schema.json
File metadata and controls
317 lines (317 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:conductor:agent-config-schema",
"title": "Conductor Agent Configuration",
"description": "Canonical wire contract for the agent configuration that SDKs serialize and POST to the server (under the `agentConfig` key of the start/compile request). Mirrors the server-side `AgentConfig` model. Convention: camelCase keys, `@JsonInclude(NON_NULL)` — absent means unset. Recursive: `agents`, `planner`, `fallback`, `router` nest a full AgentConfig.",
"type": "object",
"required": ["name"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"pattern": "^[a-zA-Z_][a-zA-Z0-9_-]*$",
"description": "Agent name. Required."
},
"description": {
"type": "string",
"description": "Human-readable description. Set by the platform/UI, not the SDKs."
},
"model": {
"type": ["string", "null"],
"description": "\"provider/model\" identifier. Omitted/null for external agents."
},
"external": {
"type": "boolean",
"description": "True when the agent has no model and is driven externally."
},
"baseUrl": {
"type": "string",
"description": "Per-agent LLM provider endpoint override."
},
"instructions": {
"description": "System prompt: a plain string, or a structured prompt-template reference.",
"oneOf": [
{ "type": "string" },
{ "type": "null" },
{ "$ref": "#/$defs/promptTemplate" }
]
},
"introduction": {
"type": "string",
"description": "Self-introduction prepended in multi-agent discussions."
},
"tools": {
"type": "array",
"items": { "$ref": "#/$defs/tool" }
},
"agents": {
"type": "array",
"items": { "$ref": "#" },
"description": "Sub-agents (recursive). Requires a strategy."
},
"strategy": {
"type": ["string", "null"],
"enum": ["handoff", "sequential", "parallel", "router", "round_robin", "random", "swarm", "manual", "plan_execute", null],
"description": "Multi-agent orchestration strategy. Null/absent for a single agent."
},
"router": {
"description": "ROUTER strategy router: a nested agent or a worker-task reference.",
"oneOf": [
{ "$ref": "#" },
{ "$ref": "#/$defs/workerRef" }
]
},
"guardrails": {
"type": "array",
"items": { "$ref": "#/$defs/guardrail" }
},
"maxTurns": { "type": "integer", "description": "Max agent turns. SDK default 25; server default 100." },
"maxTokens": { "type": "integer", "description": "LLM completion token cap." },
"temperature": { "type": "number", "description": "Sampling temperature." },
"timeoutSeconds": { "type": "integer", "description": "Run timeout. 0 → server default." },
"reasoningEffort": {
"type": "string",
"enum": ["minimal", "low", "medium", "high"],
"description": "OpenAI reasoning models only. Ignored by other models."
},
"contextWindowBudget": { "type": "integer", "description": "Token threshold for proactive context condensation." },
"thinkingConfig": { "$ref": "#/$defs/thinkingConfig" },
"memory": { "$ref": "#/$defs/memory" },
"termination": { "$ref": "#/$defs/termination" },
"outputType": { "$ref": "#/$defs/outputType" },
"handoffs": {
"type": "array",
"items": { "$ref": "#/$defs/handoff" }
},
"allowedTransitions": {
"type": "object",
"additionalProperties": { "type": "array", "items": { "type": "string" } },
"description": "SWARM: agentName → list of agents it may transfer to."
},
"callbacks": {
"type": "array",
"items": { "$ref": "#/$defs/callback" }
},
"gate": { "$ref": "#/$defs/gate" },
"stopWhen": { "$ref": "#/$defs/workerRef" },
"enablePlanning": { "type": "boolean", "description": "Prepends a plan-first preamble to the system prompt." },
"planner": { "$ref": "#", "description": "PLAN_EXECUTE planner slot (nested agent)." },
"fallback": { "$ref": "#", "description": "PLAN_EXECUTE fallback slot (nested agent)." },
"fallbackMaxTurns": { "type": "integer" },
"plannerContext": {
"type": "array",
"items": { "$ref": "#/$defs/plannerContextEntry" }
},
"planSource": {
"type": "object",
"additionalProperties": true,
"description": "Static plan JSON for PLAN_EXECUTE. (Python emits here; the Java SDK sends the static plan via the request wrapper's `static_plan` instead.)"
},
"synthesize": { "type": "boolean", "description": "Emitted only when false (default true)." },
"stateful": { "type": "boolean", "description": "Emitted only when true; triggers per-execution domain isolation." },
"sessionId": {
"type": "string",
"description": "Session id. The Java SDK echoes it here and in the request wrapper; the server reads it from the wrapper."
},
"includeContents": {
"type": "string",
"description": "\"none\" = fresh context; absent = inherit parent context."
},
"requiredTools": { "type": "array", "items": { "type": "string" } },
"prefillTools": {
"type": "array",
"items": { "$ref": "#/$defs/prefillTool" }
},
"credentials": { "type": "array", "items": { "type": "string" } },
"metadata": {
"type": "object",
"additionalProperties": true,
"description": "Arbitrary key-values stored with the workflow definition."
},
"localCodeExecution": {
"type": "boolean",
"description": "Java builder flag; serialized into `codeExecution`. Not a distinct wire field on its own."
},
"codeExecution": { "$ref": "#/$defs/codeExecution" },
"cliConfig": { "$ref": "#/$defs/cliConfig" },
"maskedFields": { "type": "array", "items": { "type": "string" } }
},
"$defs": {
"promptTemplate": {
"type": "object",
"required": ["type", "name"],
"additionalProperties": true,
"properties": {
"type": { "type": "string", "const": "prompt_template" },
"name": { "type": "string" },
"variables": { "type": ["object", "null"], "additionalProperties": true },
"version": { "type": ["integer", "null"] }
}
},
"tool": {
"type": "object",
"additionalProperties": true,
"description": "Tool definition. `config` is a freeform map carrying type-specific settings (url, serverUrl, credentials, …), so unknown keys are permitted.",
"properties": {
"name": { "type": "string" },
"description": { "type": "string" },
"inputSchema": { "type": "object", "additionalProperties": true },
"outputSchema": { "type": "object", "additionalProperties": true },
"toolType": { "type": "string", "description": "worker | http | mcp | api | agent_tool | …" },
"approvalRequired": { "type": "boolean" },
"stateful": { "type": "boolean" },
"timeoutSeconds": { "type": "integer" },
"maxCalls": { "type": "integer" },
"config": { "type": "object", "additionalProperties": true },
"guardrails": { "type": "array", "items": { "$ref": "#/$defs/guardrail" } }
}
},
"guardrail": {
"type": "object",
"additionalProperties": true,
"description": "Guardrail config. Type-specific keys (patterns, mode, model, policy, …) are spread in, so unknown keys are permitted.",
"properties": {
"name": { "type": "string" },
"guardrailType": { "type": "string", "description": "regex | llm | custom | external | …" },
"position": { "type": "string", "enum": ["input", "output"] },
"onFail": { "type": "string", "enum": ["retry", "raise", "fix", "human"] },
"maxRetries": { "type": "integer" },
"taskName": { "type": "string" },
"patterns": { "type": "array", "items": { "type": "string" } },
"mode": { "type": "string" },
"message": { "type": "string" },
"model": { "type": "string" },
"policy": { "type": "string" },
"maxTokens": { "type": "integer" }
}
},
"termination": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": { "type": "string", "enum": ["text_mention", "stop_message", "max_message", "token_usage", "and", "or"] },
"text": { "type": "string" },
"caseSensitive": { "type": "boolean" },
"stopMessage": { "type": "string" },
"maxMessages": { "type": "integer" },
"maxTotalTokens": { "type": "integer" },
"maxPromptTokens": { "type": "integer" },
"maxCompletionTokens": { "type": "integer" },
"conditions": { "type": "array", "items": { "$ref": "#/$defs/termination" } }
}
},
"handoff": {
"type": "object",
"additionalProperties": false,
"required": ["target"],
"properties": {
"type": { "type": "string", "enum": ["on_text_mention", "on_tool_result", "on_condition"] },
"target": { "type": "string" },
"toolName": { "type": "string" },
"resultContains": { "type": "string" },
"text": { "type": "string" },
"taskName": { "type": "string" }
}
},
"callback": {
"type": "object",
"additionalProperties": false,
"required": ["position", "taskName"],
"properties": {
"position": { "type": "string", "enum": ["before_agent", "after_agent", "before_model", "after_model", "before_tool", "after_tool"] },
"taskName": { "type": "string" }
}
},
"memory": {
"type": "object",
"additionalProperties": false,
"properties": {
"messages": { "type": "array", "items": { "$ref": "#/$defs/message" } },
"maxMessages": { "type": "integer" }
}
},
"message": {
"type": "object",
"additionalProperties": true,
"properties": {
"role": { "type": "string", "enum": ["user", "assistant", "system"] },
"message": { "type": "string" }
}
},
"codeExecution": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": { "type": "boolean" },
"allowedLanguages": { "type": "array", "items": { "type": "string" } },
"allowedCommands": { "type": "array", "items": { "type": "string" } },
"timeout": { "type": "integer" }
}
},
"cliConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": { "type": "boolean" },
"allowedCommands": { "type": "array", "items": { "type": "string" } },
"timeout": { "type": "integer" },
"allowShell": { "type": "boolean" },
"workingDir": { "type": "string" }
}
},
"thinkingConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": { "type": "boolean" },
"budgetTokens": { "type": "integer" }
}
},
"prefillTool": {
"type": "object",
"additionalProperties": false,
"required": ["toolName"],
"properties": {
"toolName": { "type": "string" },
"arguments": { "type": "object", "additionalProperties": true }
}
},
"plannerContextEntry": {
"type": "object",
"additionalProperties": false,
"properties": {
"text": { "type": "string" },
"url": { "type": "string" },
"headers": { "type": "object", "additionalProperties": { "type": "string" } },
"required": { "type": "boolean" },
"maxBytes": { "type": "integer" }
}
},
"outputType": {
"type": "object",
"additionalProperties": false,
"properties": {
"schema": { "type": "object", "additionalProperties": true },
"className": { "type": "string" }
}
},
"gate": {
"type": "object",
"additionalProperties": false,
"description": "Sequential-pipeline gate: a text matcher, or a worker-task reference.",
"properties": {
"type": { "type": "string", "enum": ["text_contains"] },
"text": { "type": "string" },
"caseSensitive": { "type": "boolean" },
"taskName": { "type": "string" }
}
},
"workerRef": {
"type": "object",
"additionalProperties": false,
"properties": {
"taskName": { "type": "string" }
}
}
}
}