Variable: AdapterSubjects
Makaio Framework / contracts / AdapterSubjects
Variable: AdapterSubjects
Section titled “Variable: AdapterSubjects”
constAdapterSubjects:BusSubjects<FlatSubjectDefinitions<"adapter", {agent.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodOptional<ZodString>;agentId:ZodString;sessionId:ZodString; },$strip>;error:ZodObject<{adapterId:ZodString;adapterName:ZodString;error:ZodString;errorCategory:ZodOptional<ZodEnum<{auth:"auth";model_unavailable:"model_unavailable";quota_exceeded:"quota_exceeded";rate_limit:"rate_limit"; }>>;sessionId:ZodOptional<ZodString>; },$strip>;getAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{agent:ZodNullable<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };getCapabilities: {request:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodOptional<ZodString>; },$strip>;response:ZodObject<{capabilities:ZodArray<ZodString>;nativeTools:ZodArray<ZodString>; },$strip>; };getConfigSchema: {request:ZodObject<{adapterName:ZodString; },$strip>;response:ZodObject<{adapterName:ZodString;found:ZodBoolean;jsonSchema:ZodNullable<ZodRecord<ZodString,ZodUnknown>>; },$strip>; };infer: {request:ZodObject<{adapterId:ZodString;model:ZodOptional<ZodString>;prompt:ZodString;providerContext:ZodOptional<ZodObject<{credentialEnvVars:ZodOptional<ZodRecord<…, …>>;credentialRefs:ZodRecord<ZodString,$ZodBranded<…, …, …>>;definitionId:ZodString;endpointOverrides:ZodOptional<ZodObject<…, …>>;providerConfigId:ZodString; },$strip>>;systemPrompt:ZodOptional<ZodString>; },$strip>;response:ZodObject<{text:ZodString;usage:ZodOptional<ZodObject<{inputTokens:ZodNumber;outputTokens:ZodNumber; },$strip>>; },$strip>; };initialized:ZodObject<{adapterId:ZodString;adapterName:ZodString;capabilities:ZodArray<ZodString>;nativeTools:ZodOptional<ZodArray<ZodString>>; },$strip>;listAgents: {request:ZodObject<{adapterId:ZodString; },$strip>;response:ZodObject<{agents:ZodArray<ZodObject<{adapterSessionId:ZodString;agentId:ZodString;sessionId:ZodString; },$strip>>; },$strip>; };log:ZodObject<{adapterId:ZodString;adapterName:ZodString;level:ZodOptional<ZodEnum<{debug:"debug";error:"error";info:"info";warn:"warn"; }>>;message:ZodString;timestamp:ZodNumber; },$strip>;quota:ZodObject<{adapterId:ZodString;adapterName:ZodString;limit:ZodNumber;overage:ZodNumber;provider:ZodString;quotaType:ZodString;resetDate:ZodString;used:ZodNumber; },$strip>;rehydrateAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString;cwd:ZodOptional<ZodString>;model:ZodOptional<ZodString>; },$strip>;response:ZodObject<{ },$strip>; };session.closed:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;agentId:ZodString;reason:ZodOptional<ZodString>;sessionId:ZodString; },$strip>;session.created:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;model:ZodString;sessionId:ZodString; },$strip>;session.discovered:ZodIntersection<ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;cwd:ZodNullable<ZodString>;logFilePath:ZodOptional<ZodNullable<ZodString>>;model:ZodNullable<ZodString>;startedAt:ZodOptional<ZodNumber>;title:ZodOptional<ZodString>; },$strip>,ZodDiscriminatedUnion<[ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"root">;parentAdapterSessionId:ZodNull; },$strip>,ZodObject<{forkPointMessageId:ZodString;kind:ZodLiteral<"fork">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"subagent">;parentAdapterSessionId:ZodString; },$strip>,ZodObject<{forkPointMessageId:ZodNull;kind:ZodLiteral<"compress">;parentAdapterSessionId:ZodString; },$strip>],"kind">>;session.linked:ZodObject<{adapterId:ZodOptional<ZodString>;adapterName:ZodString;adapterSessionId:ZodString;replay:ZodOptional<ZodBoolean>;sessionId:ZodString; },$strip>;session.statusChanged:ZodObject<{adapterSessionId:ZodString;status:ZodEnum<{discovered:"discovered";imported:"imported";live:"live";tracking:"tracking"; }>; },$strip>;session.usage:ZodObject<{adapterId:ZodString;adapterName:ZodString;adapterSessionId:ZodString;sessionId:ZodString;totalCalls:ZodNumber;totalInputTokens:ZodNumber;totalOutputTokens:ZodNumber; },$strip>;startAgent: {request:ZodUnion<readonly [ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodLiteral<"fork">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodString;sourceSessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>,ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodLiteral<"resume">;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodString;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>,ZodObject<{adapterId:ZodString;allowedDirectories:ZodOptional<ZodArray<ZodString>>;allowedTools:ZodOptional<ZodArray<ZodString>>;clientId:ZodOptional<ZodString>;cwd:ZodOptional<ZodString>;disallowedTools:ZodOptional<ZodArray<ZodString>>;env:ZodOptional<ZodRecord<ZodString,ZodString>>;ephemeral:ZodOptional<ZodBoolean>;harnessId:ZodOptional<ZodString>;initialMessage:ZodOptional<ZodUnion<readonly […, …]>>;mcpSessionContext:ZodOptional<ZodObject<{directTools: …;discoverableTools: …;profileId: …;projectId: …;servers: …;sessionId: …; },$strip>>;mode:ZodOptional<ZodLiteral<"create">>;model:ZodOptional<ZodString>;providerContext:ZodOptional<ZodObject<{credentialEnvVars: …;credentialRefs: …;definitionId: …;endpointOverrides: …;providerConfigId: …; },$strip>>;reasoningEffort:ZodOptional<ZodEnum<{extra-high: …;high: …;low: …;medium: …;none: …; }>>;role:ZodEnum<{lead:"lead";member:"member"; }>;sessionContext:ZodOptional<ZodObject<{extractedContext: …;hasCompression: …;hasConnectorSwap: …;hasNewTransforms: …;isFirstTurn: …;messageHistory: …;turnContext: …; },$strip>>;sessionId:ZodOptional<ZodString>;systemPrompt:ZodOptional<ZodUnion<readonly […, …]>>; },$strip>]>;response:ZodDiscriminatedUnion<[ZodObject<{adapterId:ZodString;adapterSessionId:ZodString;agentId:ZodString;messageId:ZodOptional<ZodString>;sessionId:ZodString;success:ZodLiteral<true>; },$strip>,ZodObject<{message:ZodString;success:ZodLiteral<false>; },$strip>],"success">; };stopAgent: {request:ZodObject<{adapterId:ZodString;agentId:ZodString; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; }; }>,"adapter"> =AdapterNamespace.subjects
Defined in: ../../../packages/contracts/src/adapter/namespace.ts:6