feat(councils): add preflight, schema-driven outputs, and artifact reporting

This commit is contained in:
William Valentin
2026-02-22 15:56:30 -08:00
parent dafe9b4d3d
commit 44c7409a20
18 changed files with 1686 additions and 29 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
import type { ModelRouter, ModelTier } from '../../models/router.js';
import type { ChatRequest, Message, ModelClient, TokenUsage } from '../../models/types.js';
import type { ChatRequest, ChatResponseFormat, Message, ModelClient, TokenUsage } from '../../models/types.js';
import type { Session } from '../../session/index.js';
import type { ToolRegistry } from '../../tools/registry.js';
import type { ToolExecutor } from '../../tools/executor.js';
@@ -28,6 +28,8 @@ export interface SubAgentRequest {
maxTokens?: number;
/** When true, include tools from the toolRegistry in the request. */
tools?: boolean;
/** Optional provider-level response format request (e.g., JSON schema). */
responseFormat?: ChatResponseFormat;
}
/** Result returned from a sub-agent delegation call. */
@@ -279,6 +281,7 @@ export class AgentOrchestrator {
messages,
system: request.systemPrompt,
maxTokens: request.maxTokens,
responseFormat: request.responseFormat,
};
// Optionally include tools from the registry (filtered by policy)