Skip to content

Variable: ResolveAgentConfigSchema

Makaio Framework


Makaio Framework / contracts/session / ResolveAgentConfigSchema

const ResolveAgentConfigSchema: object

Defined in: ../../../packages/contracts/src/session/schemas/resolve-agent-config.ts:17

RPC schema for resolving the concrete adapter config from an agent selection.

The orchestrator uses this RPC to translate a frontend AgentSelectionSchema (persona / profile / virtualModel / model) into the flat configuration needed to start an agent: adapter name, model, provider reference, reasoning capability, and optional runtime overrides.

Callers receive enough information to populate StartAgentRequest without performing their own resolution logic.

resolveAgentConfig: object

Resolve the concrete adapter configuration for a given agent selection.

Subject: session.resolveAgentConfig Type: Request (RPC)

const config = await bus.request(SessionSubjects.resolveAgentConfig, {
selection: {
kind: 'adapter',
adapterName: 'openai-node',
providerConfigId: 'provider-uuid',
model: 'gpt-4o',
},
});
// config.adapterName === 'openai-node'
// config.model === 'gpt-4o'

request: ZodObject<{ projectId: ZodOptional<ZodString>; selection: ZodObject<{ allowedDirectories: ZodOptional<ZodArray<ZodString>>; allowedTools: ZodOptional<ZodArray<ZodString>>; cwd: ZodOptional<ZodString>; disallowedTools: ZodOptional<ZodArray<ZodString>>; kind: ZodString; model: ZodOptional<ZodString>; providerConfigId: ZodOptional<ZodString>; reasoningEffort: ZodOptional<ZodEnum<{ extra-high: "extra-high"; high: "high"; low: "low"; medium: "medium"; none: "none"; }>>; systemPrompt: ZodOptional<ZodUnion<readonly [ZodString, ZodObject<{ content: …; mode: …; }, $strip>]>>; }, $loose>; }, $strip>

response: ZodObject<{ adapterName: ZodString; allowedDirectories: ZodOptional<ZodArray<ZodString>>; allowedTools: ZodOptional<ZodArray<ZodString>>; disallowedTools: ZodOptional<ZodArray<ZodString>>; model: ZodOptional<ZodString>; providerConfigId: ZodOptional<ZodString>; reasoningEffort: ZodOptional<ZodEnum<{ extra-high: "extra-high"; high: "high"; low: "low"; medium: "medium"; none: "none"; }>>; supportedReasoningLevels: ZodOptional<ZodObject<{ extra-high: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>; high: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>; low: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>; medium: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>; none: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>; }, $strip>>; systemPrompt: ZodOptional<ZodUnion<readonly [ZodString, ZodObject<{ content: ZodString; mode: ZodLiteral<"append">; }, $strip>]>>; }, $strip>