@anvia/core 0.16.0 → 0.18.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.
- package/dist/agent/index.d.ts +11 -11
- package/dist/agent/index.js +9 -7
- package/dist/{agent-BTiQ4RZn.d.ts → agent-CBz3CRxa.d.ts} +8 -7
- package/dist/audio-generation/index.d.ts +1 -1
- package/dist/{chunk-3PRP2DV4.js → chunk-3YJXLOGO.js} +5 -5
- package/dist/{chunk-PJCJ45RJ.js → chunk-7LCKIULT.js} +198 -16
- package/dist/chunk-7LCKIULT.js.map +1 -0
- package/dist/{chunk-A7AYX6BD.js → chunk-DPTZ2MK4.js} +12 -6
- package/dist/{chunk-A7AYX6BD.js.map → chunk-DPTZ2MK4.js.map} +1 -1
- package/dist/{chunk-K72JKDZ7.js → chunk-F56AMXMQ.js} +3 -132
- package/dist/chunk-F56AMXMQ.js.map +1 -0
- package/dist/{chunk-4PMAWIGM.js → chunk-JNJBKSLA.js} +2 -2
- package/dist/chunk-MTGNA4OS.js +138 -0
- package/dist/chunk-MTGNA4OS.js.map +1 -0
- package/dist/{chunk-R6QERZAB.js → chunk-PJDL5UT2.js} +52 -4
- package/dist/chunk-PJDL5UT2.js.map +1 -0
- package/dist/{chunk-3QG4SFH4.js → chunk-QABIBFKE.js} +4 -4
- package/dist/{chunk-IT426VXL.js → chunk-SWUH4G2I.js} +2 -2
- package/dist/chunk-TGLNXVII.js +220 -0
- package/dist/chunk-TGLNXVII.js.map +1 -0
- package/dist/chunk-XWUC7CIT.js +1 -0
- package/dist/chunk-XWUC7CIT.js.map +1 -0
- package/dist/chunk-ZNTIUOKL.js +33 -0
- package/dist/chunk-ZNTIUOKL.js.map +1 -0
- package/dist/completion/index.d.ts +3 -3
- package/dist/completion/index.js +7 -5
- package/dist/errors-Bf661V89.d.ts +17 -0
- package/dist/evals/index.d.ts +8 -8
- package/dist/evals/index.js +10 -8
- package/dist/evals/index.js.map +1 -1
- package/dist/extractor/index.d.ts +8 -8
- package/dist/extractor/index.js +10 -8
- package/dist/guardrails/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +3 -3
- package/dist/image-generation/index.d.ts +1 -1
- package/dist/{index-Du1vCw6J.d.ts → index-XTUEMWhU.d.ts} +16 -8
- package/dist/index.d.ts +13 -12
- package/dist/index.js +20 -8
- package/dist/internal/agent.d.ts +8 -8
- package/dist/internal/agent.js +7 -5
- package/dist/{json-D_Ijo4lJ.d.ts → json-D9IvOgx_.d.ts} +1 -1
- package/dist/loaders/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/memory/index.d.ts +4 -3
- package/dist/memory/index.js +15 -1
- package/dist/{middleware-CsxdqqjJ.d.ts → middleware-Cp0tm6zE.d.ts} +3 -3
- package/dist/observability/index.d.ts +3 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +8 -8
- package/dist/request/index.d.ts +8 -8
- package/dist/request/index.js +6 -4
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/index.js +2 -2
- package/dist/{think-tool-BTFFKn1m.d.ts → think-tool-CpCKo8Q8.d.ts} +1 -1
- package/dist/tool/index.d.ts +5 -5
- package/dist/tool/index.js +2 -2
- package/dist/{tool-sKozRXMI.d.ts → tool-Dhwg__1L.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-yf-Exga_.d.ts → types-BBEf34DP.d.ts} +2 -2
- package/dist/{types-CHFrSm-3.d.ts → types-BCA8p0sb.d.ts} +1 -1
- package/dist/types-DBHzPsbx.d.ts +119 -0
- package/dist/{types-BkTDw00d.d.ts → types-DMGvEFRf.d.ts} +1 -1
- package/dist/{types-nybevqL9.d.ts → types-XjIh933x.d.ts} +9 -1
- package/dist/{types-BT1n5oU4.d.ts → types-fBv8mhvP.d.ts} +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/vector-store/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-K72JKDZ7.js.map +0 -1
- package/dist/chunk-M6RPFHG7.js +0 -11
- package/dist/chunk-M6RPFHG7.js.map +0 -1
- package/dist/chunk-PJCJ45RJ.js.map +0 -1
- package/dist/chunk-R6QERZAB.js.map +0 -1
- package/dist/types-DMQ8JEf8.d.ts +0 -72
- /package/dist/{chunk-3PRP2DV4.js.map → chunk-3YJXLOGO.js.map} +0 -0
- /package/dist/{chunk-4PMAWIGM.js.map → chunk-JNJBKSLA.js.map} +0 -0
- /package/dist/{chunk-3QG4SFH4.js.map → chunk-QABIBFKE.js.map} +0 -0
- /package/dist/{chunk-IT426VXL.js.map → chunk-SWUH4G2I.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as ReasoningContentType, l as ToolCall, f as CompletionSource, k as ProviderToolCall, U as Usage, M as Message, q as ToolResultContent, e as CompletionResponse, O as ToolCallArgumentsMode,
|
|
1
|
+
import { L as ReasoningContentType, l as ToolCall, f as CompletionSource, k as ProviderToolCall, U as Usage, M as Message, d as CompletionRequest, q as ToolResultContent, e as CompletionResponse, O as ToolCallArgumentsMode, J as JsonObject, E as CompletionModelCapabilities, n as ToolDefinition, i as JsonValue } from './types-XjIh933x.js';
|
|
2
2
|
import { GuardrailDecisionRecord } from './guardrails/index.js';
|
|
3
|
-
import { g as ToolCallStreamEvent } from './tool-
|
|
3
|
+
import { g as ToolCallStreamEvent } from './tool-Dhwg__1L.js';
|
|
4
4
|
|
|
5
5
|
type PromptResponse = {
|
|
6
6
|
output: string;
|
|
@@ -54,6 +54,11 @@ type AgentChildStreamEventBase<RawResponse = unknown> = {
|
|
|
54
54
|
turn: number;
|
|
55
55
|
prompt: Message;
|
|
56
56
|
history: Message[];
|
|
57
|
+
} | {
|
|
58
|
+
type: "generation_start";
|
|
59
|
+
turn: number;
|
|
60
|
+
request: CompletionRequest;
|
|
61
|
+
modelInfo: AgentGenerationModelInfo;
|
|
57
62
|
} | {
|
|
58
63
|
type: "text_delta";
|
|
59
64
|
turn: number;
|
|
@@ -90,6 +95,7 @@ type AgentChildStreamEventBase<RawResponse = unknown> = {
|
|
|
90
95
|
type: "turn_end";
|
|
91
96
|
turn: number;
|
|
92
97
|
response: CompletionResponse<RawResponse>;
|
|
98
|
+
firstDeltaMs?: number | undefined;
|
|
93
99
|
} | {
|
|
94
100
|
type: "guardrail_decision";
|
|
95
101
|
turn?: number | undefined;
|
|
@@ -135,6 +141,7 @@ type AgentTraceOptions = {
|
|
|
135
141
|
version?: string | undefined;
|
|
136
142
|
traceId?: string | undefined;
|
|
137
143
|
failOnObserverError?: boolean | undefined;
|
|
144
|
+
promptRef?: AgentRunPromptRef | undefined;
|
|
138
145
|
};
|
|
139
146
|
type AgentRunPromptRef = {
|
|
140
147
|
name: string;
|
|
@@ -162,15 +169,16 @@ type AgentRunErrorArgs = {
|
|
|
162
169
|
usage: Usage;
|
|
163
170
|
messages: Message[];
|
|
164
171
|
};
|
|
172
|
+
type AgentGenerationModelInfo = {
|
|
173
|
+
provider: string;
|
|
174
|
+
defaultModel: string;
|
|
175
|
+
capabilities?: CompletionModelCapabilities | undefined;
|
|
176
|
+
};
|
|
165
177
|
type AgentGenerationStartArgs = {
|
|
166
178
|
turn: number;
|
|
167
179
|
request: CompletionRequest;
|
|
168
180
|
providerRequest?: JsonObject | undefined;
|
|
169
|
-
modelInfo?:
|
|
170
|
-
provider: string;
|
|
171
|
-
defaultModel: string;
|
|
172
|
-
capabilities?: CompletionModelCapabilities | undefined;
|
|
173
|
-
};
|
|
181
|
+
modelInfo?: AgentGenerationModelInfo | undefined;
|
|
174
182
|
};
|
|
175
183
|
type AgentGenerationEndArgs<RawResponse = unknown> = {
|
|
176
184
|
turn: number;
|
|
@@ -244,4 +252,4 @@ type ObserveOptions = {
|
|
|
244
252
|
};
|
|
245
253
|
declare function createObserver(observer: AgentObserver): AgentObserver;
|
|
246
254
|
|
|
247
|
-
export { type AgentChildStreamEvent as A, type
|
|
255
|
+
export { type AgentChildStreamEvent as A, type AgentToolObserver as B, type AgentToolStartArgs as C, type AgentToolStreamEventArgs as D, type AgentTraceInfo as E, createObserver as F, type ObserveOptions as O, type PromptResponse as P, type AgentChildStreamEventWithToolCallDeltas as a, type AgentChildStreamEventWithoutToolCallDeltas as b, type AgentErrorStreamEvent as c, type AgentStreamEvent as d, type AgentStreamEventWithToolCallDeltas as e, type AgentStreamEventWithoutToolCallDeltas as f, type AgentStreamOptions as g, type AgentToolCallDeltaEvent as h, type AgentObserver as i, type AgentTraceOptions as j, type AgentObserverRegistration as k, type AgentDeltaEvent as l, type AgentGenerationEndArgs as m, type AgentGenerationErrorArgs as n, type AgentGenerationModelInfo as o, type AgentGenerationObserver as p, type AgentGenerationStartArgs as q, type AgentGenerationUpdateArgs as r, type AgentRunEndArgs as s, type AgentRunErrorArgs as t, type AgentRunEventArgs as u, type AgentRunObserver as v, type AgentRunPromptRef as w, type AgentRunStartArgs as x, type AgentToolEndArgs as y, type AgentToolErrorArgs as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
export { AgentBuilder } from './agent/index.js';
|
|
2
|
-
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue } from './json-
|
|
3
|
-
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, C as CompletionModel, d as CompletionRequest, e as CompletionResponse, f as CompletionSource, g as CompletionTool, D as Document, I as ImageContent, J as JsonObject, h as JsonPrimitive, i as JsonValue, M as Message, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, S as SystemMessage, T as Text, l as ToolCall, m as ToolContent, n as ToolDefinition, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, t as UserContent, u as UserMessage, v as getAssistantGenerationMetadata, w as isProviderTool } from './types-
|
|
2
|
+
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue } from './json-D9IvOgx_.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, C as CompletionModel, d as CompletionRequest, e as CompletionResponse, f as CompletionSource, g as CompletionTool, D as Document, I as ImageContent, J as JsonObject, h as JsonPrimitive, i as JsonValue, M as Message, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, S as SystemMessage, T as Text, l as ToolCall, m as ToolContent, n as ToolDefinition, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, t as UserContent, u as UserMessage, v as getAssistantGenerationMetadata, w as isProviderTool } from './types-XjIh933x.js';
|
|
4
4
|
export { GuardrailBoundary, GuardrailDecisionRecord, GuardrailMode, GuardrailPolicy, GuardrailPolicyInput, GuardrailPolicyOptions, InputGuardrail, InputGuardrailActions, InputGuardrailContext, OutputGuardrail, OutputGuardrailActions, OutputGuardrailContext, allow, block, defineGuardrailPolicy, defineInputGuardrail, defineOutputGuardrail, guardrails } from './guardrails/index.js';
|
|
5
5
|
export { cancelPrompt, createHook, requestToolApproval, runControl, skipTool, toolCallControl } from './hooks/index.js';
|
|
6
|
-
export { M as
|
|
6
|
+
export { M as MemoryCompactionConflictError, a as MemoryCompactionError, c as createSummaryMemoryCompactor, i as isMemoryCompactionSummary } from './errors-Bf661V89.js';
|
|
7
|
+
export { M as MemoryCompactionCommitInput, a as MemoryCompactionCommitResult, b as MemoryCompactionOptions, c as MemoryCompactionSnapshot, d as MemoryCompactionStore, e as MemoryCompactor, f as MemoryCompactorInput, g as MemoryCompactorResult, h as MemoryConversation, i as MemoryConversationListOptions, j as MemoryConversationMessage, k as MemoryConversationSummary, l as MemoryInspector, m as MemoryStore, R as ResolvedMemoryCompactionOptions, S as SummaryMemoryCompactorOptions } from './types-DBHzPsbx.js';
|
|
7
8
|
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError } from './request/index.js';
|
|
8
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-
|
|
9
|
-
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from './index-
|
|
9
|
+
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-CBz3CRxa.js';
|
|
10
|
+
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, 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';
|
|
10
11
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
11
12
|
export { loadSkills, skill } from './skills/index.js';
|
|
12
|
-
export { S as SkillValidationError } from './types-
|
|
13
|
-
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-
|
|
14
|
-
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent } from './tool-
|
|
15
|
-
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, i as createMiddleware, j as createToolMiddleware } from './middleware-
|
|
13
|
+
export { S as SkillValidationError } from './types-fBv8mhvP.js';
|
|
14
|
+
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-CpCKo8Q8.js';
|
|
15
|
+
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent } from './tool-Dhwg__1L.js';
|
|
16
|
+
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, i as createMiddleware, j as createToolMiddleware } from './middleware-Cp0tm6zE.js';
|
|
16
17
|
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
17
|
-
import './types-
|
|
18
|
-
import './types-
|
|
18
|
+
import './types-BCA8p0sb.js';
|
|
19
|
+
import './types-BBEf34DP.js';
|
|
19
20
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
20
21
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
21
22
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
22
|
-
import './types-
|
|
23
|
+
import './types-DMGvEFRf.js';
|
|
23
24
|
import './types-DHHZztGO.js';
|
|
24
25
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -6,24 +6,25 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
coreMessagesToUIMessages,
|
|
8
8
|
uiMessagesToCoreMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SWUH4G2I.js";
|
|
10
10
|
import "./chunk-CQNNSZPG.js";
|
|
11
|
+
import "./chunk-XWUC7CIT.js";
|
|
11
12
|
import {
|
|
12
13
|
AgentBuilder
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-DPTZ2MK4.js";
|
|
15
|
+
import "./chunk-QABIBFKE.js";
|
|
15
16
|
import {
|
|
16
17
|
MaxTurnsError,
|
|
17
18
|
PromptCancelledError,
|
|
18
19
|
ToolApprovalRequiredError
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7LCKIULT.js";
|
|
20
21
|
import "./chunk-YK4WAAS4.js";
|
|
21
22
|
import "./chunk-XUUY2L2D.js";
|
|
22
23
|
import {
|
|
23
24
|
createMiddleware,
|
|
24
25
|
createThinkTool,
|
|
25
26
|
createToolMiddleware
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JNJBKSLA.js";
|
|
27
28
|
import {
|
|
28
29
|
createTool
|
|
29
30
|
} from "./chunk-I7TM7TKX.js";
|
|
@@ -35,12 +36,19 @@ import {
|
|
|
35
36
|
skipTool,
|
|
36
37
|
toolCallControl
|
|
37
38
|
} from "./chunk-2ODTMRHP.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-ZNTIUOKL.js";
|
|
40
|
+
import {
|
|
41
|
+
MemoryCompactionConflictError,
|
|
42
|
+
MemoryCompactionError,
|
|
43
|
+
createSummaryMemoryCompactor,
|
|
44
|
+
isMemoryCompactionSummary
|
|
45
|
+
} from "./chunk-TGLNXVII.js";
|
|
46
|
+
import "./chunk-MTGNA4OS.js";
|
|
39
47
|
import {
|
|
40
48
|
createCompletion,
|
|
41
49
|
createCompletionStream,
|
|
42
50
|
createParsedCompletion
|
|
43
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-F56AMXMQ.js";
|
|
44
52
|
import {
|
|
45
53
|
AssistantContent,
|
|
46
54
|
Message,
|
|
@@ -50,7 +58,7 @@ import {
|
|
|
50
58
|
getAssistantGenerationMetadata,
|
|
51
59
|
isJsonValue,
|
|
52
60
|
isProviderTool
|
|
53
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-PJDL5UT2.js";
|
|
54
62
|
import "./chunk-WQKHFADH.js";
|
|
55
63
|
import "./chunk-YBBD4HZ3.js";
|
|
56
64
|
import "./chunk-OIMLU4SF.js";
|
|
@@ -66,6 +74,8 @@ export {
|
|
|
66
74
|
AgentBuilder,
|
|
67
75
|
AssistantContent,
|
|
68
76
|
MaxTurnsError,
|
|
77
|
+
MemoryCompactionConflictError,
|
|
78
|
+
MemoryCompactionError,
|
|
69
79
|
Message,
|
|
70
80
|
PromptCancelledError,
|
|
71
81
|
SkillValidationError,
|
|
@@ -82,6 +92,7 @@ export {
|
|
|
82
92
|
createHook,
|
|
83
93
|
createMiddleware,
|
|
84
94
|
createParsedCompletion,
|
|
95
|
+
createSummaryMemoryCompactor,
|
|
85
96
|
createThinkTool,
|
|
86
97
|
createTool,
|
|
87
98
|
createToolMiddleware,
|
|
@@ -91,6 +102,7 @@ export {
|
|
|
91
102
|
getAssistantGenerationMetadata,
|
|
92
103
|
guardrails,
|
|
93
104
|
isJsonValue,
|
|
105
|
+
isMemoryCompactionSummary,
|
|
94
106
|
isProviderTool,
|
|
95
107
|
loadSkills,
|
|
96
108
|
requestToolApproval,
|
package/dist/internal/agent.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
import '../types-
|
|
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-CBz3CRxa.js';
|
|
2
|
+
import '../types-XjIh933x.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
6
|
-
import '../index-
|
|
7
|
-
import '../tool-
|
|
8
|
-
import '../middleware-
|
|
4
|
+
import '../types-BCA8p0sb.js';
|
|
5
|
+
import '../types-DBHzPsbx.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-
|
|
10
|
+
import '../types-DMGvEFRf.js';
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,15 +2,17 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-QABIBFKE.js";
|
|
6
|
+
import "../chunk-7LCKIULT.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-JNJBKSLA.js";
|
|
10
10
|
import "../chunk-I7TM7TKX.js";
|
|
11
11
|
import "../chunk-2ODTMRHP.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-TGLNXVII.js";
|
|
13
|
+
import "../chunk-MTGNA4OS.js";
|
|
14
|
+
import "../chunk-F56AMXMQ.js";
|
|
15
|
+
import "../chunk-PJDL5UT2.js";
|
|
14
16
|
import "../chunk-WQKHFADH.js";
|
|
15
17
|
import "../chunk-YBBD4HZ3.js";
|
|
16
18
|
import "../chunk-OIMLU4SF.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.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-
|
|
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 = {
|
package/dist/loaders/index.d.ts
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as McpConnection, a as McpServer, b as McpStdioOptions, c as McpHttpOptions, d as McpSseOptions } from '../types-
|
|
2
|
-
export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-
|
|
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-
|
|
7
|
-
import '../tool-
|
|
6
|
+
import '../types-XjIh933x.js';
|
|
7
|
+
import '../tool-Dhwg__1L.js';
|
|
8
8
|
|
|
9
9
|
declare function connectMcp(connection: McpConnection): Promise<McpServer>;
|
|
10
10
|
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { M as MemoryCompactionConflictError, a as MemoryCompactionError, c as createSummaryMemoryCompactor, i as isMemoryCompactionSummary } from '../errors-Bf661V89.js';
|
|
2
|
+
import { n as MemoryOptions, o as ResolvedMemoryOptions } from '../types-DBHzPsbx.js';
|
|
3
|
+
export { p as MemoryAppendInput, M as MemoryCompactionCommitInput, a as MemoryCompactionCommitResult, b as MemoryCompactionOptions, c as MemoryCompactionSnapshot, d as MemoryCompactionStore, e as MemoryCompactor, f as MemoryCompactorInput, g as MemoryCompactorResult, q as MemoryContext, h as MemoryConversation, i as MemoryConversationListOptions, j as MemoryConversationMessage, k as MemoryConversationSummary, r as MemoryErrorInput, l as MemoryInspector, s as MemoryRegistration, t as MemorySavePolicy, m as MemoryStore, R as ResolvedMemoryCompactionOptions, u as SessionOptions, S as SummaryMemoryCompactorOptions } from '../types-DBHzPsbx.js';
|
|
4
|
+
import '../types-XjIh933x.js';
|
|
4
5
|
|
|
5
6
|
declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
|
|
6
7
|
|
package/dist/memory/index.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
import "../chunk-XWUC7CIT.js";
|
|
1
2
|
import {
|
|
2
3
|
resolveMemoryOptions
|
|
3
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZNTIUOKL.js";
|
|
5
|
+
import {
|
|
6
|
+
MemoryCompactionConflictError,
|
|
7
|
+
MemoryCompactionError,
|
|
8
|
+
createSummaryMemoryCompactor,
|
|
9
|
+
isMemoryCompactionSummary
|
|
10
|
+
} from "../chunk-TGLNXVII.js";
|
|
11
|
+
import "../chunk-F56AMXMQ.js";
|
|
12
|
+
import "../chunk-PJDL5UT2.js";
|
|
13
|
+
import "../chunk-WQKHFADH.js";
|
|
4
14
|
export {
|
|
15
|
+
MemoryCompactionConflictError,
|
|
16
|
+
MemoryCompactionError,
|
|
17
|
+
createSummaryMemoryCompactor,
|
|
18
|
+
isMemoryCompactionSummary,
|
|
5
19
|
resolveMemoryOptions
|
|
6
20
|
};
|
|
7
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ToolDefinition, d as CompletionRequest, e as CompletionResponse, i as JsonValue, q as ToolResultContent } from './types-
|
|
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-
|
|
4
|
-
import { a as VectorSearchIndex } from './types-
|
|
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
|
|
2
|
-
import '../types-
|
|
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-
|
|
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 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};\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
|
|
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":[]}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
3
|
-
import { J as JsonObject, C as CompletionModel } from '../types-
|
|
2
|
+
import { A as Agent } from '../agent-CBz3CRxa.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-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../tool-
|
|
10
|
-
import '../middleware-
|
|
6
|
+
import '../types-BCA8p0sb.js';
|
|
7
|
+
import '../types-DBHzPsbx.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-
|
|
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. */
|
package/dist/request/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { M as Message } from '../types-
|
|
2
|
-
import { d as ToolApprovalRequest } from '../tool-
|
|
3
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-
|
|
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-
|
|
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-CBz3CRxa.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-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../middleware-
|
|
6
|
+
import '../types-BCA8p0sb.js';
|
|
7
|
+
import '../types-DBHzPsbx.js';
|
|
8
|
+
import '../middleware-Cp0tm6zE.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-DMGvEFRf.js';
|
|
11
11
|
|
|
12
12
|
declare class MaxTurnsError extends Error {
|
|
13
13
|
readonly maxTurns: number;
|
package/dist/request/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-7LCKIULT.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-JNJBKSLA.js";
|
|
9
9
|
import "../chunk-I7TM7TKX.js";
|
|
10
10
|
import "../chunk-2ODTMRHP.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-TGLNXVII.js";
|
|
12
|
+
import "../chunk-MTGNA4OS.js";
|
|
13
|
+
import "../chunk-F56AMXMQ.js";
|
|
14
|
+
import "../chunk-PJDL5UT2.js";
|
|
13
15
|
import "../chunk-WQKHFADH.js";
|
|
14
16
|
import "../chunk-YBBD4HZ3.js";
|
|
15
17
|
import "../chunk-OIMLU4SF.js";
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SkillLoader, a as SkillSet } from '../types-
|
|
2
|
-
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-
|
|
3
|
-
import '../tool-
|
|
4
|
-
import '../types-
|
|
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
|
|
package/dist/skills/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
} from "../chunk-DC2GJDPR.js";
|
|
6
6
|
import "../chunk-CQNNSZPG.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-JNJBKSLA.js";
|
|
9
9
|
import "../chunk-I7TM7TKX.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-PJDL5UT2.js";
|
|
11
11
|
import "../chunk-WQKHFADH.js";
|
|
12
12
|
import "../chunk-YBBD4HZ3.js";
|
|
13
13
|
import "../chunk-OIMLU4SF.js";
|
|
@@ -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-
|
|
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;
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-
|
|
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-
|
|
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-
|
|
4
|
-
export { x as isToolResultContentArray, y as serializeToolOutput } from '../types-
|
|
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-
|
|
8
|
+
import '../types-DMGvEFRf.js';
|
|
9
9
|
|
|
10
10
|
declare class ToolCallError extends Error {
|
|
11
11
|
readonly cause?: unknown | undefined;
|
package/dist/tool/index.js
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
normalizeToolResultOutput,
|
|
14
14
|
parseToolArgs,
|
|
15
15
|
toolResultContentToText
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-JNJBKSLA.js";
|
|
17
17
|
import {
|
|
18
18
|
createTool
|
|
19
19
|
} from "../chunk-I7TM7TKX.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolResultContentArray,
|
|
22
22
|
serializeToolResultOutput
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-PJDL5UT2.js";
|
|
24
24
|
import "../chunk-WQKHFADH.js";
|
|
25
25
|
import "../chunk-YBBD4HZ3.js";
|
|
26
26
|
import "../chunk-OIMLU4SF.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JsonObject, n as ToolDefinition, q as ToolResultContent, i as JsonValue } from './types-
|
|
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,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-
|
|
5
|
-
import { A as AnyTool } from './tool-
|
|
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;
|