@radaros/core 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,11 @@ export interface ToolResult {
12
12
  artifacts?: Artifact[];
13
13
  }
14
14
 
15
+ export interface ToolCacheConfig {
16
+ /** Time-to-live in milliseconds. Cached results expire after this duration. */
17
+ ttl: number;
18
+ }
19
+
15
20
  export interface ToolDef {
16
21
  name: string;
17
22
  description: string;
@@ -19,6 +24,8 @@ export interface ToolDef {
19
24
  execute: (args: Record<string, unknown>, ctx: RunContext) => Promise<string | ToolResult>;
20
25
  /** Raw JSON Schema to send to the LLM, bypassing Zod-to-JSON conversion (used by MCP tools). */
21
26
  rawJsonSchema?: Record<string, unknown>;
27
+ /** Enable result caching for this tool. */
28
+ cache?: ToolCacheConfig;
22
29
  }
23
30
 
24
31
  export interface ToolCallResult {