@memberjunction/ai-agents 6.3.0-edge.0 → 6.3.0-edge.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/README.md +8 -5
- package/dist/AgentDataPreloader.d.ts +9 -2
- package/dist/AgentDataPreloader.d.ts.map +1 -1
- package/dist/AgentDataPreloader.js +134 -15
- package/dist/AgentDataPreloader.js.map +1 -1
- package/dist/AgentDecisionService.d.ts +10 -1
- package/dist/AgentDecisionService.d.ts.map +1 -1
- package/dist/AgentDecisionService.js +28 -13
- package/dist/AgentDecisionService.js.map +1 -1
- package/dist/AgentRunner.d.ts +57 -15
- package/dist/AgentRunner.d.ts.map +1 -1
- package/dist/AgentRunner.js +692 -101
- package/dist/AgentRunner.js.map +1 -1
- package/dist/ArtifactToolManager.d.ts +134 -39
- package/dist/ArtifactToolManager.d.ts.map +1 -1
- package/dist/ArtifactToolManager.js +2761 -321
- package/dist/ArtifactToolManager.js.map +1 -1
- package/dist/GovernedArtifactService.d.ts +367 -0
- package/dist/GovernedArtifactService.d.ts.map +1 -0
- package/dist/GovernedArtifactService.js +2569 -0
- package/dist/GovernedArtifactService.js.map +1 -0
- package/dist/PayloadManager.d.ts +46 -0
- package/dist/PayloadManager.d.ts.map +1 -1
- package/dist/PayloadManager.js +284 -66
- package/dist/PayloadManager.js.map +1 -1
- package/dist/SkillMarkdownConverter.d.ts.map +1 -1
- package/dist/SkillMarkdownConverter.js +4 -2
- package/dist/SkillMarkdownConverter.js.map +1 -1
- package/dist/agent-context-injector.d.ts +2 -25
- package/dist/agent-context-injector.d.ts.map +1 -1
- package/dist/agent-context-injector.js +38 -153
- package/dist/agent-context-injector.js.map +1 -1
- package/dist/agent-instance.d.ts +28 -0
- package/dist/agent-instance.d.ts.map +1 -0
- package/dist/agent-instance.js +39 -0
- package/dist/agent-instance.js.map +1 -0
- package/dist/agent-memory-context-builder.d.ts.map +1 -1
- package/dist/agent-memory-context-builder.js +46 -42
- package/dist/agent-memory-context-builder.js.map +1 -1
- package/dist/agent-pre-execution-rag.d.ts.map +1 -1
- package/dist/agent-pre-execution-rag.js +5 -0
- package/dist/agent-pre-execution-rag.js.map +1 -1
- package/dist/agent-run-watchdog.d.ts +38 -6
- package/dist/agent-run-watchdog.d.ts.map +1 -1
- package/dist/agent-run-watchdog.js +75 -13
- package/dist/agent-run-watchdog.js.map +1 -1
- package/dist/agent-types/flow-agent-type.d.ts +6 -1
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +30 -7
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/loop-agent-type.d.ts +4 -0
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +29 -0
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/artifact-presence-locator.d.ts +132 -0
- package/dist/artifact-presence-locator.d.ts.map +1 -0
- package/dist/artifact-presence-locator.js +472 -0
- package/dist/artifact-presence-locator.js.map +1 -0
- package/dist/artifact-tools/CSVToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/CSVToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/CSVToolLibrary.js +41 -14
- package/dist/artifact-tools/CSVToolLibrary.js.map +1 -1
- package/dist/artifact-tools/DataSnapshotToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/DataSnapshotToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/DataSnapshotToolLibrary.js +53 -21
- package/dist/artifact-tools/DataSnapshotToolLibrary.js.map +1 -1
- package/dist/artifact-tools/DocumentToolLibrary.d.ts +101 -0
- package/dist/artifact-tools/DocumentToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/DocumentToolLibrary.js +1846 -0
- package/dist/artifact-tools/DocumentToolLibrary.js.map +1 -0
- package/dist/artifact-tools/DocxToolLibrary.d.ts +2 -4
- package/dist/artifact-tools/DocxToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/DocxToolLibrary.js +42 -30
- package/dist/artifact-tools/DocxToolLibrary.js.map +1 -1
- package/dist/artifact-tools/ExcelToolLibrary.d.ts +2 -3
- package/dist/artifact-tools/ExcelToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/ExcelToolLibrary.js +105 -49
- package/dist/artifact-tools/ExcelToolLibrary.js.map +1 -1
- package/dist/artifact-tools/GenericBinaryToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/GenericBinaryToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/GenericBinaryToolLibrary.js +3 -2
- package/dist/artifact-tools/GenericBinaryToolLibrary.js.map +1 -1
- package/dist/artifact-tools/JSONToolLibrary.d.ts +4 -4
- package/dist/artifact-tools/JSONToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/JSONToolLibrary.js +32 -11
- package/dist/artifact-tools/JSONToolLibrary.js.map +1 -1
- package/dist/artifact-tools/PDFToolLibrary.d.ts +27 -3
- package/dist/artifact-tools/PDFToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/PDFToolLibrary.js +36 -21
- package/dist/artifact-tools/PDFToolLibrary.js.map +1 -1
- package/dist/artifact-tools/SearchResultSetToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/SearchResultSetToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/SearchResultSetToolLibrary.js +83 -24
- package/dist/artifact-tools/SearchResultSetToolLibrary.js.map +1 -1
- package/dist/artifact-tools/SlideDeckToolLibrary.d.ts +50 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.js +1617 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.js.map +1 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.d.ts +87 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.js +3351 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.js.map +1 -0
- package/dist/artifact-tools/TextToolLibrary.d.ts +3 -3
- package/dist/artifact-tools/TextToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/TextToolLibrary.js +34 -24
- package/dist/artifact-tools/TextToolLibrary.js.map +1 -1
- package/dist/artifact-tools/WhiteboardToolLibrary.d.ts +69 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.js +555 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.js.map +1 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.d.ts +98 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.d.ts.map +1 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.js +851 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.js.map +1 -0
- package/dist/artifact-tools/artifact-tool-helpers.d.ts +21 -0
- package/dist/artifact-tools/artifact-tool-helpers.d.ts.map +1 -0
- package/dist/artifact-tools/artifact-tool-helpers.js +74 -0
- package/dist/artifact-tools/artifact-tool-helpers.js.map +1 -0
- package/dist/artifact-tools/grepHelper.d.ts +27 -0
- package/dist/artifact-tools/grepHelper.d.ts.map +1 -0
- package/dist/artifact-tools/grepHelper.js +229 -0
- package/dist/artifact-tools/grepHelper.js.map +1 -0
- package/dist/artifact-tools/node-vm-safe-regex.d.ts +10 -0
- package/dist/artifact-tools/node-vm-safe-regex.d.ts.map +1 -0
- package/dist/artifact-tools/node-vm-safe-regex.js +148 -0
- package/dist/artifact-tools/node-vm-safe-regex.js.map +1 -0
- package/dist/base-agent.d.ts +119 -14
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +529 -112
- package/dist/base-agent.js.map +1 -1
- package/dist/decision-discovery.d.ts +42 -15
- package/dist/decision-discovery.d.ts.map +1 -1
- package/dist/decision-discovery.js +90 -20
- package/dist/decision-discovery.js.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/memory-decision-uses.d.ts +206 -0
- package/dist/memory-decision-uses.d.ts.map +1 -0
- package/dist/memory-decision-uses.js +259 -0
- package/dist/memory-decision-uses.js.map +1 -0
- package/dist/memory-manager-agent.d.ts +66 -6
- package/dist/memory-manager-agent.d.ts.map +1 -1
- package/dist/memory-manager-agent.js +184 -31
- package/dist/memory-manager-agent.js.map +1 -1
- package/dist/memory-note-gate.d.ts +12 -9
- package/dist/memory-note-gate.d.ts.map +1 -1
- package/dist/memory-note-gate.js +16 -11
- package/dist/memory-note-gate.js.map +1 -1
- package/dist/native-tools/agent-tool-circuit-breaker.d.ts +44 -0
- package/dist/native-tools/agent-tool-circuit-breaker.d.ts.map +1 -0
- package/dist/native-tools/agent-tool-circuit-breaker.js +71 -0
- package/dist/native-tools/agent-tool-circuit-breaker.js.map +1 -0
- package/dist/native-tools/agent-tools.d.ts +7 -0
- package/dist/native-tools/agent-tools.d.ts.map +1 -1
- package/dist/native-tools/agent-tools.js.map +1 -1
- package/dist/native-tools/control-tools.d.ts +8 -1
- package/dist/native-tools/control-tools.d.ts.map +1 -1
- package/dist/native-tools/control-tools.js +38 -5
- package/dist/native-tools/control-tools.js.map +1 -1
- package/dist/native-tools/framework-tools.d.ts +3 -3
- package/dist/native-tools/framework-tools.d.ts.map +1 -1
- package/dist/native-tools/framework-tools.js +20 -8
- package/dist/native-tools/framework-tools.js.map +1 -1
- package/dist/payload-path-keys.d.ts +54 -0
- package/dist/payload-path-keys.d.ts.map +1 -0
- package/dist/payload-path-keys.js +126 -0
- package/dist/payload-path-keys.js.map +1 -0
- package/dist/pipeline/template.d.ts +9 -4
- package/dist/pipeline/template.d.ts.map +1 -1
- package/dist/pipeline/template.js +29 -30
- package/dist/pipeline/template.js.map +1 -1
- package/dist/realtime/artifact-workspace-channel-server.d.ts +27 -0
- package/dist/realtime/artifact-workspace-channel-server.d.ts.map +1 -0
- package/dist/realtime/artifact-workspace-channel-server.js +43 -0
- package/dist/realtime/artifact-workspace-channel-server.js.map +1 -0
- package/dist/realtime/bridge-realtime-session-factory.d.ts +2 -2
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +7 -56
- package/dist/realtime/bridge-realtime-session-factory.js.map +1 -1
- package/dist/realtime/realtime-artifact-helpers.d.ts +37 -0
- package/dist/realtime/realtime-artifact-helpers.d.ts.map +1 -0
- package/dist/realtime/realtime-artifact-helpers.js +150 -0
- package/dist/realtime/realtime-artifact-helpers.js.map +1 -0
- package/dist/realtime/realtime-client-session-service.d.ts +87 -17
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +259 -39
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts +22 -7
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +20 -22
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-moderator-decision.d.ts +86 -0
- package/dist/realtime/realtime-moderator-decision.d.ts.map +1 -0
- package/dist/realtime/realtime-moderator-decision.js +131 -0
- package/dist/realtime/realtime-moderator-decision.js.map +1 -0
- package/dist/realtime/realtime-tool-broker.d.ts +6 -0
- package/dist/realtime/realtime-tool-broker.d.ts.map +1 -1
- package/dist/realtime/realtime-tool-broker.js +4 -2
- package/dist/realtime/realtime-tool-broker.js.map +1 -1
- package/dist/realtime/realtime-turn-moderator.d.ts +20 -0
- package/dist/realtime/realtime-turn-moderator.d.ts.map +1 -1
- package/dist/realtime/realtime-turn-moderator.js +63 -8
- package/dist/realtime/realtime-turn-moderator.js.map +1 -1
- package/dist/repeated-failing-step.d.ts +50 -0
- package/dist/repeated-failing-step.d.ts.map +1 -0
- package/dist/repeated-failing-step.js +130 -0
- package/dist/repeated-failing-step.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -20
package/dist/AgentRunner.d.ts
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
* @fileoverview AgentRunner provides a thin wrapper for executing AI agents
|
|
3
3
|
* using the MemberJunction AI Agent framework.
|
|
4
4
|
*
|
|
5
|
-
* This module handles agent instantiation
|
|
6
|
-
* the
|
|
5
|
+
* This module handles agent instantiation through {@link CreateAgentInstance}, so the
|
|
6
|
+
* subclass named by the agent's own DriverClass runs (or the plain BaseAgent when it names none).
|
|
7
7
|
*
|
|
8
8
|
* @module @memberjunction/ai-agents
|
|
9
9
|
* @author MemberJunction.com
|
|
10
10
|
* @since 2.49.0
|
|
11
11
|
*/
|
|
12
12
|
import { UserInfo, IMetadataProvider } from '@memberjunction/core';
|
|
13
|
-
import { ExecuteAgentResult, ExecuteAgentParams, MediaOutput, FileOutputRef, MJAIAgentEntityExtended, AgentHandoffResult, AgentExecutionProgressCallback, AgentExecutionStreamingCallback } from '@memberjunction/ai-core-plus';
|
|
13
|
+
import { ExecuteAgentResult, ExecuteAgentParams, MediaOutput, FileOutputRef, InputArtifact, MJAIAgentEntityExtended, AgentHandoffResult, AgentExecutionProgressCallback, AgentExecutionStreamingCallback } from '@memberjunction/ai-core-plus';
|
|
14
14
|
import { AgentPresetSource } from '@memberjunction/ai-engine-base';
|
|
15
15
|
import { ArtifactTargetPlan } from './artifact-target-plan.js';
|
|
16
16
|
import { MJConversationDetailEntity, MJConversationDetailEntityExtended, MJAIAgentConfigurationEntity } from '@memberjunction/core-entities';
|
|
17
|
+
/** JSON-compatible primitive or structural value used internally by AgentRunner without falling back to `any`/`unknown`. */
|
|
18
|
+
type AgentRunnerJsonScalar = string | number | boolean | null | undefined;
|
|
19
|
+
type AgentRunnerJsonValue = AgentRunnerJsonScalar | AgentRunnerJsonValue[] | {
|
|
20
|
+
[key: string]: AgentRunnerJsonValue;
|
|
21
|
+
};
|
|
22
|
+
type AgentRunnerJsonObject = Record<string, AgentRunnerJsonValue>;
|
|
17
23
|
/**
|
|
18
24
|
* Identifies an artifact (and the version) that a run created.
|
|
19
25
|
*/
|
|
@@ -88,7 +94,7 @@ export interface FollowHandoffsHooks {
|
|
|
88
94
|
/**
|
|
89
95
|
* Input options for {@link AgentRunner.FollowHandoffs}.
|
|
90
96
|
*/
|
|
91
|
-
export interface FollowHandoffsInput<C =
|
|
97
|
+
export interface FollowHandoffsInput<C = object> {
|
|
92
98
|
params: ExecuteAgentParams<C>;
|
|
93
99
|
sourceResult: ExecuteAgentResult;
|
|
94
100
|
conversationId: string;
|
|
@@ -109,8 +115,8 @@ export interface FollowHandoffsInput<C = any> {
|
|
|
109
115
|
* AgentRunner provides a thin wrapper for executing AI agents.
|
|
110
116
|
*
|
|
111
117
|
* This class handles:
|
|
112
|
-
* -
|
|
113
|
-
* - Instantiating the
|
|
118
|
+
* - Checking the agent's type exists
|
|
119
|
+
* - Instantiating the agent's own class (CreateAgentInstance)
|
|
114
120
|
* - Passing through to the agent's Execute method
|
|
115
121
|
*
|
|
116
122
|
* @class AgentRunner
|
|
@@ -165,8 +171,8 @@ export declare class AgentRunner {
|
|
|
165
171
|
* Runs an AI agent with the specified parameters.
|
|
166
172
|
*
|
|
167
173
|
* This method acts as a thin pass-through that:
|
|
168
|
-
* 1.
|
|
169
|
-
* 2.
|
|
174
|
+
* 1. Checks the agent's type exists
|
|
175
|
+
* 2. Instantiates the agent's own class via CreateAgentInstance
|
|
170
176
|
* 3. Calls Execute on the agent instance and returns the result
|
|
171
177
|
*
|
|
172
178
|
* @param {ExecuteAgentParams} params - Parameters for agent execution (same as BaseAgent.Execute)
|
|
@@ -176,7 +182,7 @@ export declare class AgentRunner {
|
|
|
176
182
|
*
|
|
177
183
|
* @throws {Error} Throws if agent type loading fails or agent instantiation fails
|
|
178
184
|
*/
|
|
179
|
-
RunAgent<C =
|
|
185
|
+
RunAgent<C = object, R = AgentRunnerJsonObject>(params: ExecuteAgentParams<C>): Promise<ExecuteAgentResult<R>>;
|
|
180
186
|
/**
|
|
181
187
|
* Creates the reply row for an agent's turn on the server: `Role` `AI`, In-Progress, '⏳ Starting...', marked with
|
|
182
188
|
* `MarkServerAuthoredReply()` so the conversation detail gate accepts it. Only the server writes replies, so this is
|
|
@@ -234,7 +240,7 @@ export declare class AgentRunner {
|
|
|
234
240
|
* });
|
|
235
241
|
* ```
|
|
236
242
|
*/
|
|
237
|
-
RunAgentInConversation<C =
|
|
243
|
+
RunAgentInConversation<C = object, R = AgentRunnerJsonObject>(params: ExecuteAgentParams<C>, options: {
|
|
238
244
|
/** Optional existing conversation ID. If not provided, a new conversation will be created */
|
|
239
245
|
conversationId?: string;
|
|
240
246
|
/** Optional existing conversation detail ID. If provided, skips conversation/detail creation */
|
|
@@ -287,7 +293,7 @@ export declare class AgentRunner {
|
|
|
287
293
|
* Executes server-side handoff hops sequentially in the same turn while the active run's
|
|
288
294
|
* result carries a resolved `handoff`.
|
|
289
295
|
*/
|
|
290
|
-
FollowHandoffs<C =
|
|
296
|
+
FollowHandoffs<C = object>(input: FollowHandoffsInput<C>): Promise<HandoffHopOutcome[]>;
|
|
291
297
|
private findLatestHandoffStep;
|
|
292
298
|
private recordRefusedHandoffOnSource;
|
|
293
299
|
private updateSourceHandoffStepOutput;
|
|
@@ -450,7 +456,7 @@ export declare class AgentRunner {
|
|
|
450
456
|
* }
|
|
451
457
|
* ```
|
|
452
458
|
*/
|
|
453
|
-
ProcessAgentArtifacts<R>(agentResult: ExecuteAgentResult<R>, conversationDetailId: string | undefined, sourceArtifactId: string | undefined, contextUser: UserInfo, provider?: IMetadataProvider): Promise<{
|
|
459
|
+
ProcessAgentArtifacts<R = AgentRunnerJsonObject>(agentResult: ExecuteAgentResult<R>, conversationDetailId: string | undefined, sourceArtifactId: string | undefined, contextUser: UserInfo, provider?: IMetadataProvider): Promise<{
|
|
454
460
|
artifactId: string;
|
|
455
461
|
versionId: string;
|
|
456
462
|
versionNumber: number;
|
|
@@ -569,9 +575,44 @@ export declare class AgentRunner {
|
|
|
569
575
|
*/
|
|
570
576
|
protected VetArtifactVersionTarget(plan: Extract<ArtifactTargetPlan, {
|
|
571
577
|
kind: 'version';
|
|
572
|
-
}>, contextUser: UserInfo, md: IMetadataProvider, agentName: string | undefined, rejectedIds: Set<string
|
|
578
|
+
}>, contextUser: UserInfo, md: IMetadataProvider, agentName: string | undefined, rejectedIds: Set<string>, originLabel?: string): Promise<Extract<ArtifactTargetPlan, {
|
|
573
579
|
kind: 'version';
|
|
574
580
|
}> | null>;
|
|
581
|
+
/**
|
|
582
|
+
* Grants explicit `CanRead = true` on a newly forked artifact to the original source
|
|
583
|
+
* artifact's owner, the conversation's owner, and every distinct conversation participant (`D3`).
|
|
584
|
+
* Returns human-readable display names for any recipients whose grant could not be persisted
|
|
585
|
+
* (never raw user GUIDs).
|
|
586
|
+
*/
|
|
587
|
+
private grantForkedArtifactReadPermissions;
|
|
588
|
+
/**
|
|
589
|
+
* MIME type stamped on an agent payload version: its artifact type's `ContentType` when that is
|
|
590
|
+
* concrete, `null` when it is empty or a wildcard (`image/*`, `text/*`), since a wildcard is not
|
|
591
|
+
* a real MIME type.
|
|
592
|
+
*
|
|
593
|
+
* @param contentType - The artifact type's `ContentType`.
|
|
594
|
+
* @returns The MIME type to store, or `null`.
|
|
595
|
+
*/
|
|
596
|
+
static PayloadVersionMimeType(contentType: string | null | undefined): string | null;
|
|
597
|
+
/**
|
|
598
|
+
* Resolves the MIME type for a payload version from its artifact type (see
|
|
599
|
+
* {@link PayloadVersionMimeType}). Never throws: a lookup failure leaves the MIME type empty
|
|
600
|
+
* rather than failing the artifact.
|
|
601
|
+
*
|
|
602
|
+
* @param artifactTypeId - The artifact's `TypeID`, or `null` when unknown.
|
|
603
|
+
* @param contextUser - User the run executes as.
|
|
604
|
+
* @returns The MIME type to store, or `null`.
|
|
605
|
+
*/
|
|
606
|
+
protected ResolvePayloadVersionMimeType(artifactTypeId: string | null, contextUser: UserInfo): Promise<string | null>;
|
|
607
|
+
/**
|
|
608
|
+
* Reads an existing artifact's `TypeID`. Never throws.
|
|
609
|
+
*
|
|
610
|
+
* @param artifactId - The artifact being versioned.
|
|
611
|
+
* @param contextUser - User the run executes as.
|
|
612
|
+
* @param provider - Optional provider for the lookup.
|
|
613
|
+
* @returns The type id, or `null` when the artifact cannot be read.
|
|
614
|
+
*/
|
|
615
|
+
protected GetArtifactTypeIDForArtifact(artifactId: string, contextUser: UserInfo, provider?: IMetadataProvider): Promise<string | null>;
|
|
575
616
|
/**
|
|
576
617
|
* Creates the artifact header row. Name and description come from the agent's directive when
|
|
577
618
|
* it supplied them (e.g. Skip's artifactRequest); otherwise the historical placeholder.
|
|
@@ -773,7 +814,7 @@ export declare class AgentRunner {
|
|
|
773
814
|
* @param branchId The run's branch; only artifacts of messages on its path that no rerun
|
|
774
815
|
* replaced are gathered.
|
|
775
816
|
*/
|
|
776
|
-
|
|
817
|
+
protected gatherConversationArtifacts(conversationId: string, contextUser: UserInfo, historyFrom?: Date, branchId?: string | null, provider?: IMetadataProvider): Promise<InputArtifact[]>;
|
|
777
818
|
/**
|
|
778
819
|
* Data artifacts from some agents persist the SQL spec (columns +
|
|
779
820
|
* `metadata.sql`) but not the resulting rows — the rows are re-executed
|
|
@@ -815,6 +856,7 @@ export declare class AgentRunner {
|
|
|
815
856
|
* @param contextUser - User context for storage driver authentication
|
|
816
857
|
* @returns Buffer of file content, or null if download fails
|
|
817
858
|
*/
|
|
818
|
-
protected DownloadArtifactFileContent(fileId: string, contextUser: UserInfo): Promise<Buffer | null>;
|
|
859
|
+
protected DownloadArtifactFileContent(fileId: string, contextUser: UserInfo, provider?: IMetadataProvider): Promise<Buffer | null>;
|
|
819
860
|
}
|
|
861
|
+
export {};
|
|
820
862
|
//# sourceMappingURL=AgentRunner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRunner.d.ts","sourceRoot":"","sources":["../src/AgentRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAsG,QAAQ,EAAE,iBAAiB,EAAsC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