Interface: IThreadStoreConfig
Defined in: internal/thread-store/types.ts:11
Configuration of the ThreadStore. Lands in IAIGatewayConfig.threadStore.
Properties
leaseMs?
optionalleaseMs?:number
Defined in: internal/thread-store/types.ts:25
How long a call holds a thread before its lease expires by itself (D77).
A server that dies mid-call must not leave the thread busy for ever.
Size it for the longest call: maxStepsPerRun steps of a model call plus a tool timeout each.
Example
300_000 - six steps of up to 30 s tool time and a slow model still fit
Default
300_000
repository
repository:
IThreadRepository
Defined in: internal/thread-store/types.ts:13
Persistence of the threads and turns: the host's adapter (in memory for the tests and the first run, a database in production).