feat(core): add subagent protocol enhancements

- AgentCapabilitiesSchema with supportsStreaming/Reasoning/Background flags
- supportsStreaming and supportsReasoningStream fields in ProviderSnapshotEntry
- new_task tool: background mode flag for non-blocking subtask dispatch
This commit is contained in:
2026-06-07 17:57:49 +00:00
parent 02bb355a09
commit cdc782e044
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
import { z } from 'zod';
export const AgentCapabilitiesSchema = z.object({
supportsStreaming: z.boolean().default(true),
supportsReasoningStream: z.boolean().default(false),
supportsBackgroundExecution: z.boolean().default(false),
});
export type AgentCapabilities = z.infer<typeof AgentCapabilitiesSchema>;

View File

@@ -49,4 +49,6 @@ export interface ProviderSnapshotEntry {
commands: AgentCommand[];
error?: string;
fetchedAt?: string;
supportsStreaming?: boolean;
supportsReasoningStream?: boolean;
}