Skip to content

Variable: RehydrateAgentSchema

Makaio Framework


Makaio Framework / contracts/adapter / RehydrateAgentSchema

const RehydrateAgentSchema: 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:

  1. Stop the existing connector for the specified agent
  2. Create a new connector with optional config overrides (cwd, model)
  3. 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

request: ZodObject<{ adapterId: ZodString; agentId: ZodString; cwd: ZodOptional<ZodString>; model: ZodOptional<ZodString>; }, $strip>

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