Variable: RehydrateAgentSchema
Makaio Framework / contracts/adapter / RehydrateAgentSchema
Variable: RehydrateAgentSchema
Section titled “Variable: RehydrateAgentSchema”
constRehydrateAgentSchema:object
Defined in: ../../../packages/contracts/src/adapter/schemas/rehydrate-agent.ts:26
Rehydrate an agent by swapping its connector.
Subject: adapter.rehydrateAgent
Type: Request (RPC)
Purpose: Allows the orchestrator to swap an agent’s connector (e.g., after a crash)
instead of killing and recreating the agent. This preserves the agent’s
identity and session state while replacing the underlying execution context.
The adapter will:
- Stop the existing connector for the specified agent
- Create a new connector with optional config overrides (cwd, model)
- Wire the new connector to the existing agent instance
Success is implicit. Errors are thrown if:
- Agent not found
- Adapter not found
- Connector swap fails
Type Declaration
Section titled “Type Declaration”request
Section titled “request”request:
ZodObject<{adapterId:ZodString;agentId:ZodString;cwd:ZodOptional<ZodString>;model:ZodOptional<ZodString>; },$strip>
response
Section titled “response”response:
ZodObject<{ },$strip>
Empty response - success is implicit, errors throw
Target adapter instance ID
Agent to rehydrate
Optional working directory override for new connector
Optional model override for new connector