arbiter-ai 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/router.js +8 -3
- package/package.json +1 -1
package/dist/router.js
CHANGED
|
@@ -162,7 +162,12 @@ const OrchestratorOutputSchema = z.object({
|
|
|
162
162
|
message: z.string().describe('The message content'),
|
|
163
163
|
});
|
|
164
164
|
// Convert to JSON Schema for SDK
|
|
165
|
-
|
|
165
|
+
// Strip $schema field which Zod 4 adds - the Anthropic API doesn't expect it
|
|
166
|
+
function stripSchemaField(schema) {
|
|
167
|
+
const { $schema, ...rest } = schema;
|
|
168
|
+
return rest;
|
|
169
|
+
}
|
|
170
|
+
const orchestratorOutputJsonSchema = stripSchemaField(z.toJSONSchema(OrchestratorOutputSchema));
|
|
166
171
|
/**
|
|
167
172
|
* Schema for Arbiter structured output
|
|
168
173
|
* Controls message routing and orchestrator lifecycle
|
|
@@ -184,8 +189,8 @@ const ArbiterOutputSchema = z.object({
|
|
|
184
189
|
- musings: Thinking aloud. Displayed for context but no response expected.`),
|
|
185
190
|
message: z.string().describe('Your message content'),
|
|
186
191
|
});
|
|
187
|
-
// Convert to JSON Schema for SDK
|
|
188
|
-
const arbiterOutputJsonSchema = z.toJSONSchema(ArbiterOutputSchema);
|
|
192
|
+
// Convert to JSON Schema for SDK (uses stripSchemaField helper defined above)
|
|
193
|
+
const arbiterOutputJsonSchema = stripSchemaField(z.toJSONSchema(ArbiterOutputSchema));
|
|
189
194
|
import { ARBITER_SYSTEM_PROMPT, createArbiterHooks, } from './arbiter.js';
|
|
190
195
|
import { createOrchestratorHooks, ORCHESTRATOR_SYSTEM_PROMPT, } from './orchestrator.js';
|
|
191
196
|
// Maximum context window size (200K tokens)
|
package/package.json
CHANGED