@anvia/core 0.15.0 → 0.17.0

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.
Files changed (72) hide show
  1. package/dist/agent/index.d.ts +14 -13
  2. package/dist/agent/index.js +8 -8
  3. package/dist/{agent-C1yoidvI.d.ts → agent-Cg0UigNK.d.ts} +9 -7
  4. package/dist/audio-generation/index.d.ts +1 -1
  5. package/dist/{chunk-BPU264XB.js → chunk-54S4I3SX.js} +7 -7
  6. package/dist/chunk-54S4I3SX.js.map +1 -0
  7. package/dist/{chunk-DC2GJDPR.js → chunk-77D7XBWL.js} +2 -2
  8. package/dist/{chunk-GCZIIYZW.js → chunk-BQCTJSNL.js} +7 -5
  9. package/dist/chunk-BQCTJSNL.js.map +1 -0
  10. package/dist/{chunk-I7TM7TKX.js → chunk-F3C5653H.js} +4 -4
  11. package/dist/{chunk-QTZHDPQX.js → chunk-GCED5ZNM.js} +16 -4
  12. package/dist/chunk-GCED5ZNM.js.map +1 -0
  13. package/dist/{chunk-CNANX5OL.js → chunk-OPAEENGD.js} +141 -25
  14. package/dist/chunk-OPAEENGD.js.map +1 -0
  15. package/dist/{chunk-TIV3WFSR.js → chunk-PJDL5UT2.js} +84 -5
  16. package/dist/chunk-PJDL5UT2.js.map +1 -0
  17. package/dist/{chunk-7NULHGAO.js → chunk-RWAOHGRL.js} +16 -5
  18. package/dist/chunk-RWAOHGRL.js.map +1 -0
  19. package/dist/{chunk-MEUZ4NBO.js → chunk-SWUH4G2I.js} +2 -2
  20. package/dist/{chunk-BIYXGG33.js → chunk-SWUIBS4N.js} +6 -6
  21. package/dist/completion/index.d.ts +6 -5
  22. package/dist/completion/index.js +4 -2
  23. package/dist/evals/index.d.ts +8 -8
  24. package/dist/evals/index.js +9 -9
  25. package/dist/extractor/index.d.ts +8 -8
  26. package/dist/extractor/index.js +9 -9
  27. package/dist/guardrails/index.d.ts +1 -1
  28. package/dist/hooks/index.d.ts +3 -3
  29. package/dist/image-generation/index.d.ts +1 -1
  30. package/dist/{index-VH93vDXo.d.ts → index-XTUEMWhU.d.ts} +36 -8
  31. package/dist/index.d.ts +12 -12
  32. package/dist/index.js +14 -12
  33. package/dist/internal/agent.d.ts +8 -8
  34. package/dist/internal/agent.js +7 -7
  35. package/dist/{json-CaCUxJqG.d.ts → json-D9IvOgx_.d.ts} +2 -2
  36. package/dist/loaders/index.d.ts +1 -1
  37. package/dist/mcp/index.d.ts +4 -4
  38. package/dist/memory/index.d.ts +3 -3
  39. package/dist/{middleware-CGEYQndv.d.ts → middleware-Cp0tm6zE.d.ts} +3 -3
  40. package/dist/observability/index.d.ts +3 -3
  41. package/dist/observability/index.js.map +1 -1
  42. package/dist/pipeline/index.d.ts +8 -8
  43. package/dist/request/index.d.ts +8 -8
  44. package/dist/request/index.js +6 -6
  45. package/dist/skills/index.d.ts +4 -4
  46. package/dist/skills/index.js +5 -5
  47. package/dist/{think-tool-DABDgW_E.d.ts → think-tool-CpCKo8Q8.d.ts} +1 -1
  48. package/dist/tool/index.d.ts +5 -5
  49. package/dist/tool/index.js +5 -5
  50. package/dist/{tool-tHPNeWMR.d.ts → tool-Dhwg__1L.d.ts} +1 -1
  51. package/dist/transcription/index.d.ts +1 -1
  52. package/dist/{types-BbLcbRqM.d.ts → types-BBEf34DP.d.ts} +2 -2
  53. package/dist/{types-D78Vnorg.d.ts → types-BCA8p0sb.d.ts} +1 -1
  54. package/dist/{types-DPYoqg8M.d.ts → types-CBmhLT_r.d.ts} +1 -1
  55. package/dist/{types-BHxJcHMk.d.ts → types-DMGvEFRf.d.ts} +1 -1
  56. package/dist/{types-Byo50mwr.d.ts → types-XjIh933x.d.ts} +49 -1
  57. package/dist/{types-DW1Va3vx.d.ts → types-fBv8mhvP.d.ts} +1 -1
  58. package/dist/ui/index.d.ts +1 -1
  59. package/dist/ui/index.js +2 -2
  60. package/dist/vector-store/index.d.ts +4 -4
  61. package/dist/vector-store/index.js +2 -2
  62. package/package.json +1 -1
  63. package/dist/chunk-7NULHGAO.js.map +0 -1
  64. package/dist/chunk-BPU264XB.js.map +0 -1
  65. package/dist/chunk-CNANX5OL.js.map +0 -1
  66. package/dist/chunk-GCZIIYZW.js.map +0 -1
  67. package/dist/chunk-QTZHDPQX.js.map +0 -1
  68. package/dist/chunk-TIV3WFSR.js.map +0 -1
  69. /package/dist/{chunk-DC2GJDPR.js.map → chunk-77D7XBWL.js.map} +0 -0
  70. /package/dist/{chunk-I7TM7TKX.js.map → chunk-F3C5653H.js.map} +0 -0
  71. /package/dist/{chunk-MEUZ4NBO.js.map → chunk-SWUH4G2I.js.map} +0 -0
  72. /package/dist/{chunk-BIYXGG33.js.map → chunk-SWUIBS4N.js.map} +0 -0
package/dist/index.js CHANGED
@@ -2,31 +2,31 @@ import {
2
2
  SkillValidationError,
3
3
  loadSkills,
4
4
  skill
5
- } from "./chunk-DC2GJDPR.js";
5
+ } from "./chunk-77D7XBWL.js";
6
6
  import {
7
7
  coreMessagesToUIMessages,
8
8
  uiMessagesToCoreMessages
9
- } from "./chunk-MEUZ4NBO.js";
9
+ } from "./chunk-SWUH4G2I.js";
10
10
  import "./chunk-CQNNSZPG.js";
11
11
  import {
12
12
  AgentBuilder
13
- } from "./chunk-7NULHGAO.js";
14
- import "./chunk-GCZIIYZW.js";
13
+ } from "./chunk-RWAOHGRL.js";
14
+ import "./chunk-BQCTJSNL.js";
15
15
  import {
16
16
  MaxTurnsError,
17
17
  PromptCancelledError,
18
18
  ToolApprovalRequiredError
19
- } from "./chunk-CNANX5OL.js";
19
+ } from "./chunk-OPAEENGD.js";
20
20
  import "./chunk-YK4WAAS4.js";
21
21
  import "./chunk-XUUY2L2D.js";
22
22
  import {
23
23
  createMiddleware,
24
24
  createThinkTool,
25
25
  createToolMiddleware
26
- } from "./chunk-BIYXGG33.js";
26
+ } from "./chunk-SWUIBS4N.js";
27
27
  import {
28
28
  createTool
29
- } from "./chunk-I7TM7TKX.js";
29
+ } from "./chunk-F3C5653H.js";
30
30
  import {
31
31
  cancelPrompt,
32
32
  createHook,
@@ -36,11 +36,13 @@ import {
36
36
  toolCallControl
37
37
  } from "./chunk-2ODTMRHP.js";
38
38
  import "./chunk-M6RPFHG7.js";
39
+ import "./chunk-YBBD4HZ3.js";
40
+ import "./chunk-OIMLU4SF.js";
39
41
  import {
40
42
  createCompletion,
41
43
  createCompletionStream,
42
44
  createParsedCompletion
43
- } from "./chunk-QTZHDPQX.js";
45
+ } from "./chunk-GCED5ZNM.js";
44
46
  import {
45
47
  AssistantContent,
46
48
  Message,
@@ -48,11 +50,10 @@ import {
48
50
  Usage,
49
51
  UserContent,
50
52
  getAssistantGenerationMetadata,
51
- isJsonValue
52
- } from "./chunk-TIV3WFSR.js";
53
+ isJsonValue,
54
+ isProviderTool
55
+ } from "./chunk-PJDL5UT2.js";
53
56
  import "./chunk-WQKHFADH.js";
54
- import "./chunk-YBBD4HZ3.js";
55
- import "./chunk-OIMLU4SF.js";
56
57
  import {
57
58
  allow,
58
59
  block,
@@ -90,6 +91,7 @@ export {
90
91
  getAssistantGenerationMetadata,
91
92
  guardrails,
92
93
  isJsonValue,
94
+ isProviderTool,
93
95
  loadSkills,
94
96
  requestToolApproval,
95
97
  runControl,
@@ -1,10 +1,10 @@
1
- export { A as Agent, e as AgentEventAppendInput, f as AgentEventRecord, c as AgentEventStore, g as AgentEventStoreInclude, d as AgentEventStoreOptions, j as AgentEventStoreRegistration, k as AgentOptions, h as AgentSession, i as AgentToolOptions, l as DEFAULT_MAX_TURNS, D as DynamicContextOptions, m as DynamicContextRegistration, b as DynamicToolOptions, n as DynamicToolRegistration } from '../agent-C1yoidvI.js';
2
- import '../types-Byo50mwr.js';
1
+ export { A as Agent, e as AgentEventAppendInput, f as AgentEventRecord, c as AgentEventStore, g as AgentEventStoreInclude, d as AgentEventStoreOptions, j as AgentEventStoreRegistration, k as AgentOptions, h as AgentSession, i as AgentToolOptions, l as DEFAULT_MAX_TURNS, D as DynamicContextOptions, m as DynamicContextRegistration, b as DynamicToolOptions, n as DynamicToolRegistration } from '../agent-Cg0UigNK.js';
2
+ import '../types-XjIh933x.js';
3
3
  import '../guardrails/index.js';
4
- import '../types-D78Vnorg.js';
5
- import '../types-DPYoqg8M.js';
6
- import '../index-VH93vDXo.js';
7
- import '../tool-tHPNeWMR.js';
8
- import '../middleware-CGEYQndv.js';
4
+ import '../types-BCA8p0sb.js';
5
+ import '../types-CBmhLT_r.js';
6
+ import '../index-XTUEMWhU.js';
7
+ import '../tool-Dhwg__1L.js';
8
+ import '../middleware-Cp0tm6zE.js';
9
9
  import '../types-DHHZztGO.js';
10
- import '../types-BHxJcHMk.js';
10
+ import '../types-DMGvEFRf.js';
@@ -2,18 +2,18 @@ import {
2
2
  Agent,
3
3
  AgentSession,
4
4
  DEFAULT_MAX_TURNS
5
- } from "../chunk-GCZIIYZW.js";
6
- import "../chunk-CNANX5OL.js";
5
+ } from "../chunk-BQCTJSNL.js";
6
+ import "../chunk-OPAEENGD.js";
7
7
  import "../chunk-YK4WAAS4.js";
8
8
  import "../chunk-XUUY2L2D.js";
9
- import "../chunk-BIYXGG33.js";
10
- import "../chunk-I7TM7TKX.js";
9
+ import "../chunk-SWUIBS4N.js";
10
+ import "../chunk-F3C5653H.js";
11
11
  import "../chunk-2ODTMRHP.js";
12
- import "../chunk-QTZHDPQX.js";
13
- import "../chunk-TIV3WFSR.js";
14
- import "../chunk-WQKHFADH.js";
15
12
  import "../chunk-YBBD4HZ3.js";
16
13
  import "../chunk-OIMLU4SF.js";
14
+ import "../chunk-GCED5ZNM.js";
15
+ import "../chunk-PJDL5UT2.js";
16
+ import "../chunk-WQKHFADH.js";
17
17
  import "../chunk-CWUJUSOS.js";
18
18
  export {
19
19
  Agent,
@@ -1,5 +1,5 @@
1
1
  import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
2
- import { M as Message, D as Document, k as ToolDefinition, v as ToolChoice, J as JsonObject, g as JsonValue, A as AssistantContent, U as Usage, e as CompletionResponse, C as CompletionModel, G as StreamingCompletionModel, y as CompletionStreamEvent } from './types-Byo50mwr.js';
2
+ import { M as Message, D as Document, g as CompletionTool, z as ToolChoice, J as JsonObject, i as JsonValue, A as AssistantContent, U as Usage, e as CompletionResponse, C as CompletionModel, N as StreamingCompletionModel, F as CompletionStreamEvent } from './types-XjIh933x.js';
3
3
 
4
4
  type CreateCompletionInput = string | Message | Message[];
5
5
  type CreateCompletionBaseOptions = {
@@ -7,7 +7,7 @@ type CreateCompletionBaseOptions = {
7
7
  messages?: Message[] | undefined;
8
8
  instructions?: string | undefined;
9
9
  documents?: Document[] | undefined;
10
- tools?: ToolDefinition[] | undefined;
10
+ tools?: CompletionTool[] | undefined;
11
11
  temperature?: number | undefined;
12
12
  maxTokens?: number | undefined;
13
13
  toolChoice?: ToolChoice | undefined;
@@ -1,4 +1,4 @@
1
- import { D as Document } from '../types-Byo50mwr.js';
1
+ import { D as Document } from '../types-XjIh933x.js';
2
2
 
3
3
  type LoaderResult<T> = {
4
4
  ok: true;
@@ -1,10 +1,10 @@
1
- import { M as McpConnection, a as McpServer, b as McpStdioOptions, c as McpHttpOptions, d as McpSseOptions } from '../types-BbLcbRqM.js';
2
- export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-BbLcbRqM.js';
1
+ import { M as McpConnection, a as McpServer, b as McpStdioOptions, c as McpHttpOptions, d as McpSseOptions } from '../types-BBEf34DP.js';
2
+ export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-BBEf34DP.js';
3
3
  import '@modelcontextprotocol/sdk/client/sse.js';
4
4
  import '@modelcontextprotocol/sdk/client/stdio.js';
5
5
  import '@modelcontextprotocol/sdk/client/streamableHttp.js';
6
- import '../types-Byo50mwr.js';
7
- import '../tool-tHPNeWMR.js';
6
+ import '../types-XjIh933x.js';
7
+ import '../tool-Dhwg__1L.js';
8
8
 
9
9
  declare function connectMcp(connection: McpConnection): Promise<McpServer>;
10
10
 
@@ -1,6 +1,6 @@
1
- import { f as MemoryOptions, R as ResolvedMemoryOptions } from '../types-DPYoqg8M.js';
2
- export { g as MemoryAppendInput, h as MemoryContext, M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, i as MemoryErrorInput, d as MemoryInspector, j as MemoryRegistration, k as MemorySavePolicy, e as MemoryStore, S as SessionOptions } from '../types-DPYoqg8M.js';
3
- import '../types-Byo50mwr.js';
1
+ import { f as MemoryOptions, R as ResolvedMemoryOptions } from '../types-CBmhLT_r.js';
2
+ export { g as MemoryAppendInput, h as MemoryContext, M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, i as MemoryErrorInput, d as MemoryInspector, j as MemoryRegistration, k as MemorySavePolicy, e as MemoryStore, S as SessionOptions } from '../types-CBmhLT_r.js';
3
+ import '../types-XjIh933x.js';
4
4
 
5
5
  declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
6
6
 
@@ -1,7 +1,7 @@
1
- import { k as ToolDefinition, d as CompletionRequest, e as CompletionResponse, g as JsonValue, n as ToolResultContent } from './types-Byo50mwr.js';
1
+ import { n as ToolDefinition, d as CompletionRequest, e as CompletionResponse, i as JsonValue, q as ToolResultContent } from './types-XjIh933x.js';
2
2
  import { V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument } from './types-DHHZztGO.js';
3
- import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-tHPNeWMR.js';
4
- import { a as VectorSearchIndex } from './types-BHxJcHMk.js';
3
+ import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-Dhwg__1L.js';
4
+ import { a as VectorSearchIndex } from './types-DMGvEFRf.js';
5
5
 
6
6
  declare class ToolSet {
7
7
  private readonly tools;
@@ -1,4 +1,4 @@
1
- export { m as AgentGenerationEndArgs, n as AgentGenerationErrorArgs, o as AgentGenerationObserver, p as AgentGenerationStartArgs, q as AgentGenerationUpdateArgs, i as AgentObserver, k as AgentObserverRegistration, r as AgentRunEndArgs, s as AgentRunErrorArgs, t as AgentRunEventArgs, u as AgentRunObserver, v as AgentRunPromptRef, w as AgentRunStartArgs, x as AgentToolEndArgs, y as AgentToolErrorArgs, z as AgentToolObserver, B as AgentToolStartArgs, C as AgentToolStreamEventArgs, D as AgentTraceInfo, j as AgentTraceOptions, O as ObserveOptions, E as createObserver } from '../index-VH93vDXo.js';
2
- import '../types-Byo50mwr.js';
1
+ export { m as AgentGenerationEndArgs, n as AgentGenerationErrorArgs, o as AgentGenerationModelInfo, p as AgentGenerationObserver, q as AgentGenerationStartArgs, r as AgentGenerationUpdateArgs, i as AgentObserver, k as AgentObserverRegistration, s as AgentRunEndArgs, t as AgentRunErrorArgs, u as AgentRunEventArgs, v as AgentRunObserver, w as AgentRunPromptRef, x as AgentRunStartArgs, y as AgentToolEndArgs, z as AgentToolErrorArgs, B as AgentToolObserver, C as AgentToolStartArgs, D as AgentToolStreamEventArgs, E as AgentTraceInfo, j as AgentTraceOptions, O as ObserveOptions, F as createObserver } from '../index-XTUEMWhU.js';
2
+ import '../types-XjIh933x.js';
3
3
  import '../guardrails/index.js';
4
- import '../tool-tHPNeWMR.js';
4
+ import '../tool-Dhwg__1L.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n JsonObject,\n JsonValue,\n Message,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/types\";\nimport type { ToolCallStreamEvent } from \"../tool\";\n\nexport type AgentTraceInfo = {\n traceId?: string | undefined;\n observationId?: string | undefined;\n};\n\nexport type AgentTraceOptions = {\n name?: string | undefined;\n userId?: string | undefined;\n sessionId?: string | undefined;\n metadata?: Record<string, unknown> | undefined;\n tags?: string[] | undefined;\n version?: string | undefined;\n traceId?: string | undefined;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type AgentRunPromptRef = {\n name: string;\n version?: number | undefined;\n};\n\nexport type AgentRunStartArgs = {\n agentName?: string | undefined;\n agentDescription?: string | undefined;\n instructions?: string | undefined;\n trace?: AgentTraceOptions | undefined;\n prompt: Message;\n promptRef?: AgentRunPromptRef | undefined;\n history: Message[];\n maxTurns: number;\n};\n\nexport type AgentRunEndArgs = {\n output: string;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentRunErrorArgs = {\n error: unknown;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentGenerationStartArgs = {\n turn: number;\n request: CompletionRequest;\n providerRequest?: JsonObject | undefined;\n modelInfo?: {\n provider: string;\n defaultModel: string;\n capabilities?: CompletionModelCapabilities | undefined;\n };\n};\n\nexport type AgentGenerationEndArgs<RawResponse = unknown> = {\n turn: number;\n response: CompletionResponse<RawResponse>;\n firstDeltaMs?: number | undefined;\n};\n\nexport type AgentGenerationErrorArgs = {\n turn: number;\n error: unknown;\n};\n\nexport type AgentGenerationUpdateArgs = {\n turn: number;\n delta: AgentDeltaEvent;\n};\n\nexport type AgentRunEventArgs = {\n name: string;\n attributes?: Record<string, JsonValue | undefined> | undefined;\n level?: \"DEFAULT\" | \"WARNING\" | \"ERROR\" | undefined;\n timestamp?: Date | string | undefined;\n};\n\nexport type AgentToolStartArgs = {\n turn: number;\n toolCall: ToolCall;\n toolName: string;\n args: string;\n internalCallId: string;\n toolCallId?: string | undefined;\n toolDefinition?: ToolDefinition | undefined;\n toolMetadata?: JsonObject | undefined;\n};\n\nexport type AgentToolEndArgs = AgentToolStartArgs & {\n result: string;\n structuredResult?: ToolResultContent[] | undefined;\n skipped: boolean;\n};\n\nexport type AgentToolErrorArgs = AgentToolStartArgs & {\n error: unknown;\n};\n\nexport type AgentToolStreamEventArgs = AgentToolStartArgs & {\n event: ToolCallStreamEvent;\n};\n\nexport interface AgentGenerationObserver {\n end(args: AgentGenerationEndArgs): void | Promise<void>;\n error?(args: AgentGenerationErrorArgs): void | Promise<void>;\n update?(args: AgentGenerationUpdateArgs): void | Promise<void>;\n}\n\nexport interface AgentToolObserver {\n streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;\n end(args: AgentToolEndArgs): void | Promise<void>;\n error?(args: AgentToolErrorArgs): void | Promise<void>;\n}\n\nexport interface AgentRunObserver {\n readonly trace?: AgentTraceInfo | undefined;\n startGeneration?(\n args: AgentGenerationStartArgs,\n ): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;\n startTool?(\n args: AgentToolStartArgs,\n ): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;\n end(args: AgentRunEndArgs): void | Promise<void>;\n error?(args: AgentRunErrorArgs): void | Promise<void>;\n event?(args: AgentRunEventArgs): void | Promise<void>;\n}\n\nexport interface AgentObserver {\n startRun(\n args: AgentRunStartArgs,\n ): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;\n flush?(): void | Promise<void>;\n shutdown?(): void | Promise<void>;\n}\n\nexport type AgentObserverRegistration = {\n observer: AgentObserver;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type ObserveOptions = {\n failOnObserverError?: boolean | undefined;\n};\n\nexport function createObserver(observer: AgentObserver): AgentObserver {\n return observer;\n}\n"],"mappings":";AAgKO,SAAS,eAAe,UAAwC;AACrE,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n CompletionSource,\n JsonObject,\n JsonValue,\n Message,\n ProviderToolCall,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/types\";\nimport type { ToolCallStreamEvent } from \"../tool\";\n\nexport type AgentTraceInfo = {\n traceId?: string | undefined;\n observationId?: string | undefined;\n};\n\nexport type AgentTraceOptions = {\n name?: string | undefined;\n userId?: string | undefined;\n sessionId?: string | undefined;\n metadata?: Record<string, unknown> | undefined;\n tags?: string[] | undefined;\n version?: string | undefined;\n traceId?: string | undefined;\n failOnObserverError?: boolean | undefined;\n promptRef?: AgentRunPromptRef | undefined;\n};\n\nexport type AgentRunPromptRef = {\n name: string;\n version?: number | undefined;\n};\n\nexport type AgentRunStartArgs = {\n agentName?: string | undefined;\n agentDescription?: string | undefined;\n instructions?: string | undefined;\n trace?: AgentTraceOptions | undefined;\n prompt: Message;\n promptRef?: AgentRunPromptRef | undefined;\n history: Message[];\n maxTurns: number;\n};\n\nexport type AgentRunEndArgs = {\n output: string;\n usage: Usage;\n messages: Message[];\n sources?: CompletionSource[] | undefined;\n providerToolCalls?: ProviderToolCall[] | undefined;\n};\n\nexport type AgentRunErrorArgs = {\n error: unknown;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentGenerationModelInfo = {\n provider: string;\n defaultModel: string;\n capabilities?: CompletionModelCapabilities | undefined;\n};\n\nexport type AgentGenerationStartArgs = {\n turn: number;\n request: CompletionRequest;\n providerRequest?: JsonObject | undefined;\n modelInfo?: AgentGenerationModelInfo | undefined;\n};\n\nexport type AgentGenerationEndArgs<RawResponse = unknown> = {\n turn: number;\n response: CompletionResponse<RawResponse>;\n firstDeltaMs?: number | undefined;\n};\n\nexport type AgentGenerationErrorArgs = {\n turn: number;\n error: unknown;\n};\n\nexport type AgentGenerationUpdateArgs = {\n turn: number;\n delta: AgentDeltaEvent;\n};\n\nexport type AgentRunEventArgs = {\n name: string;\n attributes?: Record<string, JsonValue | undefined> | undefined;\n level?: \"DEFAULT\" | \"WARNING\" | \"ERROR\" | undefined;\n timestamp?: Date | string | undefined;\n};\n\nexport type AgentToolStartArgs = {\n turn: number;\n toolCall: ToolCall;\n toolName: string;\n args: string;\n internalCallId: string;\n toolCallId?: string | undefined;\n toolDefinition?: ToolDefinition | undefined;\n toolMetadata?: JsonObject | undefined;\n};\n\nexport type AgentToolEndArgs = AgentToolStartArgs & {\n result: string;\n structuredResult?: ToolResultContent[] | undefined;\n skipped: boolean;\n};\n\nexport type AgentToolErrorArgs = AgentToolStartArgs & {\n error: unknown;\n};\n\nexport type AgentToolStreamEventArgs = AgentToolStartArgs & {\n event: ToolCallStreamEvent;\n};\n\nexport interface AgentGenerationObserver {\n end(args: AgentGenerationEndArgs): void | Promise<void>;\n error?(args: AgentGenerationErrorArgs): void | Promise<void>;\n update?(args: AgentGenerationUpdateArgs): void | Promise<void>;\n}\n\nexport interface AgentToolObserver {\n streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;\n end(args: AgentToolEndArgs): void | Promise<void>;\n error?(args: AgentToolErrorArgs): void | Promise<void>;\n}\n\nexport interface AgentRunObserver {\n readonly trace?: AgentTraceInfo | undefined;\n startGeneration?(\n args: AgentGenerationStartArgs,\n ): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;\n startTool?(\n args: AgentToolStartArgs,\n ): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;\n end(args: AgentRunEndArgs): void | Promise<void>;\n error?(args: AgentRunErrorArgs): void | Promise<void>;\n event?(args: AgentRunEventArgs): void | Promise<void>;\n}\n\nexport interface AgentObserver {\n startRun(\n args: AgentRunStartArgs,\n ): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;\n flush?(): void | Promise<void>;\n shutdown?(): void | Promise<void>;\n}\n\nexport type AgentObserverRegistration = {\n observer: AgentObserver;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type ObserveOptions = {\n failOnObserverError?: boolean | undefined;\n};\n\nexport function createObserver(observer: AgentObserver): AgentObserver {\n return observer;\n}\n"],"mappings":";AAuKO,SAAS,eAAe,UAAwC;AACrE,SAAO;AACT;","names":[]}
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
- import { A as Agent } from '../agent-C1yoidvI.js';
3
- import { J as JsonObject, C as CompletionModel } from '../types-Byo50mwr.js';
2
+ import { A as Agent } from '../agent-Cg0UigNK.js';
3
+ import { J as JsonObject, C as CompletionModel } from '../types-XjIh933x.js';
4
4
  import { Extractor } from '../extractor/index.js';
5
5
  import '../guardrails/index.js';
6
- import '../types-D78Vnorg.js';
7
- import '../types-DPYoqg8M.js';
8
- import '../index-VH93vDXo.js';
9
- import '../tool-tHPNeWMR.js';
10
- import '../middleware-CGEYQndv.js';
6
+ import '../types-BCA8p0sb.js';
7
+ import '../types-CBmhLT_r.js';
8
+ import '../index-XTUEMWhU.js';
9
+ import '../tool-Dhwg__1L.js';
10
+ import '../middleware-Cp0tm6zE.js';
11
11
  import '../types-DHHZztGO.js';
12
- import '../types-BHxJcHMk.js';
12
+ import '../types-DMGvEFRf.js';
13
13
  import '../zod-schema-C7F4clpm.js';
14
14
 
15
15
  /** Minimal interface for anything that can run as a pipeline stage. */
@@ -1,13 +1,13 @@
1
- import { M as Message } from '../types-Byo50mwr.js';
2
- import { d as ToolApprovalRequest } from '../tool-tHPNeWMR.js';
3
- export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-C1yoidvI.js';
4
- export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, l as AgentDeltaEvent, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from '../index-VH93vDXo.js';
1
+ import { M as Message } from '../types-XjIh933x.js';
2
+ import { d as ToolApprovalRequest } from '../tool-Dhwg__1L.js';
3
+ export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-Cg0UigNK.js';
4
+ export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, l as AgentDeltaEvent, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from '../index-XTUEMWhU.js';
5
5
  import '../guardrails/index.js';
6
- import '../types-D78Vnorg.js';
7
- import '../types-DPYoqg8M.js';
8
- import '../middleware-CGEYQndv.js';
6
+ import '../types-BCA8p0sb.js';
7
+ import '../types-CBmhLT_r.js';
8
+ import '../middleware-Cp0tm6zE.js';
9
9
  import '../types-DHHZztGO.js';
10
- import '../types-BHxJcHMk.js';
10
+ import '../types-DMGvEFRf.js';
11
11
 
12
12
  declare class MaxTurnsError extends Error {
13
13
  readonly maxTurns: number;
@@ -3,16 +3,16 @@ import {
3
3
  PromptCancelledError,
4
4
  PromptRequest,
5
5
  ToolApprovalRequiredError
6
- } from "../chunk-CNANX5OL.js";
6
+ } from "../chunk-OPAEENGD.js";
7
7
  import "../chunk-XUUY2L2D.js";
8
- import "../chunk-BIYXGG33.js";
9
- import "../chunk-I7TM7TKX.js";
8
+ import "../chunk-SWUIBS4N.js";
9
+ import "../chunk-F3C5653H.js";
10
10
  import "../chunk-2ODTMRHP.js";
11
- import "../chunk-QTZHDPQX.js";
12
- import "../chunk-TIV3WFSR.js";
13
- import "../chunk-WQKHFADH.js";
14
11
  import "../chunk-YBBD4HZ3.js";
15
12
  import "../chunk-OIMLU4SF.js";
13
+ import "../chunk-GCED5ZNM.js";
14
+ import "../chunk-PJDL5UT2.js";
15
+ import "../chunk-WQKHFADH.js";
16
16
  import "../chunk-CWUJUSOS.js";
17
17
  export {
18
18
  MaxTurnsError,
@@ -1,7 +1,7 @@
1
- import { b as SkillLoader, a as SkillSet } from '../types-DW1Va3vx.js';
2
- export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-DW1Va3vx.js';
3
- import '../tool-tHPNeWMR.js';
4
- import '../types-Byo50mwr.js';
1
+ import { b as SkillLoader, a as SkillSet } from '../types-fBv8mhvP.js';
2
+ export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-fBv8mhvP.js';
3
+ import '../tool-Dhwg__1L.js';
4
+ import '../types-XjIh933x.js';
5
5
 
6
6
  declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
7
7
 
@@ -2,15 +2,15 @@ import {
2
2
  SkillValidationError,
3
3
  loadSkills,
4
4
  skill
5
- } from "../chunk-DC2GJDPR.js";
5
+ } from "../chunk-77D7XBWL.js";
6
6
  import "../chunk-CQNNSZPG.js";
7
7
  import "../chunk-YK4WAAS4.js";
8
- import "../chunk-BIYXGG33.js";
9
- import "../chunk-I7TM7TKX.js";
10
- import "../chunk-TIV3WFSR.js";
11
- import "../chunk-WQKHFADH.js";
8
+ import "../chunk-SWUIBS4N.js";
9
+ import "../chunk-F3C5653H.js";
12
10
  import "../chunk-YBBD4HZ3.js";
13
11
  import "../chunk-OIMLU4SF.js";
12
+ import "../chunk-PJDL5UT2.js";
13
+ import "../chunk-WQKHFADH.js";
14
14
  export {
15
15
  SkillValidationError,
16
16
  loadSkills,
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
3
- import { c as ToolApprovalPolicy, f as ToolCallContext, T as Tool } from './tool-tHPNeWMR.js';
3
+ import { c as ToolApprovalPolicy, f as ToolCallContext, T as Tool } from './tool-Dhwg__1L.js';
4
4
 
5
5
  type CreateToolOptions<InputSchema extends ZodSchema, OutputSchema extends ZodSchema | undefined = undefined, Output = unknown> = {
6
6
  name: string;
@@ -1,11 +1,11 @@
1
- export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-DABDgW_E.js';
2
- export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, D as DynamicToolIndex, E as EmbedToolsOptions, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, k as ToolSearchDocument, l as ToolSet, i as createMiddleware, m as createToolIndex, j as createToolMiddleware, n as embedTools, o as isDynamicToolIndex } from '../middleware-CGEYQndv.js';
3
- export { A as AnyTool, N as NormalizedToolOutput, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, h as ToolApprovalRunContext, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent, i as ToolOutput, n as normalizeToolResultOutput, p as parseToolArgs, t as toolResultContentToText } from '../tool-tHPNeWMR.js';
4
- export { t as isToolResultContentArray, u as serializeToolOutput } from '../types-Byo50mwr.js';
1
+ export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-CpCKo8Q8.js';
2
+ export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, D as DynamicToolIndex, E as EmbedToolsOptions, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, k as ToolSearchDocument, l as ToolSet, i as createMiddleware, m as createToolIndex, j as createToolMiddleware, n as embedTools, o as isDynamicToolIndex } from '../middleware-Cp0tm6zE.js';
3
+ export { A as AnyTool, N as NormalizedToolOutput, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, h as ToolApprovalRunContext, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent, i as ToolOutput, n as normalizeToolResultOutput, p as parseToolArgs, t as toolResultContentToText } from '../tool-Dhwg__1L.js';
4
+ export { x as isToolResultContentArray, y as serializeToolOutput } from '../types-XjIh933x.js';
5
5
  import 'zod';
6
6
  import '../zod-schema-C7F4clpm.js';
7
7
  import '../types-DHHZztGO.js';
8
- import '../types-BHxJcHMk.js';
8
+ import '../types-DMGvEFRf.js';
9
9
 
10
10
  declare class ToolCallError extends Error {
11
11
  readonly cause?: unknown | undefined;
@@ -13,17 +13,17 @@ import {
13
13
  normalizeToolResultOutput,
14
14
  parseToolArgs,
15
15
  toolResultContentToText
16
- } from "../chunk-BIYXGG33.js";
16
+ } from "../chunk-SWUIBS4N.js";
17
17
  import {
18
18
  createTool
19
- } from "../chunk-I7TM7TKX.js";
19
+ } from "../chunk-F3C5653H.js";
20
+ import "../chunk-YBBD4HZ3.js";
21
+ import "../chunk-OIMLU4SF.js";
20
22
  import {
21
23
  isToolResultContentArray,
22
24
  serializeToolResultOutput
23
- } from "../chunk-TIV3WFSR.js";
25
+ } from "../chunk-PJDL5UT2.js";
24
26
  import "../chunk-WQKHFADH.js";
25
- import "../chunk-YBBD4HZ3.js";
26
- import "../chunk-OIMLU4SF.js";
27
27
  export {
28
28
  ToolCallError,
29
29
  ToolJsonError,
@@ -1,4 +1,4 @@
1
- import { J as JsonObject, k as ToolDefinition, n as ToolResultContent, g as JsonValue } from './types-Byo50mwr.js';
1
+ import { J as JsonObject, n as ToolDefinition, q as ToolResultContent, i as JsonValue } from './types-XjIh933x.js';
2
2
 
3
3
  type ToolApprovalRunContext = {
4
4
  agentId: string;
@@ -1,4 +1,4 @@
1
- import { g as JsonValue } from '../types-Byo50mwr.js';
1
+ import { i as JsonValue } from '../types-XjIh933x.js';
2
2
 
3
3
  type TranscriptionRequest = {
4
4
  data: Uint8Array;
@@ -1,8 +1,8 @@
1
1
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
2
2
  import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
3
3
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
4
- import { J as JsonObject } from './types-Byo50mwr.js';
5
- import { A as AnyTool } from './tool-tHPNeWMR.js';
4
+ import { J as JsonObject } from './types-XjIh933x.js';
5
+ import { A as AnyTool } from './tool-Dhwg__1L.js';
6
6
 
7
7
  type McpToolDefinition = {
8
8
  name: string;
@@ -1,4 +1,4 @@
1
- import { M as Message, U as Usage, e as CompletionResponse, n as ToolResultContent } from './types-Byo50mwr.js';
1
+ import { M as Message, U as Usage, e as CompletionResponse, q as ToolResultContent } from './types-XjIh933x.js';
2
2
 
3
3
  type HookAction = {
4
4
  type: "continue";
@@ -1,4 +1,4 @@
1
- import { J as JsonObject, M as Message } from './types-Byo50mwr.js';
1
+ import { J as JsonObject, M as Message } from './types-XjIh933x.js';
2
2
 
3
3
  type MemorySavePolicy = "message" | "turn" | "run";
4
4
  type MemoryContext = {
@@ -1,5 +1,5 @@
1
1
  import { V as VectorMetadata, a as VectorMetadataValue } from './types-DHHZztGO.js';
2
- import { T as Tool } from './tool-tHPNeWMR.js';
2
+ import { T as Tool } from './tool-Dhwg__1L.js';
3
3
 
4
4
  type VectorFilter = {
5
5
  type: "eq";
@@ -182,10 +182,47 @@ type ToolDefinition = {
182
182
  description: string;
183
183
  parameters: JsonObject;
184
184
  };
185
+ /**
186
+ * A tool executed by the model provider rather than by Anvia's local tool runtime.
187
+ *
188
+ * Provider packages expose typed factories for these values. Application code can
189
+ * pass them through the same high-level `tools` APIs used for local tools.
190
+ */
191
+ type ProviderTool = {
192
+ kind: "provider";
193
+ provider: string;
194
+ name: string;
195
+ configuration?: JsonObject;
196
+ };
197
+ type CompletionTool = ToolDefinition | ProviderTool;
198
+ declare function isProviderTool(value: unknown): value is ProviderTool;
199
+ type CompletionSource = {
200
+ type: "url";
201
+ url: string;
202
+ title?: string;
203
+ id?: string;
204
+ startIndex?: number;
205
+ endIndex?: number;
206
+ };
207
+ type ProviderToolCall = {
208
+ id: string;
209
+ name: string;
210
+ status?: string;
211
+ details?: JsonObject;
212
+ };
213
+ /**
214
+ * Provider-normalized, mutually exclusive usage buckets.
215
+ *
216
+ * Every token should appear in exactly one non-total bucket. `total` is the
217
+ * only aggregate key and should equal the sum of the other buckets.
218
+ */
219
+ type UsageDetails = Record<string, number>;
185
220
  type AssistantGenerationMetadata = {
186
221
  provider: string;
187
222
  model: string;
188
223
  usage: Usage;
224
+ sources?: CompletionSource[];
225
+ providerToolCalls?: ProviderToolCall[];
189
226
  };
190
227
  type Usage = {
191
228
  inputTokens: number;
@@ -193,6 +230,7 @@ type Usage = {
193
230
  totalTokens: number;
194
231
  cachedInputTokens: number;
195
232
  cacheCreationInputTokens: number;
233
+ details?: UsageDetails;
196
234
  };
197
235
  declare const Usage: {
198
236
  empty(): Usage;
@@ -205,6 +243,7 @@ type CompletionRequest<ModelName extends string = string> = {
205
243
  chatHistory: Message[];
206
244
  documents: Document[];
207
245
  tools: ToolDefinition[];
246
+ providerTools?: ProviderTool[];
208
247
  temperature?: number;
209
248
  maxTokens?: number;
210
249
  toolChoice?: ToolChoice;
@@ -216,6 +255,8 @@ type CompletionResponse<RawResponse = unknown> = {
216
255
  usage: Usage;
217
256
  rawResponse: RawResponse;
218
257
  messageId?: string;
258
+ sources?: CompletionSource[];
259
+ providerToolCalls?: ProviderToolCall[];
219
260
  };
220
261
  type CompletionModelCapabilities = {
221
262
  streaming: boolean;
@@ -225,6 +266,7 @@ type CompletionModelCapabilities = {
225
266
  documentInput: boolean;
226
267
  outputSchema: boolean;
227
268
  reasoning: boolean;
269
+ providerTools?: boolean;
228
270
  };
229
271
  interface CompletionModel<RawResponse = unknown, ModelName extends string = string> {
230
272
  readonly provider: string;
@@ -256,6 +298,12 @@ type CompletionStreamEvent<RawResponse = unknown> = {
256
298
  } | {
257
299
  type: "tool_call";
258
300
  toolCall: ToolCall;
301
+ } | {
302
+ type: "source";
303
+ source: CompletionSource;
304
+ } | {
305
+ type: "provider_tool_call";
306
+ toolCall: ProviderToolCall;
259
307
  } | {
260
308
  type: "message_id";
261
309
  id: string;
@@ -278,4 +326,4 @@ declare function assertCompletionRequestSupported(model: CompletionModel, reques
278
326
  }): void;
279
327
  declare function textFromAssistantContent(content: AssistantContent[]): string;
280
328
 
281
- export { AssistantContent as A, type ImageDetail as B, type CompletionModel as C, type Document as D, type ReasoningContent as E, type ReasoningContentType as F, type StreamingCompletionModel as G, type ToolCallArgumentsMode as H, type ImageContent as I, type JsonObject as J, type ToolFunction as K, assertCompletionRequestSupported as L, Message as M, reasoningDisplayText as N, textFromAssistantContent as O, type Reasoning as R, type SystemMessage as S, type Text as T, Usage as U, type AssistantGenerationMetadata as a, type AssistantMessage as b, type AssistantMessageOptions as c, type CompletionRequest as d, type CompletionResponse as e, type JsonPrimitive as f, type JsonValue as g, type MessageOptions as h, type ToolCall as i, ToolContent as j, type ToolDefinition as k, type ToolMessage as l, type ToolResult as m, type ToolResultContent as n, type ToolResultMessageOptions as o, type ToolResultOptions as p, UserContent as q, type UserMessage as r, getAssistantGenerationMetadata as s, isToolResultContentArray as t, serializeToolResultOutput as u, type ToolChoice as v, CompletionCapabilityError as w, type CompletionModelCapabilities as x, type CompletionStreamEvent as y, type DocumentContent as z };
329
+ export { AssistantContent as A, CompletionCapabilityError as B, type CompletionModel as C, type Document as D, type CompletionModelCapabilities as E, type CompletionStreamEvent as F, type DocumentContent as G, type ImageDetail as H, type ImageContent as I, type JsonObject as J, type ReasoningContent as K, type ReasoningContentType as L, Message as M, type StreamingCompletionModel as N, type ToolCallArgumentsMode as O, type ProviderTool as P, type ToolFunction as Q, type Reasoning as R, type SystemMessage as S, type Text as T, Usage as U, type UsageDetails as V, assertCompletionRequestSupported as W, reasoningDisplayText as X, textFromAssistantContent as Y, type AssistantGenerationMetadata as a, type AssistantMessage as b, type AssistantMessageOptions as c, type CompletionRequest as d, type CompletionResponse as e, type CompletionSource as f, type CompletionTool as g, type JsonPrimitive as h, type JsonValue as i, type MessageOptions as j, type ProviderToolCall as k, type ToolCall as l, ToolContent as m, type ToolDefinition as n, type ToolMessage as o, type ToolResult as p, type ToolResultContent as q, type ToolResultMessageOptions as r, type ToolResultOptions as s, UserContent as t, type UserMessage as u, getAssistantGenerationMetadata as v, isProviderTool as w, isToolResultContentArray as x, serializeToolResultOutput as y, type ToolChoice as z };
@@ -1,4 +1,4 @@
1
- import { A as AnyTool } from './tool-tHPNeWMR.js';
1
+ import { A as AnyTool } from './tool-Dhwg__1L.js';
2
2
 
3
3
  type Skill = {
4
4
  readonly name: string;
@@ -1,4 +1,4 @@
1
- import { B as ImageDetail, g as JsonValue, U as Usage, M as Message } from '../types-Byo50mwr.js';
1
+ import { H as ImageDetail, i as JsonValue, U as Usage, M as Message } from '../types-XjIh933x.js';
2
2
 
3
3
  type UIMessageRole = "system" | "user" | "assistant" | "tool";
4
4
  type UIError = {
package/dist/ui/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  coreMessagesToUIMessages,
3
3
  uiMessagesToCoreMessages
4
- } from "../chunk-MEUZ4NBO.js";
5
- import "../chunk-TIV3WFSR.js";
4
+ } from "../chunk-SWUH4G2I.js";
5
+ import "../chunk-PJDL5UT2.js";
6
6
  export {
7
7
  coreMessagesToUIMessages,
8
8
  uiMessagesToCoreMessages
@@ -1,8 +1,8 @@
1
1
  import { a as VectorMetadataValue, V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument, d as Embedding } from '../types-DHHZztGO.js';
2
- import { T as Tool } from '../tool-tHPNeWMR.js';
3
- import { V as VectorFilter, a as VectorSearchIndex, I as IndexStrategy, b as VectorSearchRequest, c as VectorSearchResult, d as VectorInspectRequest, e as VectorInspectPage, f as VectorSearchToolOptions } from '../types-BHxJcHMk.js';
4
- export { L as LshOptions, g as VectorInspectItem } from '../types-BHxJcHMk.js';
5
- import '../types-Byo50mwr.js';
2
+ import { T as Tool } from '../tool-Dhwg__1L.js';
3
+ import { V as VectorFilter, a as VectorSearchIndex, I as IndexStrategy, b as VectorSearchRequest, c as VectorSearchResult, d as VectorInspectRequest, e as VectorInspectPage, f as VectorSearchToolOptions } from '../types-DMGvEFRf.js';
4
+ export { L as LshOptions, g as VectorInspectItem } from '../types-DMGvEFRf.js';
5
+ import '../types-XjIh933x.js';
6
6
 
7
7
  declare const vectorFilter: {
8
8
  eq(key: string, value: VectorMetadataValue): VectorFilter;
@@ -3,10 +3,10 @@ import {
3
3
  InMemoryVectorStore,
4
4
  createVectorSearchTool,
5
5
  vectorFilter
6
- } from "../chunk-I7TM7TKX.js";
7
- import "../chunk-WQKHFADH.js";
6
+ } from "../chunk-F3C5653H.js";
8
7
  import "../chunk-YBBD4HZ3.js";
9
8
  import "../chunk-OIMLU4SF.js";
9
+ import "../chunk-WQKHFADH.js";
10
10
  export {
11
11
  InMemoryVectorIndex,
12
12
  InMemoryVectorStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvia/core",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "Core runtime primitives for context-aware Anvia agents.",
5
5
  "author": "anvia",
6
6
  "maintainer": "Indra Zulfi",