@inkeep/agents-sdk 0.0.0-dev-20260211191741 → 0.0.0-dev-20260211220939
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/artifact-component.d.ts +1 -1
- package/dist/artifact-component.js +1 -3
- package/dist/builders.d.ts +3 -3
- package/dist/data-component.d.ts +1 -1
- package/dist/data-component.js +1 -3
- package/dist/index.d.ts +2 -2
- package/dist/types.d.ts +4 -15
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
//#region src/artifact-component.d.ts
|
|
5
5
|
type ArtifactComponentConfigWithZod = Omit<ArtifactComponentInsert, "tenantId" | "projectId" | "props"> & {
|
|
6
|
-
props
|
|
6
|
+
props: ArtifactComponentInsert["props"] | z.ZodObject<any>;
|
|
7
7
|
};
|
|
8
8
|
interface ArtifactComponentInterface {
|
|
9
9
|
config: Omit<ArtifactComponentInsert, "tenantId" | "projectId">;
|
|
@@ -12,9 +12,7 @@ var ArtifactComponent = class {
|
|
|
12
12
|
id;
|
|
13
13
|
constructor(config) {
|
|
14
14
|
this.id = config.id || generateIdFromName(config.name);
|
|
15
|
-
|
|
16
|
-
if (config.props && isZodSchema(config.props)) processedProps = convertZodToJsonSchemaWithPreview(config.props);
|
|
17
|
-
else processedProps = config.props;
|
|
15
|
+
const processedProps = isZodSchema(config.props) ? convertZodToJsonSchemaWithPreview(config.props) : config.props;
|
|
18
16
|
this.config = {
|
|
19
17
|
...config,
|
|
20
18
|
id: this.id,
|
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tool } from "./tool.js";
|
|
2
2
|
import { SubAgent } from "./subAgent.js";
|
|
3
3
|
import { TransferConfig } from "./types.js";
|
|
4
|
-
import { CredentialReferenceApiInsert, McpToolSelection, ToolPolicy } from "@inkeep/agents-core";
|
|
4
|
+
import { CredentialReferenceApiInsert, JsonSchemaForLlmSchemaType, McpToolSelection, ToolPolicy } from "@inkeep/agents-core";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/builders.d.ts
|
|
@@ -40,10 +40,10 @@ interface ComponentConfig {
|
|
|
40
40
|
description: string;
|
|
41
41
|
}
|
|
42
42
|
interface ArtifactComponentConfig extends ComponentConfig {
|
|
43
|
-
props:
|
|
43
|
+
props: JsonSchemaForLlmSchemaType | z.ZodObject<any>;
|
|
44
44
|
}
|
|
45
45
|
interface DataComponentConfig extends ComponentConfig {
|
|
46
|
-
props:
|
|
46
|
+
props: JsonSchemaForLlmSchemaType | z.ZodObject<any>;
|
|
47
47
|
render?: {
|
|
48
48
|
component: string;
|
|
49
49
|
mockData: Record<string, unknown>;
|
package/dist/data-component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
//#region src/data-component.d.ts
|
|
5
5
|
type DataComponentConfigWithZod = Omit<DataComponentInsert, "tenantId" | "projectId" | "props" | "render"> & {
|
|
6
|
-
props
|
|
6
|
+
props: DataComponentInsert["props"] | z.ZodObject<any>;
|
|
7
7
|
render?: {
|
|
8
8
|
component: string;
|
|
9
9
|
mockData: Record<string, unknown>;
|
package/dist/data-component.js
CHANGED
|
@@ -12,9 +12,7 @@ var DataComponent = class {
|
|
|
12
12
|
id;
|
|
13
13
|
constructor(config) {
|
|
14
14
|
this.id = config.id || generateIdFromName(config.name);
|
|
15
|
-
|
|
16
|
-
if (config.props && isZodSchema(config.props)) processedProps = convertZodToJsonSchema(config.props);
|
|
17
|
-
else processedProps = config.props;
|
|
15
|
+
const processedProps = isZodSchema(config.props) ? convertZodToJsonSchema(config.props) : config.props;
|
|
18
16
|
this.config = {
|
|
19
17
|
...config,
|
|
20
18
|
id: this.id,
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { transfer } from "./builders.js";
|
|
|
6
6
|
import { DataComponent, DataComponentInterface } from "./data-component.js";
|
|
7
7
|
import { ExternalAgent, externalAgent, externalAgents } from "./external-agent.js";
|
|
8
8
|
import { FunctionTool } from "./function-tool.js";
|
|
9
|
-
import { AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface,
|
|
9
|
+
import { AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface, AssistantMessage, BuilderAgentConfig, BuilderRelationConfig, BuilderToolConfig, ExternalAgentInterface, FetchDefinitionConfig, FunctionToolConfig, GenerateOptions, MCPToolConfig, MaxTurnsExceededError, Message, MessageInput, ModelSettings, RequestSchemaConfig, RequestSchemaDefinition, RunResult, ServerConfig, StreamEvent, StreamResponse, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, UserMessage, subAgentExternalAgentInterface, subAgentTeamAgentInterface } from "./types.js";
|
|
10
10
|
import { Project } from "./project.js";
|
|
11
11
|
import { StatusComponent, StatusComponentInterface } from "./status-component.js";
|
|
12
12
|
import { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, statusComponent, subAgent, trigger } from "./builderFunctions.js";
|
|
@@ -18,4 +18,4 @@ import { createFullProjectViaAPI, deleteFullProjectViaAPI, getFullProjectViaAPI,
|
|
|
18
18
|
import { Runner, raceAgents, run, stream } from "./runner.js";
|
|
19
19
|
import { ConsoleTelemetryProvider, InkeepTelemetryProvider, NoOpTelemetryProvider, OpenTelemetryConfig, SpanOptions, SpanStatus, SpanStatusType, TelemetryConfig, TelemetryLogger, TelemetryMetrics, TelemetryProvider, TelemetrySpan, TelemetryTracer, createConsoleTelemetryProvider, createNoOpTelemetryProvider, createOpenTelemetryProvider, getGlobalTelemetryProvider, setGlobalTelemetryProvider } from "./telemetry-provider.js";
|
|
20
20
|
import { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS, SignatureSource, SignatureVerificationConfig, SignedComponent } from "@inkeep/agents-core";
|
|
21
|
-
export { ANTHROPIC_MODELS, AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface, ArtifactComponent, type ArtifactComponentInterface,
|
|
21
|
+
export { ANTHROPIC_MODELS, AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface, ArtifactComponent, type ArtifactComponentInterface, AssistantMessage, BuilderAgentConfig, BuilderRelationConfig, BuilderToolConfig, ConsoleTelemetryProvider, type CredentialProviderConfig, type CredentialProviderType, type CredentialReference, type CredentialStore, type CustomCredentialConfig, DataComponent, type DataComponentInterface, EvaluationClient, type EvaluationClientConfig, ExternalAgent, ExternalAgentInterface, type ExtractCredentialIds, FetchDefinitionConfig, FunctionTool, FunctionToolConfig, GOOGLE_MODELS, GenerateOptions, InkeepCredentialProvider, InkeepTelemetryProvider, type KeychainCredentialConfig, MCPToolConfig, MaxTurnsExceededError, type MemoryCredentialConfig, Message, MessageInput, ModelSettings, type NangoCredentialConfig, NoOpTelemetryProvider, OPENAI_MODELS, type OpenTelemetryConfig, Project, RequestSchemaConfig, RequestSchemaDefinition, RunResult, Runner, ServerConfig, type SignatureSource, type SignatureVerificationConfig, type SignedComponent, type SpanOptions, SpanStatus, type SpanStatusType, StatusComponent, type StatusComponentInterface, StreamEvent, StreamResponse, SubAgent, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, type TelemetryConfig, type TelemetryLogger, type TelemetryMetrics, type TelemetryProvider, type TelemetrySpan, type TelemetryTracer, Tool, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, Trigger, type TriggerConfig, type TriggerInterface, type UnionCredentialIds, UserMessage, agent, agentMcp, artifactComponent, createConsoleTelemetryProvider, createCredentialProvider, createEnvironmentSettings, createFullProjectViaAPI, createNoOpTelemetryProvider, createOpenTelemetryProvider, credential, credentialRef, dataComponent, deleteFullProjectViaAPI, evaluationClient, externalAgent, externalAgents, functionTool, getFullProjectViaAPI, getGlobalTelemetryProvider, isCredentialReference, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, setGlobalTelemetryProvider, statusComponent, stream, subAgent, subAgentExternalAgentInterface, subAgentTeamAgentInterface, transfer, trigger, updateFullProjectViaAPI };
|
package/dist/types.d.ts
CHANGED
|
@@ -9,18 +9,7 @@ import { AgentConversationHistoryConfig, AgentStopWhen, ArtifactComponentApiInse
|
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/types.d.ts
|
|
12
|
-
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
description: string;
|
|
16
|
-
props?: z.ZodObject<any>;
|
|
17
|
-
}
|
|
18
|
-
interface DataComponentWithZodProps {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
description: string;
|
|
22
|
-
props?: z.ZodObject<any>;
|
|
23
|
-
}
|
|
12
|
+
|
|
24
13
|
/**
|
|
25
14
|
* Tool instance that may have additional metadata attached during agent processing
|
|
26
15
|
*/
|
|
@@ -74,8 +63,8 @@ interface SubAgentConfig extends Omit<SubAgentApiInsert, "projectId"> {
|
|
|
74
63
|
canUse?: () => SubAgentCanUseType[];
|
|
75
64
|
canTransferTo?: () => SubAgentInterface[];
|
|
76
65
|
canDelegateTo?: () => AllDelegateInputInterface[];
|
|
77
|
-
dataComponents?: () => (DataComponentApiInsert | DataComponentInterface
|
|
78
|
-
artifactComponents?: () => (ArtifactComponentApiInsert | ArtifactComponentInterface
|
|
66
|
+
dataComponents?: () => (DataComponentApiInsert | DataComponentInterface)[];
|
|
67
|
+
artifactComponents?: () => (ArtifactComponentApiInsert | ArtifactComponentInterface)[];
|
|
79
68
|
conversationHistoryConfig?: AgentConversationHistoryConfig;
|
|
80
69
|
}
|
|
81
70
|
interface ToolConfig extends ToolInsert {
|
|
@@ -302,4 +291,4 @@ interface BuilderAgentConfig {
|
|
|
302
291
|
relations?: BuilderRelationConfig[];
|
|
303
292
|
}
|
|
304
293
|
//#endregion
|
|
305
|
-
export { AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface,
|
|
294
|
+
export { AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface, AssistantMessage, BuilderAgentConfig, BuilderRelationConfig, BuilderToolConfig, ExternalAgentInterface, FetchDefinitionConfig, type FunctionToolConfig, GenerateOptions, MCPToolConfig, MaxTurnsExceededError, Message, MessageInput, type ModelSettings, RequestSchemaConfig, RequestSchemaDefinition, RunResult, ServerConfig, StreamEvent, StreamResponse, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, type TriggerInterface, UserMessage, subAgentExternalAgentInterface, subAgentTeamAgentInterface };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-sdk",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260211220939",
|
|
4
4
|
"description": "Agents SDK for building and managing agents in the Inkeep Agent Framework",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"js-yaml": "^4.1.0",
|
|
17
17
|
"typescript": "^5.3.3",
|
|
18
18
|
"zod": "^4.3.6",
|
|
19
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
19
|
+
"@inkeep/agents-core": "^0.0.0-dev-20260211220939"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/js-yaml": "^4.0.9",
|