@anvia/core 0.12.4 → 0.12.6
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 +6 -6
- package/dist/{agent-BBj3jvBi.d.ts → agent-BB9vVH6P.d.ts} +7 -7
- package/dist/audio-generation/index.d.ts +1 -1
- package/dist/{chunk-C7JLBS3F.js → chunk-5MUPA66B.js} +4 -4
- package/dist/{chunk-SRBW3LD7.js → chunk-FUJ3POKH.js} +3 -3
- package/dist/chunk-FUJ3POKH.js.map +1 -0
- package/dist/{chunk-OODGSEUU.js → chunk-JJ3JGL5D.js} +3 -3
- package/dist/{chunk-OQXRM5DO.js → chunk-N3I6HH2J.js} +4 -4
- package/dist/{chunk-5LFGEMIW.js → chunk-QVFOCNF6.js} +21 -4
- package/dist/chunk-QVFOCNF6.js.map +1 -0
- package/dist/{chunk-ZHIZZWBJ.js → chunk-TD6A4RYQ.js} +5 -5
- package/dist/{chunk-LKLKEECY.js → chunk-WEOG3JCT.js} +82 -14
- package/dist/chunk-WEOG3JCT.js.map +1 -0
- package/dist/{chunk-YVQBC3SJ.js → chunk-YZLOFKTT.js} +2 -2
- package/dist/completion/index.d.ts +3 -3
- package/dist/completion/index.js +2 -2
- package/dist/{create-completion-Y6YsYbQB.d.ts → create-completion-CC8-Ep3w.d.ts} +1 -1
- package/dist/evals/index.d.ts +8 -8
- package/dist/evals/index.js +7 -7
- package/dist/extractor/index.d.ts +8 -8
- package/dist/extractor/index.js +7 -7
- 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-Oucb3Ljj.d.ts → index-CM-V4LS3.d.ts} +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +7 -7
- package/dist/internal/agent.d.ts +8 -8
- package/dist/internal/agent.js +5 -5
- package/dist/loaders/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/memory/index.d.ts +3 -3
- package/dist/{middleware-ByyL6Rj0.d.ts → middleware-i-jLsLom.d.ts} +3 -3
- package/dist/observability/index.d.ts +3 -3
- package/dist/pipeline/index.d.ts +8 -8
- package/dist/request/index.d.ts +8 -8
- package/dist/request/index.js +4 -4
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/index.js +2 -2
- package/dist/{think-tool-B065hm73.d.ts → think-tool-BKDCOJh5.d.ts} +1 -1
- package/dist/tool/index.d.ts +5 -5
- package/dist/tool/index.js +2 -2
- package/dist/{tool-B8K543oQ.d.ts → tool-f2stpvUP.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-7F_IKQQW.d.ts → types-5JgWDgaM.d.ts} +2 -2
- package/dist/{types-q9G7Bvwl.d.ts → types-C15r7N_4.d.ts} +7 -4
- package/dist/{types-CGML74sE.d.ts → types-Dh7gfoGw.d.ts} +1 -1
- package/dist/{types-Pl4PFQWL.d.ts → types-DmvXANwl.d.ts} +1 -1
- package/dist/{types-BzUuhjKr.d.ts → types-b6fOVoW1.d.ts} +1 -1
- package/dist/{types-CqG6d7Ce.d.ts → types-bNDxj4Tt.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-5LFGEMIW.js.map +0 -1
- package/dist/chunk-LKLKEECY.js.map +0 -1
- package/dist/chunk-SRBW3LD7.js.map +0 -1
- /package/dist/{chunk-C7JLBS3F.js.map → chunk-5MUPA66B.js.map} +0 -0
- /package/dist/{chunk-OODGSEUU.js.map → chunk-JJ3JGL5D.js.map} +0 -0
- /package/dist/{chunk-OQXRM5DO.js.map → chunk-N3I6HH2J.js.map} +0 -0
- /package/dist/{chunk-ZHIZZWBJ.js.map → chunk-TD6A4RYQ.js.map} +0 -0
- /package/dist/{chunk-YVQBC3SJ.js.map → chunk-YZLOFKTT.js.map} +0 -0
package/dist/completion/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatDocument,
|
|
7
7
|
isStreamingCompletionModel,
|
|
8
8
|
normalizeDocuments
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-FUJ3POKH.js";
|
|
10
10
|
import {
|
|
11
11
|
AssistantContent,
|
|
12
12
|
CompletionCapabilityError,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
reasoningDisplayText,
|
|
20
20
|
serializeToolResultOutput,
|
|
21
21
|
textFromAssistantContent
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-QVFOCNF6.js";
|
|
23
23
|
import "../chunk-WQKHFADH.js";
|
|
24
24
|
export {
|
|
25
25
|
AssistantContent,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
2
|
-
import { M as Message, D as Document, h as ToolDefinition, n as ToolChoice, J as JsonObject, e as JsonValue, A as AssistantContent, U as Usage, c as CompletionResponse, C as CompletionModel, o as StreamingCompletionModel, p as CompletionStreamEvent } from './types-
|
|
2
|
+
import { M as Message, D as Document, h as ToolDefinition, n as ToolChoice, J as JsonObject, e as JsonValue, A as AssistantContent, U as Usage, c as CompletionResponse, C as CompletionModel, o as StreamingCompletionModel, p as CompletionStreamEvent } from './types-C15r7N_4.js';
|
|
3
3
|
|
|
4
4
|
type CreateCompletionInput = string | Message | Message[];
|
|
5
5
|
type CreateCompletionBaseOptions = {
|
package/dist/evals/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
2
|
-
import { e as JsonValue, M as Message, C as CompletionModel } from '../types-
|
|
3
|
-
import { P as PromptResponse } from '../index-
|
|
1
|
+
import { A as Agent } from '../agent-BB9vVH6P.js';
|
|
2
|
+
import { e as JsonValue, M as Message, C as CompletionModel } from '../types-C15r7N_4.js';
|
|
3
|
+
import { P as PromptResponse } from '../index-CM-V4LS3.js';
|
|
4
4
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
5
5
|
import { E as EmbeddingModel } from '../types-DHHZztGO.js';
|
|
6
6
|
import '../guardrails/index.js';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types-
|
|
9
|
-
import '../tool-
|
|
10
|
-
import '../middleware-
|
|
11
|
-
import '../types-
|
|
7
|
+
import '../types-Dh7gfoGw.js';
|
|
8
|
+
import '../types-bNDxj4Tt.js';
|
|
9
|
+
import '../tool-f2stpvUP.js';
|
|
10
|
+
import '../middleware-i-jLsLom.js';
|
|
11
|
+
import '../types-DmvXANwl.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type EvalOutcome<Score = unknown> = {
|
package/dist/evals/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractorBuilder
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-TD6A4RYQ.js";
|
|
4
|
+
import "../chunk-JJ3JGL5D.js";
|
|
5
|
+
import "../chunk-N3I6HH2J.js";
|
|
6
|
+
import "../chunk-5MUPA66B.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-YZLOFKTT.js";
|
|
10
10
|
import "../chunk-QKA6OQTH.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import {
|
|
13
13
|
compact
|
|
14
14
|
} from "../chunk-MMHG7WAM.js";
|
|
15
15
|
import "../chunk-M6RPFHG7.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-FUJ3POKH.js";
|
|
17
|
+
import "../chunk-QVFOCNF6.js";
|
|
18
18
|
import "../chunk-WQKHFADH.js";
|
|
19
19
|
import {
|
|
20
20
|
cosineSimilarity,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { A as Agent } from '../agent-BB9vVH6P.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
|
-
import { U as Usage, M as Message, C as CompletionModel, e as JsonValue, n as ToolChoice } from '../types-
|
|
3
|
+
import { U as Usage, M as Message, C as CompletionModel, e as JsonValue, n as ToolChoice } from '../types-C15r7N_4.js';
|
|
4
4
|
import '../guardrails/index.js';
|
|
5
|
-
import '../types-
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../index-
|
|
8
|
-
import '../tool-
|
|
9
|
-
import '../middleware-
|
|
5
|
+
import '../types-Dh7gfoGw.js';
|
|
6
|
+
import '../types-bNDxj4Tt.js';
|
|
7
|
+
import '../index-CM-V4LS3.js';
|
|
8
|
+
import '../tool-f2stpvUP.js';
|
|
9
|
+
import '../middleware-i-jLsLom.js';
|
|
10
10
|
import '../types-DHHZztGO.js';
|
|
11
|
-
import '../types-
|
|
11
|
+
import '../types-DmvXANwl.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type ExtractionResponse<T> = {
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
ExtractionError,
|
|
3
3
|
Extractor,
|
|
4
4
|
ExtractorBuilder
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-TD6A4RYQ.js";
|
|
6
|
+
import "../chunk-JJ3JGL5D.js";
|
|
7
|
+
import "../chunk-N3I6HH2J.js";
|
|
8
|
+
import "../chunk-5MUPA66B.js";
|
|
9
9
|
import "../chunk-YK4WAAS4.js";
|
|
10
10
|
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-YZLOFKTT.js";
|
|
12
12
|
import "../chunk-QKA6OQTH.js";
|
|
13
13
|
import "../chunk-NPZDYOE6.js";
|
|
14
14
|
import "../chunk-MMHG7WAM.js";
|
|
15
15
|
import "../chunk-M6RPFHG7.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-FUJ3POKH.js";
|
|
17
|
+
import "../chunk-QVFOCNF6.js";
|
|
18
18
|
import "../chunk-WQKHFADH.js";
|
|
19
19
|
import "../chunk-JS5MGVNM.js";
|
|
20
20
|
import "../chunk-OIMLU4SF.js";
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HookAction, P as PromptHook, T as ToolApprovalRequestOptions, a as ToolCallHookAction, R as RunControl, b as ToolCallControl } from '../types-
|
|
2
|
-
export { C as CompletionCallHookArgs, c as CompletionErrorHookArgs, d as CompletionResponseHookArgs, e as HookResult, f as RunEndHookArgs, g as RunErrorHookArgs, h as RunStartHookArgs, i as ToolCallHookArgs, j as ToolCallHookResult, k as ToolErrorHookArgs, l as ToolHookArgs, m as ToolResultHookArgs, n as TurnEndHookArgs, o as TurnStartHookArgs } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { H as HookAction, P as PromptHook, T as ToolApprovalRequestOptions, a as ToolCallHookAction, R as RunControl, b as ToolCallControl } from '../types-Dh7gfoGw.js';
|
|
2
|
+
export { C as CompletionCallHookArgs, c as CompletionErrorHookArgs, d as CompletionResponseHookArgs, e as HookResult, f as RunEndHookArgs, g as RunErrorHookArgs, h as RunStartHookArgs, i as ToolCallHookArgs, j as ToolCallHookResult, k as ToolErrorHookArgs, l as ToolHookArgs, m as ToolResultHookArgs, n as TurnEndHookArgs, o as TurnStartHookArgs } from '../types-Dh7gfoGw.js';
|
|
3
|
+
import '../types-C15r7N_4.js';
|
|
4
4
|
|
|
5
5
|
declare function createHook<RawResponse = unknown>(hook: PromptHook<RawResponse>): PromptHook<RawResponse>;
|
|
6
6
|
declare function cancelPrompt(reason: string): HookAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as ReasoningContentType, f as ToolCall, U as Usage, M as Message, k as ToolResultContent, c as CompletionResponse, b as CompletionRequest, J as JsonObject, t as CompletionModelCapabilities, h as ToolDefinition, e as JsonValue } from './types-
|
|
1
|
+
import { x as ReasoningContentType, f as ToolCall, U as Usage, M as Message, k as ToolResultContent, c as CompletionResponse, b as CompletionRequest, J as JsonObject, t as CompletionModelCapabilities, h as ToolDefinition, e as JsonValue } from './types-C15r7N_4.js';
|
|
2
2
|
import { GuardrailDecisionRecord } from './guardrails/index.js';
|
|
3
|
-
import { g as ToolCallStreamEvent } from './tool-
|
|
3
|
+
import { g as ToolCallStreamEvent } from './tool-f2stpvUP.js';
|
|
4
4
|
|
|
5
5
|
type PromptResponse = {
|
|
6
6
|
output: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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 } from './create-completion-
|
|
3
|
-
export { A as AssistantContent, a as AssistantMessage, C as CompletionModel, b as CompletionRequest, c as CompletionResponse, D as Document, I as ImageContent, J as JsonObject, d as JsonPrimitive, e as JsonValue, M as Message, S as SystemMessage, T as Text, f as ToolCall, g as ToolContent, h as ToolDefinition, i as ToolMessage, j as ToolResult, k as ToolResultContent, U as Usage, l as UserContent, m as UserMessage } 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 } from './create-completion-CC8-Ep3w.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantMessage, C as CompletionModel, b as CompletionRequest, c as CompletionResponse, D as Document, I as ImageContent, J as JsonObject, d as JsonPrimitive, e as JsonValue, M as Message, S as SystemMessage, T as Text, f as ToolCall, g as ToolContent, h as ToolDefinition, i as ToolMessage, j as ToolResult, k as ToolResultContent, U as Usage, l as UserContent, m as UserMessage } from './types-C15r7N_4.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 MemoryStore } from './types-
|
|
6
|
+
export { M as MemoryStore } from './types-bNDxj4Tt.js';
|
|
7
7
|
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError } from './request/index.js';
|
|
8
|
-
export { A as AgentChildStreamEvent, a as AgentStreamEvent, P as PromptResponse } from './index-
|
|
8
|
+
export { A as AgentChildStreamEvent, a as AgentStreamEvent, P as PromptResponse } from './index-CM-V4LS3.js';
|
|
9
9
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
10
10
|
export { loadSkills, skill } from './skills/index.js';
|
|
11
|
-
export { S as SkillValidationError } from './types-
|
|
12
|
-
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-
|
|
13
|
-
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-
|
|
14
|
-
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-
|
|
11
|
+
export { S as SkillValidationError } from './types-b6fOVoW1.js';
|
|
12
|
+
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-BKDCOJh5.js';
|
|
13
|
+
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-f2stpvUP.js';
|
|
14
|
+
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-i-jLsLom.js';
|
|
15
15
|
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
16
|
-
import './agent-
|
|
17
|
-
import './types-
|
|
18
|
-
import './types-
|
|
16
|
+
import './agent-BB9vVH6P.js';
|
|
17
|
+
import './types-Dh7gfoGw.js';
|
|
18
|
+
import './types-DmvXANwl.js';
|
|
19
19
|
import './types-DHHZztGO.js';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-5JgWDgaM.js';
|
|
21
21
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
22
22
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
23
23
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
package/dist/index.js
CHANGED
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
coreMessagesToUIMessages,
|
|
8
8
|
uiMessagesToCoreMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WEOG3JCT.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentBuilder
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-JJ3JGL5D.js";
|
|
13
|
+
import "./chunk-N3I6HH2J.js";
|
|
14
14
|
import {
|
|
15
15
|
MaxTurnsError,
|
|
16
16
|
PromptCancelledError,
|
|
17
17
|
ToolApprovalRequiredError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5MUPA66B.js";
|
|
19
19
|
import "./chunk-YK4WAAS4.js";
|
|
20
20
|
import "./chunk-XUUY2L2D.js";
|
|
21
21
|
import {
|
|
22
22
|
createMiddleware,
|
|
23
23
|
createThinkTool,
|
|
24
24
|
createToolMiddleware
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YZLOFKTT.js";
|
|
26
26
|
import {
|
|
27
27
|
createTool
|
|
28
28
|
} from "./chunk-QKA6OQTH.js";
|
|
@@ -40,14 +40,14 @@ import {
|
|
|
40
40
|
createCompletion,
|
|
41
41
|
createCompletionStream,
|
|
42
42
|
createParsedCompletion
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FUJ3POKH.js";
|
|
44
44
|
import {
|
|
45
45
|
AssistantContent,
|
|
46
46
|
Message,
|
|
47
47
|
ToolContent,
|
|
48
48
|
Usage,
|
|
49
49
|
UserContent
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-QVFOCNF6.js";
|
|
51
51
|
import "./chunk-WQKHFADH.js";
|
|
52
52
|
import "./chunk-JS5MGVNM.js";
|
|
53
53
|
import "./chunk-OIMLU4SF.js";
|
package/dist/internal/agent.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as Agent, d as AgentEventAppendInput, e as AgentEventRecord, b as AgentEventStore, f as AgentEventStoreInclude, c as AgentEventStoreOptions, i as AgentEventStoreRegistration, j as AgentOptions, g as AgentSession, h as AgentToolOptions, k as DEFAULT_MAX_TURNS, D as DynamicContextOptions, l as DynamicContextRegistration, a as DynamicToolOptions, m as DynamicToolRegistration } from '../agent-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { A as Agent, d as AgentEventAppendInput, e as AgentEventRecord, b as AgentEventStore, f as AgentEventStoreInclude, c as AgentEventStoreOptions, i as AgentEventStoreRegistration, j as AgentOptions, g as AgentSession, h as AgentToolOptions, k as DEFAULT_MAX_TURNS, D as DynamicContextOptions, l as DynamicContextRegistration, a as DynamicToolOptions, m as DynamicToolRegistration } from '../agent-BB9vVH6P.js';
|
|
2
|
+
import '../types-C15r7N_4.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-Dh7gfoGw.js';
|
|
5
|
+
import '../types-bNDxj4Tt.js';
|
|
6
|
+
import '../index-CM-V4LS3.js';
|
|
7
|
+
import '../tool-f2stpvUP.js';
|
|
8
|
+
import '../middleware-i-jLsLom.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-DmvXANwl.js';
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-N3I6HH2J.js";
|
|
6
|
+
import "../chunk-5MUPA66B.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-YZLOFKTT.js";
|
|
10
10
|
import "../chunk-QKA6OQTH.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import "../chunk-MMHG7WAM.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-FUJ3POKH.js";
|
|
14
|
+
import "../chunk-QVFOCNF6.js";
|
|
15
15
|
import "../chunk-WQKHFADH.js";
|
|
16
16
|
import "../chunk-JS5MGVNM.js";
|
|
17
17
|
import "../chunk-OIMLU4SF.js";
|
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-5JgWDgaM.js';
|
|
2
|
+
export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-5JgWDgaM.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-C15r7N_4.js';
|
|
7
|
+
import '../tool-f2stpvUP.js';
|
|
8
8
|
|
|
9
9
|
declare function connectMcp(connection: McpConnection): Promise<McpServer>;
|
|
10
10
|
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as MemoryOptions, R as ResolvedMemoryOptions } from '../types-
|
|
2
|
-
export { b as MemoryAppendInput, c as MemoryContext, d as MemoryErrorInput, e as MemoryRegistration, f as MemorySavePolicy, M as MemoryStore, S as SessionOptions } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { a as MemoryOptions, R as ResolvedMemoryOptions } from '../types-bNDxj4Tt.js';
|
|
2
|
+
export { b as MemoryAppendInput, c as MemoryContext, d as MemoryErrorInput, e as MemoryRegistration, f as MemorySavePolicy, M as MemoryStore, S as SessionOptions } from '../types-bNDxj4Tt.js';
|
|
3
|
+
import '../types-C15r7N_4.js';
|
|
4
4
|
|
|
5
5
|
declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as ToolDefinition, b as CompletionRequest, c as CompletionResponse, e as JsonValue, k as ToolResultContent } from './types-
|
|
1
|
+
import { h as ToolDefinition, b as CompletionRequest, c as CompletionResponse, e as JsonValue, k as ToolResultContent } from './types-C15r7N_4.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-f2stpvUP.js';
|
|
4
|
+
import { a as VectorSearchIndex } from './types-DmvXANwl.js';
|
|
5
5
|
|
|
6
6
|
declare class ToolSet {
|
|
7
7
|
private readonly tools;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as AgentGenerationEndArgs, g as AgentGenerationErrorArgs, h as AgentGenerationObserver, i as AgentGenerationStartArgs, j as AgentGenerationUpdateArgs, b as AgentObserver, d as AgentObserverRegistration, k as AgentRunEndArgs, l as AgentRunErrorArgs, m as AgentRunEventArgs, n as AgentRunObserver, o as AgentRunPromptRef, p as AgentRunStartArgs, q as AgentToolEndArgs, r as AgentToolErrorArgs, s as AgentToolObserver, t as AgentToolStartArgs, u as AgentToolStreamEventArgs, v as AgentTraceInfo, c as AgentTraceOptions, O as ObserveOptions, w as createObserver } from '../index-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { f as AgentGenerationEndArgs, g as AgentGenerationErrorArgs, h as AgentGenerationObserver, i as AgentGenerationStartArgs, j as AgentGenerationUpdateArgs, b as AgentObserver, d as AgentObserverRegistration, k as AgentRunEndArgs, l as AgentRunErrorArgs, m as AgentRunEventArgs, n as AgentRunObserver, o as AgentRunPromptRef, p as AgentRunStartArgs, q as AgentToolEndArgs, r as AgentToolErrorArgs, s as AgentToolObserver, t as AgentToolStartArgs, u as AgentToolStreamEventArgs, v as AgentTraceInfo, c as AgentTraceOptions, O as ObserveOptions, w as createObserver } from '../index-CM-V4LS3.js';
|
|
2
|
+
import '../types-C15r7N_4.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
|
-
import '../tool-
|
|
4
|
+
import '../tool-f2stpvUP.js';
|
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-BB9vVH6P.js';
|
|
3
|
+
import { J as JsonObject, C as CompletionModel } from '../types-C15r7N_4.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-Dh7gfoGw.js';
|
|
7
|
+
import '../types-bNDxj4Tt.js';
|
|
8
|
+
import '../index-CM-V4LS3.js';
|
|
9
|
+
import '../tool-f2stpvUP.js';
|
|
10
|
+
import '../middleware-i-jLsLom.js';
|
|
11
11
|
import '../types-DHHZztGO.js';
|
|
12
|
-
import '../types-
|
|
12
|
+
import '../types-DmvXANwl.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 { P as PromptRequest } from '../agent-
|
|
4
|
-
export { A as AgentChildStreamEvent, e as AgentDeltaEvent, a as AgentStreamEvent, P as PromptResponse } from '../index-
|
|
1
|
+
import { M as Message } from '../types-C15r7N_4.js';
|
|
2
|
+
import { d as ToolApprovalRequest } from '../tool-f2stpvUP.js';
|
|
3
|
+
export { P as PromptRequest } from '../agent-BB9vVH6P.js';
|
|
4
|
+
export { A as AgentChildStreamEvent, e as AgentDeltaEvent, a as AgentStreamEvent, P as PromptResponse } from '../index-CM-V4LS3.js';
|
|
5
5
|
import '../guardrails/index.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../middleware-
|
|
6
|
+
import '../types-Dh7gfoGw.js';
|
|
7
|
+
import '../types-bNDxj4Tt.js';
|
|
8
|
+
import '../middleware-i-jLsLom.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-DmvXANwl.js';
|
|
11
11
|
|
|
12
12
|
declare class MaxTurnsError extends Error {
|
|
13
13
|
readonly maxTurns: number;
|
package/dist/request/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5MUPA66B.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-YZLOFKTT.js";
|
|
9
9
|
import "../chunk-QKA6OQTH.js";
|
|
10
10
|
import "../chunk-NPZDYOE6.js";
|
|
11
11
|
import "../chunk-MMHG7WAM.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-FUJ3POKH.js";
|
|
13
|
+
import "../chunk-QVFOCNF6.js";
|
|
14
14
|
import "../chunk-WQKHFADH.js";
|
|
15
15
|
import "../chunk-JS5MGVNM.js";
|
|
16
16
|
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-b6fOVoW1.js';
|
|
2
|
+
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-b6fOVoW1.js';
|
|
3
|
+
import '../tool-f2stpvUP.js';
|
|
4
|
+
import '../types-C15r7N_4.js';
|
|
5
5
|
|
|
6
6
|
declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
|
|
7
7
|
|
package/dist/skills/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
skill
|
|
5
5
|
} from "../chunk-J3ROUB3P.js";
|
|
6
6
|
import "../chunk-YK4WAAS4.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-YZLOFKTT.js";
|
|
8
8
|
import "../chunk-QKA6OQTH.js";
|
|
9
9
|
import "../chunk-MMHG7WAM.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QVFOCNF6.js";
|
|
11
11
|
import "../chunk-WQKHFADH.js";
|
|
12
12
|
import "../chunk-JS5MGVNM.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-f2stpvUP.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 { q as isToolResultContentArray, s as serializeToolOutput } from '../types-
|
|
1
|
+
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-BKDCOJh5.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-i-jLsLom.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-f2stpvUP.js';
|
|
4
|
+
export { q as isToolResultContentArray, s as serializeToolOutput } from '../types-C15r7N_4.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
|
7
7
|
import '../types-DHHZztGO.js';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-DmvXANwl.js';
|
|
9
9
|
|
|
10
10
|
declare class ToolCallError extends Error {
|
|
11
11
|
readonly cause?: unknown | undefined;
|
package/dist/tool/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
normalizeToolResultOutput,
|
|
14
14
|
parseToolArgs,
|
|
15
15
|
toolResultContentToText
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-YZLOFKTT.js";
|
|
17
17
|
import {
|
|
18
18
|
createTool
|
|
19
19
|
} from "../chunk-QKA6OQTH.js";
|
|
@@ -21,7 +21,7 @@ import "../chunk-MMHG7WAM.js";
|
|
|
21
21
|
import {
|
|
22
22
|
isToolResultContentArray,
|
|
23
23
|
serializeToolResultOutput
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-QVFOCNF6.js";
|
|
25
25
|
import "../chunk-WQKHFADH.js";
|
|
26
26
|
import "../chunk-JS5MGVNM.js";
|
|
27
27
|
import "../chunk-OIMLU4SF.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JsonObject, h as ToolDefinition, k as ToolResultContent, e as JsonValue } from './types-
|
|
1
|
+
import { J as JsonObject, h as ToolDefinition, k as ToolResultContent, e as JsonValue } from './types-C15r7N_4.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-C15r7N_4.js';
|
|
5
|
+
import { A as AnyTool } from './tool-f2stpvUP.js';
|
|
6
6
|
|
|
7
7
|
type McpToolDefinition = {
|
|
8
8
|
name: string;
|
|
@@ -90,8 +90,13 @@ type ToolResult = {
|
|
|
90
90
|
type: "tool_result";
|
|
91
91
|
id: string;
|
|
92
92
|
callId?: string;
|
|
93
|
+
toolName?: string;
|
|
93
94
|
content: ToolResultContent[];
|
|
94
95
|
};
|
|
96
|
+
type ToolResultOptions = {
|
|
97
|
+
callId?: string | undefined;
|
|
98
|
+
toolName?: string | undefined;
|
|
99
|
+
};
|
|
95
100
|
type SystemMessage = {
|
|
96
101
|
role: "system";
|
|
97
102
|
content: string;
|
|
@@ -128,7 +133,7 @@ declare const UserContent: {
|
|
|
128
133
|
};
|
|
129
134
|
type ToolContent = ToolResult;
|
|
130
135
|
declare const ToolContent: {
|
|
131
|
-
toolResult(id: string, content: string | ToolResultContent[],
|
|
136
|
+
toolResult(id: string, content: string | ToolResultContent[], callIdOrOptions?: string | ToolResultOptions, toolName?: string): ToolResult;
|
|
132
137
|
};
|
|
133
138
|
declare function serializeToolResultOutput(output: unknown): string;
|
|
134
139
|
declare function isToolResultContentArray(value: unknown): value is ToolResultContent[];
|
|
@@ -155,9 +160,7 @@ declare const Message: {
|
|
|
155
160
|
user(content: string | UserContent[]): Message;
|
|
156
161
|
assistant(content: string | AssistantContent[], id?: string): Message;
|
|
157
162
|
tool(content: ToolContent | ToolContent[]): Message;
|
|
158
|
-
toolResult(id: string, output: unknown, options?:
|
|
159
|
-
callId?: string | undefined;
|
|
160
|
-
}): Message;
|
|
163
|
+
toolResult(id: string, output: unknown, options?: ToolResultOptions): Message;
|
|
161
164
|
};
|
|
162
165
|
type ToolChoice = "auto" | "required" | "none" | {
|
|
163
166
|
type: "function";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as ImageDetail, e as JsonValue, U as Usage, M as Message } from '../types-
|
|
1
|
+
import { v as ImageDetail, e as JsonValue, U as Usage, M as Message } from '../types-C15r7N_4.js';
|
|
2
2
|
|
|
3
3
|
type UIMessageRole = "system" | "user" | "assistant" | "tool";
|
|
4
4
|
type UIError = {
|
package/dist/ui/index.js
CHANGED