@simple-ai-lab/sdk 0.6.0 → 0.8.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/README.md +25 -0
- package/dist/actions.cjs +15 -1
- package/dist/actions.d.cts +12 -0
- package/dist/actions.d.ts +12 -0
- package/dist/actions.js +15 -1
- package/dist/agents.cjs +141 -19
- package/dist/agents.d.cts +122 -0
- package/dist/agents.d.ts +122 -0
- package/dist/agents.js +141 -19
- package/dist/built-in-actions.cjs +101 -1
- package/dist/built-in-actions.d.cts +12 -0
- package/dist/built-in-actions.d.ts +12 -0
- package/dist/built-in-actions.js +100 -0
- package/dist/code-action/define-action.cjs +5 -1
- package/dist/code-action/define-action.d.cts +5 -0
- package/dist/code-action/define-action.d.ts +5 -0
- package/dist/code-action/define-action.js +5 -1
- package/dist/code-action/llm.cjs +34 -0
- package/dist/code-action/llm.d.cts +28 -0
- package/dist/code-action/llm.d.ts +28 -0
- package/dist/code-action/llm.js +31 -0
- package/dist/code-action/types.cjs +1 -0
- package/dist/code-action/types.d.cts +7 -1
- package/dist/code-action/types.d.ts +7 -1
- package/dist/code-action/types.js +1 -0
- package/dist/http.cjs +7 -0
- package/dist/http.js +7 -0
- package/dist/index.cjs +7 -4
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type ActionInvocationMetadata } from "./types.cjs";
|
|
3
|
+
/** The part of a Responses API response an Action reads; every other field passes through untyped. */
|
|
4
|
+
declare const responseSchema: z.ZodObject<{
|
|
5
|
+
output: z.ZodArray<z.ZodObject<{
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>>>>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
export interface ActionLlm {
|
|
14
|
+
/**
|
|
15
|
+
* Create an OpenAI Responses API response, never streamed. `model` is a router ladder slug.
|
|
16
|
+
*
|
|
17
|
+
* Requires the LLM_REQUEST capability and throws {@link MissingCapabilityError} without it.
|
|
18
|
+
*/
|
|
19
|
+
infer(request: {
|
|
20
|
+
model: string;
|
|
21
|
+
stream?: false;
|
|
22
|
+
[field: string]: unknown;
|
|
23
|
+
}): Promise<z.infer<typeof responseSchema>>;
|
|
24
|
+
}
|
|
25
|
+
export declare function createActionLlm({ metadata }: {
|
|
26
|
+
metadata: ActionInvocationMetadata;
|
|
27
|
+
}): ActionLlm;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type ActionInvocationMetadata } from "./types.js";
|
|
3
|
+
/** The part of a Responses API response an Action reads; every other field passes through untyped. */
|
|
4
|
+
declare const responseSchema: z.ZodObject<{
|
|
5
|
+
output: z.ZodArray<z.ZodObject<{
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>>>>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
export interface ActionLlm {
|
|
14
|
+
/**
|
|
15
|
+
* Create an OpenAI Responses API response, never streamed. `model` is a router ladder slug.
|
|
16
|
+
*
|
|
17
|
+
* Requires the LLM_REQUEST capability and throws {@link MissingCapabilityError} without it.
|
|
18
|
+
*/
|
|
19
|
+
infer(request: {
|
|
20
|
+
model: string;
|
|
21
|
+
stream?: false;
|
|
22
|
+
[field: string]: unknown;
|
|
23
|
+
}): Promise<z.infer<typeof responseSchema>>;
|
|
24
|
+
}
|
|
25
|
+
export declare function createActionLlm({ metadata }: {
|
|
26
|
+
metadata: ActionInvocationMetadata;
|
|
27
|
+
}): ActionLlm;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { createHttpClient } from "../http.js";
|
|
3
|
+
import { MissingCapabilityError } from "../shared/errors.js";
|
|
4
|
+
import { ActionCapability } from "./types.js";
|
|
5
|
+
/** The part of a Responses API response an Action reads; every other field passes through untyped. */
|
|
6
|
+
const responseSchema = z
|
|
7
|
+
.object({
|
|
8
|
+
output: z.array(z
|
|
9
|
+
.object({
|
|
10
|
+
type: z.string(),
|
|
11
|
+
content: z.array(z.object({ type: z.string(), text: z.string().nullish() }).loose()).nullish(),
|
|
12
|
+
})
|
|
13
|
+
.loose()),
|
|
14
|
+
})
|
|
15
|
+
.loose();
|
|
16
|
+
export function createActionLlm({ metadata }) {
|
|
17
|
+
return {
|
|
18
|
+
async infer(request) {
|
|
19
|
+
const { llmRouter } = metadata;
|
|
20
|
+
if (!metadata.capabilities.includes(ActionCapability.LLM_REQUEST) || llmRouter === undefined) {
|
|
21
|
+
throw new MissingCapabilityError(ActionCapability.LLM_REQUEST);
|
|
22
|
+
}
|
|
23
|
+
const http = createHttpClient({
|
|
24
|
+
baseUrl: llmRouter.baseUrl,
|
|
25
|
+
apiKey: llmRouter.apiKey,
|
|
26
|
+
fetchImplementation: (url, init) => fetch(url, init),
|
|
27
|
+
});
|
|
28
|
+
return responseSchema.parse(await http.request({ method: 'POST', path: '/responses', body: { ...request, stream: false } }));
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -10,4 +10,5 @@ exports.ActionCapability = void 0;
|
|
|
10
10
|
var ActionCapability;
|
|
11
11
|
(function (ActionCapability) {
|
|
12
12
|
ActionCapability["WORKFLOW_TRANSITION"] = "WORKFLOW_TRANSITION";
|
|
13
|
+
ActionCapability["LLM_REQUEST"] = "LLM_REQUEST";
|
|
13
14
|
})(ActionCapability || (exports.ActionCapability = ActionCapability = {}));
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** Something an Action is allowed to do at the use site that invoked it. */
|
|
7
7
|
export declare enum ActionCapability {
|
|
8
|
-
WORKFLOW_TRANSITION = "WORKFLOW_TRANSITION"
|
|
8
|
+
WORKFLOW_TRANSITION = "WORKFLOW_TRANSITION",
|
|
9
|
+
LLM_REQUEST = "LLM_REQUEST"
|
|
9
10
|
}
|
|
10
11
|
export interface ActionInvocationMetadata {
|
|
11
12
|
/** Capabilities this invocation grants — empty when the use site grants none. */
|
|
12
13
|
capabilities: ActionCapability[];
|
|
14
|
+
/** Present exactly when `capabilities` grants LLM_REQUEST. */
|
|
15
|
+
llmRouter?: {
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
};
|
|
13
19
|
}
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** Something an Action is allowed to do at the use site that invoked it. */
|
|
7
7
|
export declare enum ActionCapability {
|
|
8
|
-
WORKFLOW_TRANSITION = "WORKFLOW_TRANSITION"
|
|
8
|
+
WORKFLOW_TRANSITION = "WORKFLOW_TRANSITION",
|
|
9
|
+
LLM_REQUEST = "LLM_REQUEST"
|
|
9
10
|
}
|
|
10
11
|
export interface ActionInvocationMetadata {
|
|
11
12
|
/** Capabilities this invocation grants — empty when the use site grants none. */
|
|
12
13
|
capabilities: ActionCapability[];
|
|
14
|
+
/** Present exactly when `capabilities` grants LLM_REQUEST. */
|
|
15
|
+
llmRouter?: {
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
};
|
|
13
19
|
}
|
package/dist/http.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createHttpClient = createHttpClient;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const errors_1 = require("./shared/errors.cjs");
|
|
5
6
|
function parseBody(text) {
|
|
6
7
|
if (text.length === 0) {
|
|
@@ -13,7 +14,13 @@ function parseBody(text) {
|
|
|
13
14
|
return text;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
17
|
+
/** The OpenAI error envelope, which the LLM router answers with. */
|
|
18
|
+
const openAiErrorSchema = zod_1.z.object({ error: zod_1.z.object({ code: zod_1.z.string().nullable(), message: zod_1.z.string() }) });
|
|
16
19
|
function errorDetails(body) {
|
|
20
|
+
const openAiError = openAiErrorSchema.safeParse(body);
|
|
21
|
+
if (openAiError.success) {
|
|
22
|
+
return openAiError.data.error;
|
|
23
|
+
}
|
|
17
24
|
if (body !== null && typeof body === 'object') {
|
|
18
25
|
const record = body;
|
|
19
26
|
const code = typeof record.code === 'string' ? record.code : null;
|
package/dist/http.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { SimpleAIError } from "./shared/errors.js";
|
|
2
3
|
function parseBody(text) {
|
|
3
4
|
if (text.length === 0) {
|
|
@@ -10,7 +11,13 @@ function parseBody(text) {
|
|
|
10
11
|
return text;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
14
|
+
/** The OpenAI error envelope, which the LLM router answers with. */
|
|
15
|
+
const openAiErrorSchema = z.object({ error: z.object({ code: z.string().nullable(), message: z.string() }) });
|
|
13
16
|
function errorDetails(body) {
|
|
17
|
+
const openAiError = openAiErrorSchema.safeParse(body);
|
|
18
|
+
if (openAiError.success) {
|
|
19
|
+
return openAiError.data.error;
|
|
20
|
+
}
|
|
14
21
|
if (body !== null && typeof body === 'object') {
|
|
15
22
|
const record = body;
|
|
16
23
|
const code = typeof record.code === 'string' ? record.code : null;
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SimpleAIError = exports.MissingCapabilityError = exports.tableNameSchema = exports.recordPayloadSchema = exports.queryInputSchema = void 0;
|
|
3
|
+
exports.dataFilterSchema = exports.dataColumnPathSchema = exports.batchUpsertRowsSchema = exports.normalizeAgentV2CommitContent = exports.defineAgentSnapshot = exports.compileAgentProject = exports.collectActionVersionUuids = exports.DataClient = exports.ActionCapability = exports.SIMPLE_ACTION_BRAND = exports.defineCustomDataTransform = exports.defineAction = exports.SimpleAI = exports.WEB_SEARCH_OUTPUT_SCHEMA = exports.WEB_SEARCH_OUTPUT_MAPPINGS = exports.WEB_SEARCH_INPUT_SCHEMA = exports.VALIDATE_ADDRESS_OUTPUT_SCHEMA = exports.VALIDATE_ADDRESS_OUTPUT_MAPPINGS = exports.VALIDATE_ADDRESS_INPUT_SCHEMA = exports.SEND_TEXT_MESSAGE_OUTPUT_SCHEMA = exports.SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS = exports.SEND_TEXT_MESSAGE_INPUT_SCHEMA = exports.SEND_EMAIL_OUTPUT_SCHEMA = exports.SEND_EMAIL_OUTPUT_MAPPINGS = exports.SEND_EMAIL_INPUT_SCHEMA = exports.BUILT_IN_ACTION_CONTRACTS = exports.TRANSITION_FILTER_MAX_DEPTH = exports.TRANSITION_FILTER_MAX_CONDITIONS = exports.resolveExtractionFields = exports.reference = exports.prompt = exports.node = exports.MAX_CONTAINMENT_RULE_DEPTH = exports.FIVE9_SIP_BYE_HEADER_NAMES = exports.defineAgent = exports.defaultBackgroundNoise = exports.DEFAULT_TRANSITION_MESSAGE = exports.DEFAULT_PER_TURN_RETRIEVAL_TOP_K = exports.DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS = exports.DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS = exports.compileAgent = exports.canonicalAuthoringKeys = exports.canonicalAuthoringKey = exports.sourceFile = exports.resolveActionIoSchema = exports.resolveActionHttpHeaders = exports.compileAction = exports.canonicalActionSource = exports.actionsIoSchemaFromZod = exports.action = void 0;
|
|
4
|
+
exports.SimpleAIError = exports.MissingCapabilityError = exports.tableNameSchema = exports.recordPayloadSchema = exports.queryInputSchema = exports.MAX_QUERY_SIZE = exports.MAX_BATCH_ROWS = exports.listOptionsSchema = void 0;
|
|
5
5
|
var actions_1 = require("./actions.cjs");
|
|
6
|
-
Object.defineProperty(exports, "resolveActionHttpHeaders", { enumerable: true, get: function () { return actions_1.resolveActionHttpHeaders; } });
|
|
7
|
-
Object.defineProperty(exports, "resolveActionIoSchema", { enumerable: true, get: function () { return actions_1.resolveActionIoSchema; } });
|
|
8
6
|
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return actions_1.action; } });
|
|
9
7
|
Object.defineProperty(exports, "actionsIoSchemaFromZod", { enumerable: true, get: function () { return actions_1.actionsIoSchemaFromZod; } });
|
|
10
8
|
Object.defineProperty(exports, "canonicalActionSource", { enumerable: true, get: function () { return actions_1.canonicalActionSource; } });
|
|
11
9
|
Object.defineProperty(exports, "compileAction", { enumerable: true, get: function () { return actions_1.compileAction; } });
|
|
10
|
+
Object.defineProperty(exports, "resolveActionHttpHeaders", { enumerable: true, get: function () { return actions_1.resolveActionHttpHeaders; } });
|
|
11
|
+
Object.defineProperty(exports, "resolveActionIoSchema", { enumerable: true, get: function () { return actions_1.resolveActionIoSchema; } });
|
|
12
12
|
Object.defineProperty(exports, "sourceFile", { enumerable: true, get: function () { return actions_1.sourceFile; } });
|
|
13
13
|
var agents_1 = require("./agents.cjs");
|
|
14
14
|
Object.defineProperty(exports, "canonicalAuthoringKey", { enumerable: true, get: function () { return agents_1.canonicalAuthoringKey; } });
|
|
@@ -39,6 +39,9 @@ Object.defineProperty(exports, "SEND_TEXT_MESSAGE_OUTPUT_SCHEMA", { enumerable:
|
|
|
39
39
|
Object.defineProperty(exports, "VALIDATE_ADDRESS_INPUT_SCHEMA", { enumerable: true, get: function () { return built_in_actions_1.VALIDATE_ADDRESS_INPUT_SCHEMA; } });
|
|
40
40
|
Object.defineProperty(exports, "VALIDATE_ADDRESS_OUTPUT_MAPPINGS", { enumerable: true, get: function () { return built_in_actions_1.VALIDATE_ADDRESS_OUTPUT_MAPPINGS; } });
|
|
41
41
|
Object.defineProperty(exports, "VALIDATE_ADDRESS_OUTPUT_SCHEMA", { enumerable: true, get: function () { return built_in_actions_1.VALIDATE_ADDRESS_OUTPUT_SCHEMA; } });
|
|
42
|
+
Object.defineProperty(exports, "WEB_SEARCH_INPUT_SCHEMA", { enumerable: true, get: function () { return built_in_actions_1.WEB_SEARCH_INPUT_SCHEMA; } });
|
|
43
|
+
Object.defineProperty(exports, "WEB_SEARCH_OUTPUT_MAPPINGS", { enumerable: true, get: function () { return built_in_actions_1.WEB_SEARCH_OUTPUT_MAPPINGS; } });
|
|
44
|
+
Object.defineProperty(exports, "WEB_SEARCH_OUTPUT_SCHEMA", { enumerable: true, get: function () { return built_in_actions_1.WEB_SEARCH_OUTPUT_SCHEMA; } });
|
|
42
45
|
var client_1 = require("./client.cjs");
|
|
43
46
|
Object.defineProperty(exports, "SimpleAI", { enumerable: true, get: function () { return client_1.SimpleAI; } });
|
|
44
47
|
var define_action_1 = require("./code-action/define-action.cjs");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { type ActionCompileOptions, type ActionDefinition, type
|
|
2
|
-
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter,
|
|
3
|
-
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, } from "./built-in-actions.cjs";
|
|
1
|
+
export { type ActionCompileOptions, type ActionDefinition, type ActionHttpHeaders, type ActionIoInput, type ActionOutputParameterMappings, type ActionOutputParameters, type ActionRunDefinition, type ActionsIoSchema, type ActionsIoSchemaNode, type ActionVersionValues, type AgentActionInput, action, actionsIoSchemaFromZod, type BackgroundMessage, type BuiltInActionValues, type BuiltInOperation, type CallableActionDefinition, canonicalActionSource, compileAction, type InlineActionDefinition, type ReferencedActionDefinition, resolveActionHttpHeaders, resolveActionIoSchema, type SourceFileReference, sourceFile, } from "./actions.cjs";
|
|
2
|
+
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.cjs";
|
|
3
|
+
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.cjs";
|
|
4
4
|
export { SimpleAI, type SimpleAIOptions } from "./client.cjs";
|
|
5
5
|
export { type ActionContext, type ActionHandler, type CustomDataResult, type CustomDataTransformContext, type CustomDataTransformHandler, type CustomDataTransformOperation, defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.cjs";
|
|
6
6
|
export { ActionCapability, type ActionInvocationMetadata } from "./code-action/types.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { type ActionCompileOptions, type ActionDefinition, type
|
|
2
|
-
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter,
|
|
3
|
-
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
1
|
+
export { type ActionCompileOptions, type ActionDefinition, type ActionHttpHeaders, type ActionIoInput, type ActionOutputParameterMappings, type ActionOutputParameters, type ActionRunDefinition, type ActionsIoSchema, type ActionsIoSchemaNode, type ActionVersionValues, type AgentActionInput, action, actionsIoSchemaFromZod, type BackgroundMessage, type BuiltInActionValues, type BuiltInOperation, type CallableActionDefinition, canonicalActionSource, compileAction, type InlineActionDefinition, type ReferencedActionDefinition, resolveActionHttpHeaders, resolveActionIoSchema, type SourceFileReference, sourceFile, } from "./actions.js";
|
|
2
|
+
export { type AbTestNodeDefinition, type ActionNodeDefinition, type AgentCompileOptions, type AgentDefinition, type AgentDefinitionInput, type AgentIdentityKind, type AgentV2CommitContentWire, type AgentV2ConfigWire, type AgentV2EdgeWire, type AgentV2NodeWire, type AlwaysAvailableCapability, type AlwaysAvailableTransitionFilterWire, type BackgroundNoise, type BackgroundNoiseConfig, type CallParameterFilter, type CartActionRef, type CartCheckoutDefinition, type CartCheckoutWhenWire, type CartConfigWire, type CartDefinition, type CartPointer, type CartSummaryLineWire, type CartViewWire, type CheckInAfterSilence, type CheckInAfterSilenceInput, type CollectCreditCardNodeDefinition, type CompiledAgentProject, type ContainableCondition, type ContainableRuleGroup, type ContainableRuleSet, type ContainedCondition, type ContainedRuleGroup, type ContainedRuleSet, type ContainmentConfig, type ContainmentEndedByCondition, type ContainmentParameterCondition, type ContainmentTagCondition, type ContainmentVisitedNodeCondition, canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, type EdgeDefinition, type EnabledWithDescription, type EndCallNodeDefinition, type EotEagerness, type ExtractionField, type ExtractionInput, type ExtractNodeDefinition, FIVE9_SIP_BYE_HEADER_NAMES, type Five9SipByeHeaderName, type GeneratedExamples, type GeneratedExamplesPolicy, type GlobalNodeDefinition, type HttpNodeDefinition, type InterruptionEagerness, type LlmOverrideDefinition, type LlmOverrideWire, MAX_CONTAINMENT_RULE_DEPTH, type NodeDefinition, node, type ParameterUpdate, type PerTurnRetrievalDefinition, type PerTurnRetrievalWire, type PromptExample, type PromptNodeDefinition, type PromptReference, type Pronunciation, prompt, type RemoteReference, reference, resolveExtractionFields, type SayNodeDefinition, type SopGlobalContext, type SopSection, type SopSectionEdge, type SopSpec, type SopToolRef, type StaticRouterNodeDefinition, type ToolUseSiteWire, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, type TransferCapability, type TransferChatNodeDefinition, type TransferNodeDefinition, type TransitionFilter, type TransitionFilterCondition, type TransitionFilterJs, type TransitionFilterValue, type TransitionFilterWire, type TransitionMessageWire, type UpdateParametersNodeDefinition, } from "./agents.js";
|
|
3
|
+
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
4
4
|
export { SimpleAI, type SimpleAIOptions } from "./client.js";
|
|
5
5
|
export { type ActionContext, type ActionHandler, type CustomDataResult, type CustomDataTransformContext, type CustomDataTransformHandler, type CustomDataTransformOperation, defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.js";
|
|
6
6
|
export { ActionCapability, type ActionInvocationMetadata } from "./code-action/types.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { action, actionsIoSchemaFromZod, canonicalActionSource, compileAction, resolveActionHttpHeaders, resolveActionIoSchema, sourceFile, } from "./actions.js";
|
|
2
2
|
export { canonicalAuthoringKey, canonicalAuthoringKeys, compileAgent, DEFAULT_CHECK_IN_AFTER_SILENCE_DELAY_SECONDS, DEFAULT_PER_TURN_RETRIEVAL_RECENT_TURNS, DEFAULT_PER_TURN_RETRIEVAL_TOP_K, DEFAULT_TRANSITION_MESSAGE, defaultBackgroundNoise, defineAgent, FIVE9_SIP_BYE_HEADER_NAMES, MAX_CONTAINMENT_RULE_DEPTH, node, prompt, reference, resolveExtractionFields, TRANSITION_FILTER_MAX_CONDITIONS, TRANSITION_FILTER_MAX_DEPTH, } from "./agents.js";
|
|
3
|
-
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
3
|
+
export { BUILT_IN_ACTION_CONTRACTS, SEND_EMAIL_INPUT_SCHEMA, SEND_EMAIL_OUTPUT_MAPPINGS, SEND_EMAIL_OUTPUT_SCHEMA, SEND_TEXT_MESSAGE_INPUT_SCHEMA, SEND_TEXT_MESSAGE_OUTPUT_MAPPINGS, SEND_TEXT_MESSAGE_OUTPUT_SCHEMA, VALIDATE_ADDRESS_INPUT_SCHEMA, VALIDATE_ADDRESS_OUTPUT_MAPPINGS, VALIDATE_ADDRESS_OUTPUT_SCHEMA, WEB_SEARCH_INPUT_SCHEMA, WEB_SEARCH_OUTPUT_MAPPINGS, WEB_SEARCH_OUTPUT_SCHEMA, } from "./built-in-actions.js";
|
|
4
4
|
export { SimpleAI } from "./client.js";
|
|
5
5
|
export { defineAction, defineCustomDataTransform, SIMPLE_ACTION_BRAND, } from "./code-action/define-action.js";
|
|
6
6
|
export { ActionCapability } from "./code-action/types.js";
|