UNPKG

@mastra/core

Version:
22 lines • 1.17 kB
/** * TTL for the cross-process leases that mark a live process driving an agent * thread or durable run. Kept short so a crashed owner frees the run quickly; * owners renew while they work. Overridable via * `MASTRA_AGENT_THREAD_LEASE_TTL_MS` (production keeps the 15s default). */ export declare const AGENT_LEASE_TTL_MS: number; /** * Interval at which an owner renews its lease. Defaults to TTL/3, leaving room * for two missed renewals (network blip, GC pause) before the lease expires. * Overridable via `MASTRA_AGENT_THREAD_LEASE_RENEW_INTERVAL_MS`; a value not * shorter than the TTL would let the lease expire before its first renewal, so * it falls back to the default. */ export declare const AGENT_LEASE_RENEW_INTERVAL_MS: number; /** * How long a run that lost its thread lease lets a tool call that is already running go on before stopping it. * The thread's new owner may be working meanwhile, so a tool that never returns must not keep the old run going for * long. Overridable via `MASTRA_AGENT_THREAD_LEASE_LOST_TOOL_GRACE_MS`. */ export declare const AGENT_LEASE_LOST_TOOL_GRACE_MS: number; //# sourceMappingURL=run-ownership.d.ts.map