@inkeep/agents-sdk 0.19.9 → 0.20.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/index.cjs CHANGED
@@ -487,7 +487,7 @@ var Agent = class {
487
487
  __publicField(this, "credentials");
488
488
  __publicField(this, "models");
489
489
  __publicField(this, "statusUpdateSettings");
490
- __publicField(this, "agentPrompt");
490
+ __publicField(this, "prompt");
491
491
  __publicField(this, "stopWhen");
492
492
  __publicField(this, "dbClient");
493
493
  this.defaultSubAgent = config.defaultSubAgent;
@@ -505,7 +505,7 @@ var Agent = class {
505
505
  url: dbUrl
506
506
  });
507
507
  this.statusUpdateSettings = config.statusUpdates;
508
- this.agentPrompt = config.agentPrompt;
508
+ this.prompt = config.prompt;
509
509
  this.stopWhen = config.stopWhen ? {
510
510
  transferCountIs: config.stopWhen.transferCountIs
511
511
  } : void 0;
@@ -675,7 +675,7 @@ var Agent = class {
675
675
  ...Object.keys(functionsObject).length > 0 && { functions: functionsObject },
676
676
  models: this.models,
677
677
  statusUpdates: this.statusUpdateSettings,
678
- prompt: this.agentPrompt,
678
+ prompt: this.prompt,
679
679
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
680
680
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
681
681
  };
@@ -1058,8 +1058,8 @@ var Agent = class {
1058
1058
  /**
1059
1059
  * Get the agent's prompt configuration
1060
1060
  */
1061
- getAgentPrompt() {
1062
- return this.agentPrompt;
1061
+ getPrompt() {
1062
+ return this.prompt;
1063
1063
  }
1064
1064
  /**
1065
1065
  * Get the agent's stopWhen configuration
package/dist/index.d.cts CHANGED
@@ -457,7 +457,7 @@ interface AgentConfig {
457
457
  contextConfig?: any;
458
458
  credentials?: () => CredentialReferenceApiInsert[];
459
459
  stopWhen?: AgentStopWhen;
460
- agentPrompt?: string;
460
+ prompt?: string;
461
461
  models?: {
462
462
  base?: ModelSettings;
463
463
  structuredOutput?: ModelSettings;
@@ -564,7 +564,7 @@ declare class Agent implements AgentInterface {
564
564
  private credentials?;
565
565
  private models?;
566
566
  private statusUpdateSettings?;
567
- private agentPrompt?;
567
+ private prompt?;
568
568
  private stopWhen?;
569
569
  private dbClient;
570
570
  constructor(config: AgentConfig);
@@ -652,7 +652,7 @@ declare class Agent implements AgentInterface {
652
652
  /**
653
653
  * Get the agent's prompt configuration
654
654
  */
655
- getAgentPrompt(): string | undefined;
655
+ getPrompt(): string | undefined;
656
656
  /**
657
657
  * Get the agent's stopWhen configuration
658
658
  */
package/dist/index.d.ts CHANGED
@@ -457,7 +457,7 @@ interface AgentConfig {
457
457
  contextConfig?: any;
458
458
  credentials?: () => CredentialReferenceApiInsert[];
459
459
  stopWhen?: AgentStopWhen;
460
- agentPrompt?: string;
460
+ prompt?: string;
461
461
  models?: {
462
462
  base?: ModelSettings;
463
463
  structuredOutput?: ModelSettings;
@@ -564,7 +564,7 @@ declare class Agent implements AgentInterface {
564
564
  private credentials?;
565
565
  private models?;
566
566
  private statusUpdateSettings?;
567
- private agentPrompt?;
567
+ private prompt?;
568
568
  private stopWhen?;
569
569
  private dbClient;
570
570
  constructor(config: AgentConfig);
@@ -652,7 +652,7 @@ declare class Agent implements AgentInterface {
652
652
  /**
653
653
  * Get the agent's prompt configuration
654
654
  */
655
- getAgentPrompt(): string | undefined;
655
+ getPrompt(): string | undefined;
656
656
  /**
657
657
  * Get the agent's stopWhen configuration
658
658
  */
package/dist/index.js CHANGED
@@ -460,7 +460,7 @@ var Agent = class {
460
460
  __publicField(this, "credentials");
461
461
  __publicField(this, "models");
462
462
  __publicField(this, "statusUpdateSettings");
463
- __publicField(this, "agentPrompt");
463
+ __publicField(this, "prompt");
464
464
  __publicField(this, "stopWhen");
465
465
  __publicField(this, "dbClient");
466
466
  this.defaultSubAgent = config.defaultSubAgent;
@@ -478,7 +478,7 @@ var Agent = class {
478
478
  url: dbUrl
479
479
  });
480
480
  this.statusUpdateSettings = config.statusUpdates;
481
- this.agentPrompt = config.agentPrompt;
481
+ this.prompt = config.prompt;
482
482
  this.stopWhen = config.stopWhen ? {
483
483
  transferCountIs: config.stopWhen.transferCountIs
484
484
  } : void 0;
@@ -648,7 +648,7 @@ var Agent = class {
648
648
  ...Object.keys(functionsObject).length > 0 && { functions: functionsObject },
649
649
  models: this.models,
650
650
  statusUpdates: this.statusUpdateSettings,
651
- prompt: this.agentPrompt,
651
+ prompt: this.prompt,
652
652
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
653
653
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
654
654
  };
@@ -1031,8 +1031,8 @@ var Agent = class {
1031
1031
  /**
1032
1032
  * Get the agent's prompt configuration
1033
1033
  */
1034
- getAgentPrompt() {
1035
- return this.agentPrompt;
1034
+ getPrompt() {
1035
+ return this.prompt;
1036
1036
  }
1037
1037
  /**
1038
1038
  * Get the agent's stopWhen configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-sdk",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
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.19.9"
15
+ "@inkeep/agents-core": "^0.20.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/js-yaml": "^4.0.9",