@inkeep/agents-sdk 0.62.2 → 0.63.1

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.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ScheduledTrigger, ScheduledTriggerInterface } from "./scheduled-trigger.js";
2
1
  import { Trigger, TriggerInterface } from "./trigger.js";
3
2
  import { AgentConfig, AgentInterface, AllDelegateInputInterface, GenerateOptions, MessageInput, ModelSettings, RunResult, StreamResponse, SubAgentInterface, subAgentTeamAgentInterface } from "./types.js";
4
3
  import { AgentStopWhen, FullAgentDefinition, StatusUpdateSettings } from "@inkeep/agents-core";
@@ -23,8 +22,6 @@ declare class Agent implements AgentInterface {
23
22
  private stopWhen?;
24
23
  private triggers;
25
24
  private triggerMap;
26
- private scheduledTriggers;
27
- private scheduledTriggerMap;
28
25
  constructor(config: AgentConfig);
29
26
  /**
30
27
  * Set or update the configuration (tenantId, projectId and apiUrl)
@@ -96,14 +93,6 @@ declare class Agent implements AgentInterface {
96
93
  */
97
94
  addTrigger(...triggers: TriggerInterface[]): void;
98
95
  /**
99
- * Get all scheduled triggers for this agent
100
- */
101
- getScheduledTriggers(): Record<string, ScheduledTrigger>;
102
- /**
103
- * Add one or more scheduled triggers to the agent at runtime
104
- */
105
- addScheduledTrigger(...triggers: ScheduledTriggerInterface[]): void;
106
- /**
107
96
  * Get the agent ID
108
97
  */
109
98
  getId(): string;
package/dist/agent.js CHANGED
@@ -28,8 +28,6 @@ var Agent = class {
28
28
  stopWhen;
29
29
  triggers = [];
30
30
  triggerMap = /* @__PURE__ */ new Map();
31
- scheduledTriggers = [];
32
- scheduledTriggerMap = /* @__PURE__ */ new Map();
33
31
  constructor(config) {
34
32
  this.defaultSubAgent = config.defaultSubAgent;
35
33
  this.tenantId = "default";
@@ -48,8 +46,6 @@ var Agent = class {
48
46
  this.agentMap = new Map(this.subAgents.map((agent$1) => [agent$1.getId(), agent$1]));
49
47
  this.triggers = resolveGetter(config.triggers) || [];
50
48
  this.triggerMap = new Map(this.triggers.map((trigger) => [trigger.getId(), trigger]));
51
- this.scheduledTriggers = resolveGetter(config.scheduledTriggers) || [];
52
- this.scheduledTriggerMap = new Map(this.scheduledTriggers.map((trigger) => [trigger.getId(), trigger]));
53
49
  if (this.defaultSubAgent) {
54
50
  if (!this.subAgents.some((agent$1) => agent$1.getId() === this.defaultSubAgent?.getId())) this.subAgents.push(this.defaultSubAgent);
55
51
  this.agentMap.set(this.defaultSubAgent.getId(), this.defaultSubAgent);
@@ -60,8 +56,7 @@ var Agent = class {
60
56
  tenantId: this.tenantId,
61
57
  agentCount: this.subAgents.length,
62
58
  defaultSubAgent: this.defaultSubAgent?.getName(),
63
- triggerCount: this.triggers.length,
64
- scheduledTriggerCount: this.scheduledTriggers.length
59
+ triggerCount: this.triggers.length
65
60
  }, "Agent initialized");
66
61
  }
67
62
  /**
@@ -246,8 +241,6 @@ var Agent = class {
246
241
  inputSchema: processedInputSchema
247
242
  };
248
243
  }
249
- const scheduledTriggersObject = {};
250
- for (const [triggerId, trigger] of this.scheduledTriggerMap.entries()) scheduledTriggersObject[triggerId] = trigger.getConfig();
251
244
  return {
252
245
  id: this.agentId,
253
246
  name: this.agentName,
@@ -259,7 +252,6 @@ var Agent = class {
259
252
  ...Object.keys(functionToolsObject).length > 0 && { functionTools: functionToolsObject },
260
253
  ...Object.keys(functionsObject).length > 0 && { functions: functionsObject },
261
254
  triggers: triggersObject,
262
- scheduledTriggers: scheduledTriggersObject,
263
255
  models: this.models,
264
256
  stopWhen: this.stopWhen,
265
257
  statusUpdates: processedStatusUpdates,
@@ -486,28 +478,6 @@ var Agent = class {
486
478
  }
487
479
  }
488
480
  /**
489
- * Get all scheduled triggers for this agent
490
- */
491
- getScheduledTriggers() {
492
- const scheduledTriggersObject = {};
493
- for (const [id, trigger] of this.scheduledTriggerMap.entries()) scheduledTriggersObject[id] = trigger;
494
- return scheduledTriggersObject;
495
- }
496
- /**
497
- * Add one or more scheduled triggers to the agent at runtime
498
- */
499
- addScheduledTrigger(...triggers) {
500
- for (const trigger of triggers) {
501
- this.scheduledTriggers.push(trigger);
502
- this.scheduledTriggerMap.set(trigger.getId(), trigger);
503
- logger.info({
504
- agentId: this.agentId,
505
- scheduledTriggerId: trigger.getId(),
506
- scheduledTriggerName: trigger.getName()
507
- }, "Scheduled trigger added to agent");
508
- }
509
- }
510
- /**
511
481
  * Get the agent ID
512
482
  */
513
483
  getId() {
@@ -1,4 +1,3 @@
1
- import { ScheduledTrigger } from "./scheduled-trigger.js";
2
1
  import { Trigger } from "./trigger.js";
3
2
  import { ArtifactComponent } from "./artifact-component.js";
4
3
  import { Tool } from "./tool.js";
@@ -10,7 +9,7 @@ import { AgentConfig, FunctionToolConfig, SubAgentConfig } from "./types.js";
10
9
  import { Agent } from "./agent.js";
11
10
  import { Project, ProjectConfig } from "./project.js";
12
11
  import { StatusComponent as StatusComponent$1 } from "./status-component.js";
13
- import { CredentialReferenceApiInsert, MCPToolConfig, ScheduledTriggerApiInsert, TriggerApiInsert } from "@inkeep/agents-core";
12
+ import { CredentialReferenceApiInsert, MCPToolConfig, TriggerApiInsert } from "@inkeep/agents-core";
14
13
 
15
14
  //#region src/builderFunctions.d.ts
16
15
 
@@ -369,47 +368,5 @@ declare function functionTool(config: FunctionToolConfig): FunctionTool;
369
368
  declare function trigger(config: Omit<TriggerApiInsert, "id"> & {
370
369
  id?: string;
371
370
  }): Trigger;
372
- /**
373
- * Creates a scheduled trigger for time-based agent execution.
374
- *
375
- * Scheduled triggers allow agents to be invoked on a schedule using cron expressions
376
- * or at a specific one-time date/time.
377
- *
378
- * @param config - Scheduled trigger configuration
379
- * @returns A ScheduledTrigger instance
380
- *
381
- * @example
382
- * ```typescript
383
- * // Daily report at 9 AM
384
- * const dailyReport = scheduledTrigger({
385
- * name: 'Daily Report',
386
- * cronExpression: '0 9 * * *',
387
- * messageTemplate: 'Generate the daily report for {{date}}',
388
- * payload: { date: '{{now}}' },
389
- * });
390
- *
391
- * // One-time migration task
392
- * const migrationTask = scheduledTrigger({
393
- * name: 'Migration Task',
394
- * runAt: '2024-12-31T23:59:59Z',
395
- * messageTemplate: 'Run the end-of-year migration',
396
- * maxRetries: 5,
397
- * timeoutSeconds: 600,
398
- * });
399
- *
400
- * // Hourly health check with retry configuration
401
- * const healthCheck = scheduledTrigger({
402
- * name: 'Hourly Health Check',
403
- * cronExpression: '0 * * * *',
404
- * messageTemplate: 'Check system health',
405
- * maxRetries: 3,
406
- * retryDelaySeconds: 30,
407
- * timeoutSeconds: 120,
408
- * });
409
- * ```
410
- */
411
- declare function scheduledTrigger(config: Omit<ScheduledTriggerApiInsert, "id"> & {
412
- id?: string;
413
- }): ScheduledTrigger;
414
371
  //#endregion
415
- export { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, scheduledTrigger, statusComponent, subAgent, trigger };
372
+ export { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, statusComponent, subAgent, trigger };
@@ -4,7 +4,6 @@ import { Agent } from "./agent.js";
4
4
  import { ArtifactComponent } from "./artifact-component.js";
5
5
  import { DataComponent } from "./data-component.js";
6
6
  import { Project } from "./project.js";
7
- import { ScheduledTrigger } from "./scheduled-trigger.js";
8
7
  import { StatusComponent as StatusComponent$1 } from "./status-component.js";
9
8
  import { Tool } from "./tool.js";
10
9
  import { SubAgent } from "./subAgent.js";
@@ -452,48 +451,6 @@ function trigger(config) {
452
451
  }
453
452
  return new Trigger(config);
454
453
  }
455
- /**
456
- * Creates a scheduled trigger for time-based agent execution.
457
- *
458
- * Scheduled triggers allow agents to be invoked on a schedule using cron expressions
459
- * or at a specific one-time date/time.
460
- *
461
- * @param config - Scheduled trigger configuration
462
- * @returns A ScheduledTrigger instance
463
- *
464
- * @example
465
- * ```typescript
466
- * // Daily report at 9 AM
467
- * const dailyReport = scheduledTrigger({
468
- * name: 'Daily Report',
469
- * cronExpression: '0 9 * * *',
470
- * messageTemplate: 'Generate the daily report for {{date}}',
471
- * payload: { date: '{{now}}' },
472
- * });
473
- *
474
- * // One-time migration task
475
- * const migrationTask = scheduledTrigger({
476
- * name: 'Migration Task',
477
- * runAt: '2024-12-31T23:59:59Z',
478
- * messageTemplate: 'Run the end-of-year migration',
479
- * maxRetries: 5,
480
- * timeoutSeconds: 600,
481
- * });
482
- *
483
- * // Hourly health check with retry configuration
484
- * const healthCheck = scheduledTrigger({
485
- * name: 'Hourly Health Check',
486
- * cronExpression: '0 * * * *',
487
- * messageTemplate: 'Check system health',
488
- * maxRetries: 3,
489
- * retryDelaySeconds: 30,
490
- * timeoutSeconds: 120,
491
- * });
492
- * ```
493
- */
494
- function scheduledTrigger(config) {
495
- return new ScheduledTrigger(config);
496
- }
497
454
 
498
455
  //#endregion
499
- export { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, scheduledTrigger, statusComponent, subAgent, trigger };
456
+ export { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, statusComponent, subAgent, trigger };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ScheduledTrigger, ScheduledTriggerConfig, ScheduledTriggerInterface } from "./scheduled-trigger.js";
2
1
  import { Trigger, TriggerConfig, TriggerInterface } from "./trigger.js";
3
2
  import { ArtifactComponent, ArtifactComponentInterface } from "./artifact-component.js";
4
3
  import { Tool } from "./tool.js";
@@ -10,7 +9,7 @@ import { FunctionTool } from "./function-tool.js";
10
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, SkillDefinition, SkillReference, StreamEvent, StreamResponse, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, UserMessage, subAgentExternalAgentInterface, subAgentTeamAgentInterface } from "./types.js";
11
10
  import { Project, ProjectConfig } from "./project.js";
12
11
  import { StatusComponent, StatusComponentInterface } from "./status-component.js";
13
- import { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, scheduledTrigger, statusComponent, subAgent, trigger } from "./builderFunctions.js";
12
+ import { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, statusComponent, subAgent, trigger } from "./builderFunctions.js";
14
13
  import { CredentialProviderConfig, CredentialProviderType, CredentialStore, CustomCredentialConfig, InkeepCredentialProvider, KeychainCredentialConfig, MemoryCredentialConfig, NangoCredentialConfig, createCredentialProvider } from "./credential-provider.js";
15
14
  import { CredentialReference, ExtractCredentialIds, UnionCredentialIds, credentialRef, isCredentialReference } from "./credential-ref.js";
16
15
  import { createEnvironmentSettings, registerEnvironmentSettings } from "./environment-settings.js";
@@ -20,4 +19,4 @@ import { Runner, raceAgents, run, stream } from "./runner.js";
20
19
  import { loadSkills } from "./skill-loader.js";
21
20
  import { ConsoleTelemetryProvider, InkeepTelemetryProvider, NoOpTelemetryProvider, OpenTelemetryConfig, SpanOptions, SpanStatus, SpanStatusType, TelemetryConfig, TelemetryLogger, TelemetryMetrics, TelemetryProvider, TelemetrySpan, TelemetryTracer, createConsoleTelemetryProvider, createNoOpTelemetryProvider, createOpenTelemetryProvider, getGlobalTelemetryProvider, setGlobalTelemetryProvider } from "./telemetry-provider.js";
22
21
  import { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS, SignatureSource, SignatureVerificationConfig, SignedComponent } from "@inkeep/agents-core";
23
- 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, type ProjectConfig, RequestSchemaConfig, RequestSchemaDefinition, RunResult, Runner, ScheduledTrigger, type ScheduledTriggerConfig, type ScheduledTriggerInterface, ServerConfig, type SignatureSource, type SignatureVerificationConfig, type SignedComponent, SkillDefinition, SkillReference, 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, loadSkills, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, scheduledTrigger, setGlobalTelemetryProvider, statusComponent, stream, subAgent, subAgentExternalAgentInterface, subAgentTeamAgentInterface, transfer, trigger, updateFullProjectViaAPI };
22
+ 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, type ProjectConfig, RequestSchemaConfig, RequestSchemaDefinition, RunResult, Runner, ServerConfig, type SignatureSource, type SignatureVerificationConfig, type SignedComponent, SkillDefinition, SkillReference, 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, loadSkills, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, setGlobalTelemetryProvider, statusComponent, stream, subAgent, subAgentExternalAgentInterface, subAgentTeamAgentInterface, transfer, trigger, updateFullProjectViaAPI };
package/dist/index.js CHANGED
@@ -3,12 +3,11 @@ import { FunctionTool } from "./function-tool.js";
3
3
  import { ArtifactComponent } from "./artifact-component.js";
4
4
  import { DataComponent } from "./data-component.js";
5
5
  import { Project } from "./project.js";
6
- import { ScheduledTrigger } from "./scheduled-trigger.js";
7
6
  import { StatusComponent } from "./status-component.js";
8
7
  import { Tool } from "./tool.js";
9
8
  import { SubAgent } from "./subAgent.js";
10
9
  import { Trigger } from "./trigger.js";
11
- import { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, scheduledTrigger, statusComponent, subAgent, trigger } from "./builderFunctions.js";
10
+ import { agent, agentMcp, artifactComponent, credential, dataComponent, functionTool, mcpServer, mcpTool, project, statusComponent, subAgent, trigger } from "./builderFunctions.js";
12
11
  import { transfer } from "./builders.js";
13
12
  import { InkeepCredentialProvider, createCredentialProvider } from "./credential-provider.js";
14
13
  import { credentialRef, isCredentialReference } from "./credential-ref.js";
@@ -20,4 +19,4 @@ import { loadSkills } from "./skill-loader.js";
20
19
  import { ConsoleTelemetryProvider, InkeepTelemetryProvider, NoOpTelemetryProvider, SpanStatus, createConsoleTelemetryProvider, createNoOpTelemetryProvider, createOpenTelemetryProvider, getGlobalTelemetryProvider, setGlobalTelemetryProvider } from "./telemetry-provider.js";
21
20
  import { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from "@inkeep/agents-core";
22
21
 
23
- export { ANTHROPIC_MODELS, ArtifactComponent, ConsoleTelemetryProvider, DataComponent, EvaluationClient, ExternalAgent, FunctionTool, GOOGLE_MODELS, InkeepCredentialProvider, InkeepTelemetryProvider, NoOpTelemetryProvider, OPENAI_MODELS, Project, Runner, ScheduledTrigger, SpanStatus, StatusComponent, SubAgent, Tool, Trigger, agent, agentMcp, artifactComponent, createConsoleTelemetryProvider, createCredentialProvider, createEnvironmentSettings, createFullProjectViaAPI, createNoOpTelemetryProvider, createOpenTelemetryProvider, credential, credentialRef, dataComponent, deleteFullProjectViaAPI, evaluationClient, externalAgent, externalAgents, functionTool, getFullProjectViaAPI, getGlobalTelemetryProvider, isCredentialReference, loadSkills, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, scheduledTrigger, setGlobalTelemetryProvider, statusComponent, stream, subAgent, transfer, trigger, updateFullProjectViaAPI };
22
+ export { ANTHROPIC_MODELS, ArtifactComponent, ConsoleTelemetryProvider, DataComponent, EvaluationClient, ExternalAgent, FunctionTool, GOOGLE_MODELS, InkeepCredentialProvider, InkeepTelemetryProvider, NoOpTelemetryProvider, OPENAI_MODELS, Project, Runner, SpanStatus, StatusComponent, SubAgent, Tool, Trigger, agent, agentMcp, artifactComponent, createConsoleTelemetryProvider, createCredentialProvider, createEnvironmentSettings, createFullProjectViaAPI, createNoOpTelemetryProvider, createOpenTelemetryProvider, credential, credentialRef, dataComponent, deleteFullProjectViaAPI, evaluationClient, externalAgent, externalAgents, functionTool, getFullProjectViaAPI, getGlobalTelemetryProvider, isCredentialReference, loadSkills, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, setGlobalTelemetryProvider, statusComponent, stream, subAgent, transfer, trigger, updateFullProjectViaAPI };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ScheduledTriggerInterface } from "./scheduled-trigger.js";
2
1
  import { TriggerInterface } from "./trigger.js";
3
2
  import { ArtifactComponentInterface } from "./artifact-component.js";
4
3
  import { Tool } from "./tool.js";
@@ -213,7 +212,6 @@ interface AgentConfig {
213
212
  };
214
213
  statusUpdates?: StatusUpdateSettings;
215
214
  triggers?: () => TriggerInterface[];
216
- scheduledTriggers?: () => ScheduledTriggerInterface[];
217
215
  }
218
216
  declare class AgentError extends Error {
219
217
  code?: string | undefined;
@@ -321,4 +319,4 @@ interface BuilderAgentConfig {
321
319
  relations?: BuilderRelationConfig[];
322
320
  }
323
321
  //#endregion
324
- 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, type ScheduledTriggerInterface, ServerConfig, SkillDefinition, SkillReference, StreamEvent, StreamResponse, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, type TriggerInterface, UserMessage, subAgentExternalAgentInterface, subAgentTeamAgentInterface };
322
+ 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, SkillDefinition, SkillReference, 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.62.2",
3
+ "version": "0.63.1",
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",
@@ -17,7 +17,7 @@
17
17
  "js-yaml": "^4.1.0",
18
18
  "typescript": "^6.0.2",
19
19
  "zod": "^4.3.6",
20
- "@inkeep/agents-core": "^0.62.2"
20
+ "@inkeep/agents-core": "^0.63.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/js-yaml": "^4.0.9",
@@ -1,43 +0,0 @@
1
- import { ScheduledTriggerApiInsert } from "@inkeep/agents-core";
2
-
3
- //#region src/scheduled-trigger.d.ts
4
- type ScheduledTriggerConfig = Omit<ScheduledTriggerApiInsert, "id"> & {
5
- id?: string;
6
- };
7
- interface ScheduledTriggerInterface {
8
- getId(): string;
9
- getName(): string;
10
- getConfig(): Omit<ScheduledTriggerApiInsert, "id"> & {
11
- id: string;
12
- };
13
- with(config: Partial<ScheduledTriggerConfig>): ScheduledTrigger;
14
- }
15
- declare class ScheduledTrigger implements ScheduledTriggerInterface {
16
- private config;
17
- private id;
18
- constructor(config: ScheduledTriggerConfig);
19
- getId(): string;
20
- getName(): string;
21
- getConfig(): Omit<ScheduledTriggerApiInsert, "id"> & {
22
- id: string;
23
- };
24
- /**
25
- * Creates a new ScheduledTrigger with the given configuration overrides.
26
- *
27
- * @param config - Partial configuration to override
28
- * @returns A new ScheduledTrigger instance with the merged configuration
29
- *
30
- * @example
31
- * ```typescript
32
- * const trigger = new ScheduledTrigger({
33
- * name: 'Daily Report',
34
- * cronExpression: '0 9 * * *',
35
- * messageTemplate: 'Generate daily report for {{date}}',
36
- * });
37
- * const disabled = trigger.with({ enabled: false });
38
- * ```
39
- */
40
- with(config: Partial<ScheduledTriggerConfig>): ScheduledTrigger;
41
- }
42
- //#endregion
43
- export { ScheduledTrigger, ScheduledTriggerConfig, ScheduledTriggerInterface };
@@ -1,56 +0,0 @@
1
- import { generateIdFromName } from "./utils/generateIdFromName.js";
2
- import { getLogger } from "@inkeep/agents-core";
3
-
4
- //#region src/scheduled-trigger.ts
5
- const logger = getLogger("scheduled-trigger");
6
- var ScheduledTrigger = class ScheduledTrigger {
7
- config;
8
- id;
9
- constructor(config) {
10
- this.id = config.id || generateIdFromName(config.name);
11
- this.config = {
12
- ...config,
13
- id: this.id
14
- };
15
- logger.info({
16
- scheduledTriggerId: this.getId(),
17
- scheduledTriggerName: config.name,
18
- cronExpression: config.cronExpression,
19
- runAt: config.runAt
20
- }, "ScheduledTrigger constructor initialized");
21
- }
22
- getId() {
23
- return this.id;
24
- }
25
- getName() {
26
- return this.config.name;
27
- }
28
- getConfig() {
29
- return this.config;
30
- }
31
- /**
32
- * Creates a new ScheduledTrigger with the given configuration overrides.
33
- *
34
- * @param config - Partial configuration to override
35
- * @returns A new ScheduledTrigger instance with the merged configuration
36
- *
37
- * @example
38
- * ```typescript
39
- * const trigger = new ScheduledTrigger({
40
- * name: 'Daily Report',
41
- * cronExpression: '0 9 * * *',
42
- * messageTemplate: 'Generate daily report for {{date}}',
43
- * });
44
- * const disabled = trigger.with({ enabled: false });
45
- * ```
46
- */
47
- with(config) {
48
- return new ScheduledTrigger({
49
- ...this.config,
50
- ...config
51
- });
52
- }
53
- };
54
-
55
- //#endregion
56
- export { ScheduledTrigger };