@inkeep/agents-sdk 0.0.0-dev-20251125155922 → 0.0.0-dev-20251125203032

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/index.cjs CHANGED
@@ -92,7 +92,7 @@ var ArtifactComponent = class {
92
92
  return this.config.name;
93
93
  }
94
94
  getDescription() {
95
- return this.config.description;
95
+ return this.config.description || "";
96
96
  }
97
97
  getProps() {
98
98
  return this.config.props;
@@ -623,7 +623,7 @@ var FunctionTool = class {
623
623
  return this.config.name;
624
624
  }
625
625
  getDescription() {
626
- return this.config.description;
626
+ return this.config.description || "";
627
627
  }
628
628
  getInputSchema() {
629
629
  return this.config.inputSchema;
@@ -847,7 +847,7 @@ var Agent = class {
847
847
  subAgentsObject[subAgent2.getId()] = {
848
848
  id: subAgent2.getId(),
849
849
  name: subAgent2.getName(),
850
- description: subAgent2.config.description || `Agent ${subAgent2.getName()}`,
850
+ description: subAgent2.config.description || "",
851
851
  prompt: subAgent2.getInstructions(),
852
852
  models: subAgent2.config.models,
853
853
  stopWhen: subAgent2.config.stopWhen,
@@ -1774,7 +1774,7 @@ var DataComponent = class {
1774
1774
  return this.config.name;
1775
1775
  }
1776
1776
  getDescription() {
1777
- return this.config.description;
1777
+ return this.config.description || "";
1778
1778
  }
1779
1779
  getProps() {
1780
1780
  return this.config.props;
@@ -2777,7 +2777,9 @@ var Tool = class {
2777
2777
  * ```
2778
2778
  */
2779
2779
  with(config) {
2780
- const { selectedTools, toolPolicies } = agentsCore.normalizeToolSelections(config.selectedTools ?? void 0);
2780
+ const { selectedTools, toolPolicies } = agentsCore.normalizeToolSelections(
2781
+ config.selectedTools ?? void 0
2782
+ );
2781
2783
  const isUnspecified = config.selectedTools === void 0 || config.selectedTools === null;
2782
2784
  const resolvedSelectedTools = isUnspecified ? void 0 : selectedTools;
2783
2785
  const resolvedToolPolicies = isUnspecified || Object.keys(toolPolicies).length === 0 ? void 0 : toolPolicies;
@@ -2865,7 +2867,7 @@ var SubAgent = class {
2865
2867
  return this.config.name;
2866
2868
  }
2867
2869
  getInstructions() {
2868
- return this.config.prompt;
2870
+ return this.config.prompt || "";
2869
2871
  }
2870
2872
  /**
2871
2873
  * Get the agent's description (the human-readable description field)
@@ -3081,7 +3083,7 @@ var SubAgent = class {
3081
3083
  id: this.getId(),
3082
3084
  name: this.config.name,
3083
3085
  description: this.config.description || "",
3084
- prompt: this.config.prompt,
3086
+ prompt: this.config.prompt || "",
3085
3087
  conversationHistoryConfig: this.config.conversationHistoryConfig,
3086
3088
  models: this.config.models,
3087
3089
  stopWhen: this.config.stopWhen
@@ -4139,9 +4141,6 @@ var Runner = class _Runner {
4139
4141
  if (!defaultSubAgent.getName()) {
4140
4142
  errors.push("Default agent name is required");
4141
4143
  }
4142
- if (!defaultSubAgent.getInstructions()) {
4143
- errors.push("Default agent instructions are required");
4144
- }
4145
4144
  }
4146
4145
  const subAgents = agent2.getSubAgents();
4147
4146
  if (subAgents.length === 0) {
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ var ArtifactComponent = class {
65
65
  return this.config.name;
66
66
  }
67
67
  getDescription() {
68
- return this.config.description;
68
+ return this.config.description || "";
69
69
  }
70
70
  getProps() {
71
71
  return this.config.props;
@@ -596,7 +596,7 @@ var FunctionTool = class {
596
596
  return this.config.name;
597
597
  }
598
598
  getDescription() {
599
- return this.config.description;
599
+ return this.config.description || "";
600
600
  }
601
601
  getInputSchema() {
602
602
  return this.config.inputSchema;
@@ -820,7 +820,7 @@ var Agent = class {
820
820
  subAgentsObject[subAgent2.getId()] = {
821
821
  id: subAgent2.getId(),
822
822
  name: subAgent2.getName(),
823
- description: subAgent2.config.description || `Agent ${subAgent2.getName()}`,
823
+ description: subAgent2.config.description || "",
824
824
  prompt: subAgent2.getInstructions(),
825
825
  models: subAgent2.config.models,
826
826
  stopWhen: subAgent2.config.stopWhen,
@@ -1747,7 +1747,7 @@ var DataComponent = class {
1747
1747
  return this.config.name;
1748
1748
  }
1749
1749
  getDescription() {
1750
- return this.config.description;
1750
+ return this.config.description || "";
1751
1751
  }
1752
1752
  getProps() {
1753
1753
  return this.config.props;
@@ -2750,7 +2750,9 @@ var Tool = class {
2750
2750
  * ```
2751
2751
  */
2752
2752
  with(config) {
2753
- const { selectedTools, toolPolicies } = normalizeToolSelections(config.selectedTools ?? void 0);
2753
+ const { selectedTools, toolPolicies } = normalizeToolSelections(
2754
+ config.selectedTools ?? void 0
2755
+ );
2754
2756
  const isUnspecified = config.selectedTools === void 0 || config.selectedTools === null;
2755
2757
  const resolvedSelectedTools = isUnspecified ? void 0 : selectedTools;
2756
2758
  const resolvedToolPolicies = isUnspecified || Object.keys(toolPolicies).length === 0 ? void 0 : toolPolicies;
@@ -2838,7 +2840,7 @@ var SubAgent = class {
2838
2840
  return this.config.name;
2839
2841
  }
2840
2842
  getInstructions() {
2841
- return this.config.prompt;
2843
+ return this.config.prompt || "";
2842
2844
  }
2843
2845
  /**
2844
2846
  * Get the agent's description (the human-readable description field)
@@ -3054,7 +3056,7 @@ var SubAgent = class {
3054
3056
  id: this.getId(),
3055
3057
  name: this.config.name,
3056
3058
  description: this.config.description || "",
3057
- prompt: this.config.prompt,
3059
+ prompt: this.config.prompt || "",
3058
3060
  conversationHistoryConfig: this.config.conversationHistoryConfig,
3059
3061
  models: this.config.models,
3060
3062
  stopWhen: this.config.stopWhen
@@ -4112,9 +4114,6 @@ var Runner = class _Runner {
4112
4114
  if (!defaultSubAgent.getName()) {
4113
4115
  errors.push("Default agent name is required");
4114
4116
  }
4115
- if (!defaultSubAgent.getInstructions()) {
4116
- errors.push("Default agent instructions are required");
4117
- }
4118
4117
  }
4119
4118
  const subAgents = agent2.getSubAgents();
4120
4119
  if (subAgents.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.0.0-dev-20251125155922",
3
+ "version": "0.0.0-dev-20251125203032",
4
4
  "description": "Agents SDK for building and managing agents in the Inkeep Agent Framework",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "nanoid": "^5.1.5",
13
13
  "typescript": "^5.3.3",
14
14
  "zod": "^4.1.11",
15
- "@inkeep/agents-core": "^0.0.0-dev-20251125155922"
15
+ "@inkeep/agents-core": "^0.0.0-dev-20251125203032"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",