forked from Lilly-Protocol/agentlily-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
27 lines (26 loc) · 1.02 KB
/
Copy pathtypes.ts
File metadata and controls
27 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { RuntimeEventBus } from "../events/runtime-events.js";
import type { RuntimeLogger } from "../logger/runtime-logger.js";
import type { MemoryStore } from "../memory/memory-store.js";
import type { ModelProvider } from "../providers/model-provider.js";
import type { RuntimeStateStore } from "../state/runtime-state.js";
import type { ToolDefinition } from "../tools/types.js";
export interface RuntimeOptions {
runtimeId: string;
/**
* Maximum number of agent instances retained by the runtime's
* AgentInstanceManager. When the cap is reached, the oldest instance is
* evicted (FIFO) before a new one is created.
*
* Defaults to 5_000 when omitted (the AgentInstanceManager default).
*/
maxAgentInstances?: number;
maxToolCallsPerTask?: number;
maxAgentInstances?: number;
memoryStore?: MemoryStore;
memoryStoragePath?: string | undefined;
modelProvider?: ModelProvider;
logger?: RuntimeLogger;
stateStore?: RuntimeStateStore;
eventBus?: RuntimeEventBus;
tools?: ToolDefinition[];
}