@anvia/core 0.12.8 → 0.13.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 +6 -6
- package/dist/{agent-BB9vVH6P.d.ts → agent-CXvjoW0J.d.ts} +7 -7
- package/dist/audio-generation/index.d.ts +1 -1
- package/dist/{chunk-SHORX7TZ.js → chunk-46IR5ZTN.js} +2 -2
- package/dist/{chunk-2STANSN6.js → chunk-7BV5JBJW.js} +4 -4
- package/dist/{chunk-QVFOCNF6.js → chunk-7H3TQN3I.js} +99 -10
- package/dist/chunk-7H3TQN3I.js.map +1 -0
- package/dist/{chunk-EGZCTSEW.js → chunk-HLISYYCB.js} +4 -4
- package/dist/{chunk-WRNPY5C6.js → chunk-JT4U4FGG.js} +3 -3
- package/dist/{chunk-UDISNNKR.js → chunk-MU3UPROJ.js} +51 -11
- package/dist/chunk-MU3UPROJ.js.map +1 -0
- package/dist/{chunk-IN5NPAWL.js → chunk-OCYL4AB6.js} +5 -5
- package/dist/{chunk-FUJ3POKH.js → chunk-W53PLBOL.js} +2 -2
- package/dist/completion/index.d.ts +3 -3
- package/dist/completion/index.js +4 -2
- 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-CM-V4LS3.d.ts → index-ZQAiHW5Q.d.ts} +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +10 -8
- package/dist/internal/agent.d.ts +8 -8
- package/dist/internal/agent.js +5 -5
- package/dist/{create-completion-CC8-Ep3w.d.ts → json-C5a6auAm.d.ts} +4 -2
- 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-i-jLsLom.d.ts → middleware-Cc_-sosu.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-BKDCOJh5.d.ts → think-tool-DvhOlrL8.d.ts} +1 -1
- package/dist/tool/index.d.ts +5 -5
- package/dist/tool/index.js +2 -2
- package/dist/{tool-f2stpvUP.d.ts → tool-6f9bK92X.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-5JgWDgaM.d.ts → types-BG3s2WzI.d.ts} +2 -2
- package/dist/{types-b6fOVoW1.d.ts → types-BZQlZ4Vs.d.ts} +1 -1
- package/dist/{types-Dh7gfoGw.d.ts → types-BaYwqozV.d.ts} +1 -1
- package/dist/{types-DmvXANwl.d.ts → types-C708DOhL.d.ts} +1 -1
- package/dist/{types-bNDxj4Tt.d.ts → types-CNeDsGjw.d.ts} +1 -1
- package/dist/{types-C15r7N_4.d.ts → types-DzdJOf35.d.ts} +17 -6
- 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-QVFOCNF6.js.map +0 -1
- package/dist/chunk-UDISNNKR.js.map +0 -1
- /package/dist/{chunk-SHORX7TZ.js.map → chunk-46IR5ZTN.js.map} +0 -0
- /package/dist/{chunk-2STANSN6.js.map → chunk-7BV5JBJW.js.map} +0 -0
- /package/dist/{chunk-EGZCTSEW.js.map → chunk-HLISYYCB.js.map} +0 -0
- /package/dist/{chunk-WRNPY5C6.js.map → chunk-JT4U4FGG.js.map} +0 -0
- /package/dist/{chunk-IN5NPAWL.js.map → chunk-OCYL4AB6.js.map} +0 -0
- /package/dist/{chunk-FUJ3POKH.js.map → chunk-W53PLBOL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
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 isStreamingCompletionModel } from '../
|
|
2
|
-
import { D as Document, M as Message, C as CompletionModel,
|
|
3
|
-
export { A as AssistantContent, a as AssistantMessage,
|
|
1
|
+
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, k as isStreamingCompletionModel } from '../json-C5a6auAm.js';
|
|
2
|
+
import { D as Document, M as Message, C as CompletionModel, j as ToolDefinition, t as ToolChoice, f as JsonValue, J as JsonObject, c as CompletionRequest, d as CompletionResponse } from '../types-DzdJOf35.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantMessage, b as AssistantMessageOptions, u as CompletionCapabilityError, v as CompletionModelCapabilities, w as CompletionStreamEvent, x as DocumentContent, I as ImageContent, y as ImageDetail, e as JsonPrimitive, g as MessageOptions, R as Reasoning, z as ReasoningContent, B as ReasoningContentType, E as StreamingCompletionModel, S as SystemMessage, T as Text, h as ToolCall, i as ToolContent, F as ToolFunction, k as ToolMessage, l as ToolResult, m as ToolResultContent, n as ToolResultMessageOptions, o as ToolResultOptions, U as Usage, p as UserContent, q as UserMessage, G as assertCompletionRequestSupported, r as isToolResultContentArray, H as reasoningDisplayText, s as serializeToolResultOutput, K as textFromAssistantContent } from '../types-DzdJOf35.js';
|
|
4
4
|
import '../zod-schema-C7F4clpm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
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-W53PLBOL.js";
|
|
10
10
|
import {
|
|
11
11
|
AssistantContent,
|
|
12
12
|
CompletionCapabilityError,
|
|
@@ -15,11 +15,12 @@ import {
|
|
|
15
15
|
Usage,
|
|
16
16
|
UserContent,
|
|
17
17
|
assertCompletionRequestSupported,
|
|
18
|
+
isJsonValue,
|
|
18
19
|
isToolResultContentArray,
|
|
19
20
|
reasoningDisplayText,
|
|
20
21
|
serializeToolResultOutput,
|
|
21
22
|
textFromAssistantContent
|
|
22
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-7H3TQN3I.js";
|
|
23
24
|
import "../chunk-WQKHFADH.js";
|
|
24
25
|
export {
|
|
25
26
|
AssistantContent,
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
createCompletionStream,
|
|
35
36
|
createParsedCompletion,
|
|
36
37
|
formatDocument,
|
|
38
|
+
isJsonValue,
|
|
37
39
|
isStreamingCompletionModel,
|
|
38
40
|
isToolResultContentArray,
|
|
39
41
|
normalizeDocuments,
|
package/dist/evals/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
2
|
-
import {
|
|
3
|
-
import { P as PromptResponse } from '../index-
|
|
1
|
+
import { A as Agent } from '../agent-CXvjoW0J.js';
|
|
2
|
+
import { f as JsonValue, M as Message, C as CompletionModel } from '../types-DzdJOf35.js';
|
|
3
|
+
import { P as PromptResponse } from '../index-ZQAiHW5Q.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-BaYwqozV.js';
|
|
8
|
+
import '../types-CNeDsGjw.js';
|
|
9
|
+
import '../tool-6f9bK92X.js';
|
|
10
|
+
import '../middleware-Cc_-sosu.js';
|
|
11
|
+
import '../types-C708DOhL.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type EvalOutcome<Score = unknown> = {
|
package/dist/evals/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractorBuilder
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-OCYL4AB6.js";
|
|
4
|
+
import "../chunk-JT4U4FGG.js";
|
|
5
|
+
import "../chunk-7BV5JBJW.js";
|
|
6
|
+
import "../chunk-HLISYYCB.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-46IR5ZTN.js";
|
|
10
10
|
import "../chunk-IZM6FNCT.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import {
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
mapWithConcurrency
|
|
22
22
|
} from "../chunk-OIMLU4SF.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-W53PLBOL.js";
|
|
24
|
+
import "../chunk-7H3TQN3I.js";
|
|
25
25
|
import "../chunk-WQKHFADH.js";
|
|
26
26
|
import "../chunk-CWUJUSOS.js";
|
|
27
27
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { A as Agent } from '../agent-CXvjoW0J.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
|
-
import { U as Usage, M as Message, C as CompletionModel,
|
|
3
|
+
import { U as Usage, M as Message, C as CompletionModel, f as JsonValue, t as ToolChoice } from '../types-DzdJOf35.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-BaYwqozV.js';
|
|
6
|
+
import '../types-CNeDsGjw.js';
|
|
7
|
+
import '../index-ZQAiHW5Q.js';
|
|
8
|
+
import '../tool-6f9bK92X.js';
|
|
9
|
+
import '../middleware-Cc_-sosu.js';
|
|
10
10
|
import '../types-DHHZztGO.js';
|
|
11
|
-
import '../types-
|
|
11
|
+
import '../types-C708DOhL.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type ExtractionResponse<T> = {
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,21 +2,21 @@ 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-OCYL4AB6.js";
|
|
6
|
+
import "../chunk-JT4U4FGG.js";
|
|
7
|
+
import "../chunk-7BV5JBJW.js";
|
|
8
|
+
import "../chunk-HLISYYCB.js";
|
|
9
9
|
import "../chunk-YK4WAAS4.js";
|
|
10
10
|
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-46IR5ZTN.js";
|
|
12
12
|
import "../chunk-IZM6FNCT.js";
|
|
13
13
|
import "../chunk-NPZDYOE6.js";
|
|
14
14
|
import "../chunk-MMHG7WAM.js";
|
|
15
15
|
import "../chunk-M6RPFHG7.js";
|
|
16
16
|
import "../chunk-JS5MGVNM.js";
|
|
17
17
|
import "../chunk-OIMLU4SF.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-W53PLBOL.js";
|
|
19
|
+
import "../chunk-7H3TQN3I.js";
|
|
20
20
|
import "../chunk-WQKHFADH.js";
|
|
21
21
|
import "../chunk-CWUJUSOS.js";
|
|
22
22
|
export {
|
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-BaYwqozV.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-BaYwqozV.js';
|
|
3
|
+
import '../types-DzdJOf35.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 {
|
|
1
|
+
import { B as ReasoningContentType, h as ToolCall, U as Usage, M as Message, m as ToolResultContent, d as CompletionResponse, c as CompletionRequest, J as JsonObject, v as CompletionModelCapabilities, j as ToolDefinition, f as JsonValue } from './types-DzdJOf35.js';
|
|
2
2
|
import { GuardrailDecisionRecord } from './guardrails/index.js';
|
|
3
|
-
import { g as ToolCallStreamEvent } from './tool-
|
|
3
|
+
import { g as ToolCallStreamEvent } from './tool-6f9bK92X.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 './
|
|
3
|
-
export { A as AssistantContent, a as AssistantMessage, C as CompletionModel,
|
|
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-C5a6auAm.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantMessage, b as AssistantMessageOptions, C as CompletionModel, c as CompletionRequest, d as CompletionResponse, D as Document, I as ImageContent, J as JsonObject, e as JsonPrimitive, f as JsonValue, M as Message, g as MessageOptions, S as SystemMessage, T as Text, h as ToolCall, i as ToolContent, j as ToolDefinition, k as ToolMessage, l as ToolResult, m as ToolResultContent, n as ToolResultMessageOptions, o as ToolResultOptions, U as Usage, p as UserContent, q as UserMessage } from './types-DzdJOf35.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-CNeDsGjw.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-ZQAiHW5Q.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-BZQlZ4Vs.js';
|
|
12
|
+
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-DvhOlrL8.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-6f9bK92X.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-Cc_-sosu.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-CXvjoW0J.js';
|
|
17
|
+
import './types-BaYwqozV.js';
|
|
18
|
+
import './types-C708DOhL.js';
|
|
19
19
|
import './types-DHHZztGO.js';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-BG3s2WzI.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-MU3UPROJ.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentBuilder
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-JT4U4FGG.js";
|
|
13
|
+
import "./chunk-7BV5JBJW.js";
|
|
14
14
|
import {
|
|
15
15
|
MaxTurnsError,
|
|
16
16
|
PromptCancelledError,
|
|
17
17
|
ToolApprovalRequiredError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HLISYYCB.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-46IR5ZTN.js";
|
|
26
26
|
import {
|
|
27
27
|
createTool
|
|
28
28
|
} from "./chunk-IZM6FNCT.js";
|
|
@@ -42,14 +42,15 @@ import {
|
|
|
42
42
|
createCompletion,
|
|
43
43
|
createCompletionStream,
|
|
44
44
|
createParsedCompletion
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-W53PLBOL.js";
|
|
46
46
|
import {
|
|
47
47
|
AssistantContent,
|
|
48
48
|
Message,
|
|
49
49
|
ToolContent,
|
|
50
50
|
Usage,
|
|
51
|
-
UserContent
|
|
52
|
-
|
|
51
|
+
UserContent,
|
|
52
|
+
isJsonValue
|
|
53
|
+
} from "./chunk-7H3TQN3I.js";
|
|
53
54
|
import "./chunk-WQKHFADH.js";
|
|
54
55
|
import {
|
|
55
56
|
allow,
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
defineInputGuardrail,
|
|
87
88
|
defineOutputGuardrail,
|
|
88
89
|
guardrails,
|
|
90
|
+
isJsonValue,
|
|
89
91
|
loadSkills,
|
|
90
92
|
requestToolApproval,
|
|
91
93
|
runControl,
|
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-CXvjoW0J.js';
|
|
2
|
+
import '../types-DzdJOf35.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-BaYwqozV.js';
|
|
5
|
+
import '../types-CNeDsGjw.js';
|
|
6
|
+
import '../index-ZQAiHW5Q.js';
|
|
7
|
+
import '../tool-6f9bK92X.js';
|
|
8
|
+
import '../middleware-Cc_-sosu.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-C708DOhL.js';
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-7BV5JBJW.js";
|
|
6
|
+
import "../chunk-HLISYYCB.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-46IR5ZTN.js";
|
|
10
10
|
import "../chunk-IZM6FNCT.js";
|
|
11
11
|
import "../chunk-NPZDYOE6.js";
|
|
12
12
|
import "../chunk-MMHG7WAM.js";
|
|
13
13
|
import "../chunk-JS5MGVNM.js";
|
|
14
14
|
import "../chunk-OIMLU4SF.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-W53PLBOL.js";
|
|
16
|
+
import "../chunk-7H3TQN3I.js";
|
|
17
17
|
import "../chunk-WQKHFADH.js";
|
|
18
18
|
import "../chunk-CWUJUSOS.js";
|
|
19
19
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
2
|
-
import { M as Message, D as Document,
|
|
2
|
+
import { M as Message, D as Document, j as ToolDefinition, t as ToolChoice, J as JsonObject, f as JsonValue, A as AssistantContent, U as Usage, d as CompletionResponse, C as CompletionModel, E as StreamingCompletionModel, w as CompletionStreamEvent } from './types-DzdJOf35.js';
|
|
3
3
|
|
|
4
4
|
type CreateCompletionInput = string | Message | Message[];
|
|
5
5
|
type CreateCompletionBaseOptions = {
|
|
@@ -34,4 +34,6 @@ declare function createCompletionStream<Model extends StreamingCompletionModel>(
|
|
|
34
34
|
declare function createParsedCompletion<T, Model extends CompletionModel>(model: Model, options: CreateParsedCompletionOptions<T>): Promise<CreateParsedCompletionResult<T, RawResponseOf<Model>>>;
|
|
35
35
|
declare function isStreamingCompletionModel(model: CompletionModel): model is StreamingCompletionModel;
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
declare function isJsonValue(value: unknown): value is JsonValue;
|
|
38
|
+
|
|
39
|
+
export { type CreateCompletionBaseOptions as C, type CreateCompletionInput as a, type CreateCompletionOptions as b, type CreateCompletionResult as c, type CreateCompletionStreamOptions as d, type CreateParsedCompletionOptions as e, type CreateParsedCompletionResult as f, createCompletion as g, createCompletionStream as h, createParsedCompletion as i, isJsonValue as j, isStreamingCompletionModel as k };
|
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-BG3s2WzI.js';
|
|
2
|
+
export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-BG3s2WzI.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-DzdJOf35.js';
|
|
7
|
+
import '../tool-6f9bK92X.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-CNeDsGjw.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-CNeDsGjw.js';
|
|
3
|
+
import '../types-DzdJOf35.js';
|
|
4
4
|
|
|
5
5
|
declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as ToolDefinition, c as CompletionRequest, d as CompletionResponse, f as JsonValue, m as ToolResultContent } from './types-DzdJOf35.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-6f9bK92X.js';
|
|
4
|
+
import { a as VectorSearchIndex } from './types-C708DOhL.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-ZQAiHW5Q.js';
|
|
2
|
+
import '../types-DzdJOf35.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
|
-
import '../tool-
|
|
4
|
+
import '../tool-6f9bK92X.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-CXvjoW0J.js';
|
|
3
|
+
import { J as JsonObject, C as CompletionModel } from '../types-DzdJOf35.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-BaYwqozV.js';
|
|
7
|
+
import '../types-CNeDsGjw.js';
|
|
8
|
+
import '../index-ZQAiHW5Q.js';
|
|
9
|
+
import '../tool-6f9bK92X.js';
|
|
10
|
+
import '../middleware-Cc_-sosu.js';
|
|
11
11
|
import '../types-DHHZztGO.js';
|
|
12
|
-
import '../types-
|
|
12
|
+
import '../types-C708DOhL.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-DzdJOf35.js';
|
|
2
|
+
import { d as ToolApprovalRequest } from '../tool-6f9bK92X.js';
|
|
3
|
+
export { P as PromptRequest } from '../agent-CXvjoW0J.js';
|
|
4
|
+
export { A as AgentChildStreamEvent, e as AgentDeltaEvent, a as AgentStreamEvent, P as PromptResponse } from '../index-ZQAiHW5Q.js';
|
|
5
5
|
import '../guardrails/index.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../middleware-
|
|
6
|
+
import '../types-BaYwqozV.js';
|
|
7
|
+
import '../types-CNeDsGjw.js';
|
|
8
|
+
import '../middleware-Cc_-sosu.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-C708DOhL.js';
|
|
11
11
|
|
|
12
12
|
declare class MaxTurnsError extends Error {
|
|
13
13
|
readonly maxTurns: number;
|
package/dist/request/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-HLISYYCB.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-46IR5ZTN.js";
|
|
9
9
|
import "../chunk-IZM6FNCT.js";
|
|
10
10
|
import "../chunk-NPZDYOE6.js";
|
|
11
11
|
import "../chunk-MMHG7WAM.js";
|
|
12
12
|
import "../chunk-JS5MGVNM.js";
|
|
13
13
|
import "../chunk-OIMLU4SF.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-W53PLBOL.js";
|
|
15
|
+
import "../chunk-7H3TQN3I.js";
|
|
16
16
|
import "../chunk-WQKHFADH.js";
|
|
17
17
|
import "../chunk-CWUJUSOS.js";
|
|
18
18
|
export {
|
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-BZQlZ4Vs.js';
|
|
2
|
+
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-BZQlZ4Vs.js';
|
|
3
|
+
import '../tool-6f9bK92X.js';
|
|
4
|
+
import '../types-DzdJOf35.js';
|
|
5
5
|
|
|
6
6
|
declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
|
|
7
7
|
|
package/dist/skills/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
skill
|
|
5
5
|
} from "../chunk-HF4KHHNM.js";
|
|
6
6
|
import "../chunk-YK4WAAS4.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-46IR5ZTN.js";
|
|
8
8
|
import "../chunk-IZM6FNCT.js";
|
|
9
9
|
import "../chunk-MMHG7WAM.js";
|
|
10
10
|
import "../chunk-JS5MGVNM.js";
|
|
11
11
|
import "../chunk-OIMLU4SF.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7H3TQN3I.js";
|
|
13
13
|
import "../chunk-WQKHFADH.js";
|
|
14
14
|
export {
|
|
15
15
|
SkillValidationError,
|
|
@@ -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-6f9bK92X.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 {
|
|
1
|
+
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-DvhOlrL8.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-Cc_-sosu.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-6f9bK92X.js';
|
|
4
|
+
export { r as isToolResultContentArray, s as serializeToolOutput } from '../types-DzdJOf35.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
|
7
7
|
import '../types-DHHZztGO.js';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-C708DOhL.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-46IR5ZTN.js";
|
|
17
17
|
import {
|
|
18
18
|
createTool
|
|
19
19
|
} from "../chunk-IZM6FNCT.js";
|
|
@@ -23,7 +23,7 @@ import "../chunk-OIMLU4SF.js";
|
|
|
23
23
|
import {
|
|
24
24
|
isToolResultContentArray,
|
|
25
25
|
serializeToolResultOutput
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-7H3TQN3I.js";
|
|
27
27
|
import "../chunk-WQKHFADH.js";
|
|
28
28
|
export {
|
|
29
29
|
ToolCallError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JsonObject,
|
|
1
|
+
import { J as JsonObject, j as ToolDefinition, m as ToolResultContent, f as JsonValue } from './types-DzdJOf35.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-DzdJOf35.js';
|
|
5
|
+
import { A as AnyTool } from './tool-6f9bK92X.js';
|
|
6
6
|
|
|
7
7
|
type McpToolDefinition = {
|
|
8
8
|
name: string;
|