@librechat/agents 3.1.67 → 3.1.68-dev.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/cjs/agents/AgentContext.cjs +23 -3
- package/dist/cjs/agents/AgentContext.cjs.map +1 -1
- package/dist/cjs/common/enum.cjs +16 -0
- package/dist/cjs/common/enum.cjs.map +1 -1
- package/dist/cjs/graphs/Graph.cjs +91 -0
- package/dist/cjs/graphs/Graph.cjs.map +1 -1
- package/dist/cjs/graphs/MultiAgentGraph.cjs +36 -0
- package/dist/cjs/graphs/MultiAgentGraph.cjs.map +1 -1
- package/dist/cjs/hooks/HookRegistry.cjs +162 -0
- package/dist/cjs/hooks/HookRegistry.cjs.map +1 -0
- package/dist/cjs/hooks/executeHooks.cjs +276 -0
- package/dist/cjs/hooks/executeHooks.cjs.map +1 -0
- package/dist/cjs/hooks/matchers.cjs +256 -0
- package/dist/cjs/hooks/matchers.cjs.map +1 -0
- package/dist/cjs/hooks/types.cjs +27 -0
- package/dist/cjs/hooks/types.cjs.map +1 -0
- package/dist/cjs/main.cjs +54 -0
- package/dist/cjs/main.cjs.map +1 -1
- package/dist/cjs/messages/format.cjs +74 -12
- package/dist/cjs/messages/format.cjs.map +1 -1
- package/dist/cjs/run.cjs +111 -0
- package/dist/cjs/run.cjs.map +1 -1
- package/dist/cjs/summarization/index.cjs +41 -0
- package/dist/cjs/summarization/index.cjs.map +1 -1
- package/dist/cjs/summarization/node.cjs +165 -19
- package/dist/cjs/summarization/node.cjs.map +1 -1
- package/dist/cjs/tools/BashExecutor.cjs +175 -0
- package/dist/cjs/tools/BashExecutor.cjs.map +1 -0
- package/dist/cjs/tools/BashProgrammaticToolCalling.cjs +296 -0
- package/dist/cjs/tools/BashProgrammaticToolCalling.cjs.map +1 -0
- package/dist/cjs/tools/ReadFile.cjs +43 -0
- package/dist/cjs/tools/ReadFile.cjs.map +1 -0
- package/dist/cjs/tools/SkillTool.cjs +50 -0
- package/dist/cjs/tools/SkillTool.cjs.map +1 -0
- package/dist/cjs/tools/SubagentTool.cjs +92 -0
- package/dist/cjs/tools/SubagentTool.cjs.map +1 -0
- package/dist/cjs/tools/ToolNode.cjs +304 -140
- package/dist/cjs/tools/ToolNode.cjs.map +1 -1
- package/dist/cjs/tools/skillCatalog.cjs +84 -0
- package/dist/cjs/tools/skillCatalog.cjs.map +1 -0
- package/dist/cjs/tools/subagent/SubagentExecutor.cjs +511 -0
- package/dist/cjs/tools/subagent/SubagentExecutor.cjs.map +1 -0
- package/dist/esm/agents/AgentContext.mjs +23 -3
- package/dist/esm/agents/AgentContext.mjs.map +1 -1
- package/dist/esm/common/enum.mjs +15 -1
- package/dist/esm/common/enum.mjs.map +1 -1
- package/dist/esm/graphs/Graph.mjs +91 -0
- package/dist/esm/graphs/Graph.mjs.map +1 -1
- package/dist/esm/graphs/MultiAgentGraph.mjs +36 -0
- package/dist/esm/graphs/MultiAgentGraph.mjs.map +1 -1
- package/dist/esm/hooks/HookRegistry.mjs +160 -0
- package/dist/esm/hooks/HookRegistry.mjs.map +1 -0
- package/dist/esm/hooks/executeHooks.mjs +273 -0
- package/dist/esm/hooks/executeHooks.mjs.map +1 -0
- package/dist/esm/hooks/matchers.mjs +251 -0
- package/dist/esm/hooks/matchers.mjs.map +1 -0
- package/dist/esm/hooks/types.mjs +25 -0
- package/dist/esm/hooks/types.mjs.map +1 -0
- package/dist/esm/main.mjs +13 -2
- package/dist/esm/main.mjs.map +1 -1
- package/dist/esm/messages/format.mjs +66 -4
- package/dist/esm/messages/format.mjs.map +1 -1
- package/dist/esm/run.mjs +111 -0
- package/dist/esm/run.mjs.map +1 -1
- package/dist/esm/summarization/index.mjs +41 -1
- package/dist/esm/summarization/index.mjs.map +1 -1
- package/dist/esm/summarization/node.mjs +165 -19
- package/dist/esm/summarization/node.mjs.map +1 -1
- package/dist/esm/tools/BashExecutor.mjs +169 -0
- package/dist/esm/tools/BashExecutor.mjs.map +1 -0
- package/dist/esm/tools/BashProgrammaticToolCalling.mjs +287 -0
- package/dist/esm/tools/BashProgrammaticToolCalling.mjs.map +1 -0
- package/dist/esm/tools/ReadFile.mjs +38 -0
- package/dist/esm/tools/ReadFile.mjs.map +1 -0
- package/dist/esm/tools/SkillTool.mjs +45 -0
- package/dist/esm/tools/SkillTool.mjs.map +1 -0
- package/dist/esm/tools/SubagentTool.mjs +85 -0
- package/dist/esm/tools/SubagentTool.mjs.map +1 -0
- package/dist/esm/tools/ToolNode.mjs +306 -142
- package/dist/esm/tools/ToolNode.mjs.map +1 -1
- package/dist/esm/tools/skillCatalog.mjs +82 -0
- package/dist/esm/tools/skillCatalog.mjs.map +1 -0
- package/dist/esm/tools/subagent/SubagentExecutor.mjs +505 -0
- package/dist/esm/tools/subagent/SubagentExecutor.mjs.map +1 -0
- package/dist/types/agents/AgentContext.d.ts +6 -0
- package/dist/types/common/enum.d.ts +10 -1
- package/dist/types/graphs/Graph.d.ts +2 -0
- package/dist/types/graphs/MultiAgentGraph.d.ts +12 -0
- package/dist/types/hooks/HookRegistry.d.ts +56 -0
- package/dist/types/hooks/executeHooks.d.ts +79 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/matchers.d.ts +95 -0
- package/dist/types/hooks/types.d.ts +320 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/messages/format.d.ts +2 -1
- package/dist/types/run.d.ts +1 -0
- package/dist/types/summarization/index.d.ts +2 -0
- package/dist/types/summarization/node.d.ts +2 -0
- package/dist/types/tools/BashExecutor.d.ts +45 -0
- package/dist/types/tools/BashProgrammaticToolCalling.d.ts +72 -0
- package/dist/types/tools/ReadFile.d.ts +28 -0
- package/dist/types/tools/SkillTool.d.ts +40 -0
- package/dist/types/tools/SubagentTool.d.ts +36 -0
- package/dist/types/tools/ToolNode.d.ts +24 -2
- package/dist/types/tools/skillCatalog.d.ts +19 -0
- package/dist/types/tools/subagent/SubagentExecutor.d.ts +137 -0
- package/dist/types/tools/subagent/index.d.ts +2 -0
- package/dist/types/types/graph.d.ts +61 -2
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/run.d.ts +20 -0
- package/dist/types/types/skill.d.ts +9 -0
- package/dist/types/types/tools.d.ts +38 -1
- package/package.json +5 -1
- package/src/agents/AgentContext.ts +26 -2
- package/src/common/enum.ts +15 -0
- package/src/graphs/Graph.ts +113 -0
- package/src/graphs/MultiAgentGraph.ts +39 -0
- package/src/graphs/__tests__/MultiAgentGraph.test.ts +91 -0
- package/src/hooks/HookRegistry.ts +208 -0
- package/src/hooks/__tests__/HookRegistry.test.ts +190 -0
- package/src/hooks/__tests__/compactHooks.test.ts +214 -0
- package/src/hooks/__tests__/executeHooks.test.ts +1013 -0
- package/src/hooks/__tests__/integration.test.ts +337 -0
- package/src/hooks/__tests__/matchers.test.ts +238 -0
- package/src/hooks/__tests__/toolHooks.test.ts +669 -0
- package/src/hooks/executeHooks.ts +375 -0
- package/src/hooks/index.ts +57 -0
- package/src/hooks/matchers.ts +280 -0
- package/src/hooks/types.ts +404 -0
- package/src/index.ts +10 -0
- package/src/messages/format.ts +74 -4
- package/src/messages/formatAgentMessages.skills.test.ts +334 -0
- package/src/run.ts +126 -0
- package/src/scripts/multi-agent-subagent.ts +246 -0
- package/src/scripts/subagent-event-driven-debug.ts +190 -0
- package/src/scripts/subagent-tools-debug.ts +160 -0
- package/src/specs/subagent.test.ts +305 -0
- package/src/summarization/__tests__/node.test.ts +42 -0
- package/src/summarization/__tests__/trigger.test.ts +100 -1
- package/src/summarization/index.ts +47 -0
- package/src/summarization/node.ts +202 -24
- package/src/tools/BashExecutor.ts +205 -0
- package/src/tools/BashProgrammaticToolCalling.ts +397 -0
- package/src/tools/ReadFile.ts +39 -0
- package/src/tools/SkillTool.ts +46 -0
- package/src/tools/SubagentTool.ts +100 -0
- package/src/tools/ToolNode.ts +391 -169
- package/src/tools/__tests__/ReadFile.test.ts +44 -0
- package/src/tools/__tests__/SkillTool.test.ts +442 -0
- package/src/tools/__tests__/SubagentExecutor.test.ts +1148 -0
- package/src/tools/__tests__/SubagentTool.test.ts +149 -0
- package/src/tools/__tests__/ToolNode.session.test.ts +12 -12
- package/src/tools/__tests__/skillCatalog.test.ts +161 -0
- package/src/tools/__tests__/subagentHooks.test.ts +215 -0
- package/src/tools/skillCatalog.ts +126 -0
- package/src/tools/subagent/SubagentExecutor.ts +676 -0
- package/src/tools/subagent/index.ts +13 -0
- package/src/types/graph.ts +80 -1
- package/src/types/index.ts +1 -0
- package/src/types/run.ts +20 -0
- package/src/types/skill.ts +11 -0
- package/src/types/tools.ts +41 -1
package/src/types/graph.ts
CHANGED
|
@@ -18,7 +18,13 @@ import type {
|
|
|
18
18
|
import type { RunnableConfig, Runnable } from '@langchain/core/runnables';
|
|
19
19
|
import type { ChatGenerationChunk } from '@langchain/core/outputs';
|
|
20
20
|
import type { GoogleAIToolType } from '@langchain/google-common';
|
|
21
|
-
import type {
|
|
21
|
+
import type {
|
|
22
|
+
ToolMap,
|
|
23
|
+
ToolEndEvent,
|
|
24
|
+
GenericTool,
|
|
25
|
+
LCTool,
|
|
26
|
+
ToolExecuteBatchRequest,
|
|
27
|
+
} from '@/types/tools';
|
|
22
28
|
import type { Providers, Callback, GraphNodeKeys } from '@/common';
|
|
23
29
|
import type { StandardGraph, MultiAgentGraph } from '@/graphs';
|
|
24
30
|
import type { ClientOptions } from '@/types/llm';
|
|
@@ -105,7 +111,9 @@ export interface EventHandler {
|
|
|
105
111
|
| SummarizeStartEvent
|
|
106
112
|
| SummarizeDeltaEvent
|
|
107
113
|
| SummarizeCompleteEvent
|
|
114
|
+
| SubagentUpdateEvent
|
|
108
115
|
| AgentLogEvent
|
|
116
|
+
| ToolExecuteBatchRequest
|
|
109
117
|
| { result: ToolEndEvent },
|
|
110
118
|
metadata?: Record<string, unknown>,
|
|
111
119
|
graph?: StandardGraph | MultiAgentGraph
|
|
@@ -388,6 +396,73 @@ export type MultiAgentGraphInput = StandardGraphInput & {
|
|
|
388
396
|
edges: GraphEdge[];
|
|
389
397
|
};
|
|
390
398
|
|
|
399
|
+
/** Configuration for a subagent type that can be spawned by a parent agent. */
|
|
400
|
+
export type SubagentConfig = {
|
|
401
|
+
/** Identifier used in the tool's `subagent_type` enum (e.g. 'researcher', 'coder'). */
|
|
402
|
+
type: string;
|
|
403
|
+
/** Human-readable display name. */
|
|
404
|
+
name: string;
|
|
405
|
+
/** What this subagent specializes in — shown to the LLM. */
|
|
406
|
+
description: string;
|
|
407
|
+
/** Full agent config for the child graph. Omit when `self` is true. */
|
|
408
|
+
agentInputs?: AgentInputs;
|
|
409
|
+
/** When true, reuse the parent's AgentInputs (context isolation without separate config). */
|
|
410
|
+
self?: boolean;
|
|
411
|
+
/** Max AGENT→TOOLS cycles before forced stop (default: 25). */
|
|
412
|
+
maxTurns?: number;
|
|
413
|
+
/** Allow this subagent to spawn its own subagents (default: false). */
|
|
414
|
+
allowNested?: boolean;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
/** SubagentConfig with agentInputs guaranteed present (self-spawn resolved). */
|
|
418
|
+
export type ResolvedSubagentConfig = SubagentConfig & {
|
|
419
|
+
agentInputs: AgentInputs;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/** Lifecycle phase carried on {@link SubagentUpdateEvent}. */
|
|
423
|
+
export type SubagentUpdatePhase =
|
|
424
|
+
| 'start'
|
|
425
|
+
| 'run_step'
|
|
426
|
+
| 'run_step_delta'
|
|
427
|
+
| 'run_step_completed'
|
|
428
|
+
| 'message_delta'
|
|
429
|
+
| 'reasoning_delta'
|
|
430
|
+
| 'stop'
|
|
431
|
+
| 'error';
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Wrapper event emitted when a subagent's child graph dispatches activity.
|
|
435
|
+
* Lets hosts show subagent progress in a UI surface separate from the parent
|
|
436
|
+
* conversation without having to untangle events by agent ID.
|
|
437
|
+
*/
|
|
438
|
+
export interface SubagentUpdateEvent {
|
|
439
|
+
/** Parent run ID. */
|
|
440
|
+
runId: string;
|
|
441
|
+
/** Child run ID (unique per subagent execution). */
|
|
442
|
+
subagentRunId: string;
|
|
443
|
+
/**
|
|
444
|
+
* Parent-side `tool_call_id` for the `subagent` tool invocation that
|
|
445
|
+
* triggered this run. Stable for the duration of the child; lets hosts
|
|
446
|
+
* correlate updates deterministically instead of inferring by ordering.
|
|
447
|
+
* Omitted when the executor was invoked outside of a tool-call context.
|
|
448
|
+
*/
|
|
449
|
+
parentToolCallId?: string;
|
|
450
|
+
/** Subagent `type` identifier from the SubagentConfig. */
|
|
451
|
+
subagentType: string;
|
|
452
|
+
/** Child agent ID assigned to this subagent execution. */
|
|
453
|
+
subagentAgentId: string;
|
|
454
|
+
/** Parent agent ID that spawned this subagent. */
|
|
455
|
+
parentAgentId?: string;
|
|
456
|
+
/** Lifecycle phase carried by this update. */
|
|
457
|
+
phase: SubagentUpdatePhase;
|
|
458
|
+
/** Underlying event payload (shape depends on phase). */
|
|
459
|
+
data?: unknown;
|
|
460
|
+
/** Short human-readable description. Hosts can render this directly. */
|
|
461
|
+
label?: string;
|
|
462
|
+
/** ISO timestamp for ordering / display. */
|
|
463
|
+
timestamp: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
391
466
|
export interface AgentInputs {
|
|
392
467
|
agentId: string;
|
|
393
468
|
/** Human-readable name for the agent (used in handoff context). Defaults to agentId if not provided. */
|
|
@@ -431,6 +506,10 @@ export interface AgentInputs {
|
|
|
431
506
|
maxToolResultChars?: number;
|
|
432
507
|
/** Pre-computed tool schema token count (from cache). Skips recalculation when provided. */
|
|
433
508
|
toolSchemaTokens?: number;
|
|
509
|
+
/** Subagent configurations for hierarchical delegation. Each defines a child agent type. */
|
|
510
|
+
subagentConfigs?: SubagentConfig[];
|
|
511
|
+
/** Maximum subagent nesting depth. Default 1 means top-level agents can spawn subagents but subagents cannot nest further. */
|
|
512
|
+
maxSubagentDepth?: number;
|
|
434
513
|
}
|
|
435
514
|
|
|
436
515
|
export interface ContextPruningConfig {
|
package/src/types/index.ts
CHANGED
package/src/types/run.ts
CHANGED
|
@@ -11,6 +11,8 @@ import type * as s from '@/types/stream';
|
|
|
11
11
|
import type * as e from '@/common/enum';
|
|
12
12
|
import type * as g from '@/types/graph';
|
|
13
13
|
import type * as l from '@/types/llm';
|
|
14
|
+
import type { ToolSessionMap } from '@/types/tools';
|
|
15
|
+
import type { HookRegistry } from '@/hooks';
|
|
14
16
|
|
|
15
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
18
|
export type ZodObjectAny = z.ZodObject<any, any, any, any>;
|
|
@@ -112,6 +114,18 @@ export type RunConfig = {
|
|
|
112
114
|
runId: string;
|
|
113
115
|
graphConfig: LegacyGraphConfig | StandardGraphConfig | MultiAgentGraphConfig;
|
|
114
116
|
customHandlers?: Record<string, g.EventHandler>;
|
|
117
|
+
/**
|
|
118
|
+
* Pre-constructed hook registry for this run. Hooks fire at lifecycle
|
|
119
|
+
* points in `processStream` (RunStart, UserPromptSubmit, Stop,
|
|
120
|
+
* StopFailure) and around tool calls (PreToolUse, PostToolUse,
|
|
121
|
+
* PostToolUseFailure, PermissionDenied).
|
|
122
|
+
*
|
|
123
|
+
* Pass `undefined` (the default) to skip all hook dispatch. When a
|
|
124
|
+
* registry is provided, the run attaches it to the `Graph` so internal
|
|
125
|
+
* nodes can fire hooks too, and clears the session in the `finally`
|
|
126
|
+
* block to prevent leaks.
|
|
127
|
+
*/
|
|
128
|
+
hooks?: HookRegistry;
|
|
115
129
|
returnContent?: boolean;
|
|
116
130
|
tokenCounter?: TokenCounter;
|
|
117
131
|
indexTokenCountMap?: Record<string, number>;
|
|
@@ -126,6 +140,12 @@ export type RunConfig = {
|
|
|
126
140
|
calibrationRatio?: number;
|
|
127
141
|
/** Skip post-stream cleanup (clearHeavyState) — useful for tests that inspect graph state after processStream */
|
|
128
142
|
skipCleanup?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Initial session state to seed the Graph's ToolSessionMap.
|
|
145
|
+
* Used to carry over code environment sessions from skill file priming
|
|
146
|
+
* at run start, so ToolNode can inject session_id + files into tool calls.
|
|
147
|
+
*/
|
|
148
|
+
initialSessions?: ToolSessionMap;
|
|
129
149
|
};
|
|
130
150
|
|
|
131
151
|
export type ProvidedCallbacks =
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/types/skill.ts
|
|
2
|
+
|
|
3
|
+
/** Minimal skill metadata for catalog assembly. The host provides these from its own data layer. */
|
|
4
|
+
export type SkillCatalogEntry = {
|
|
5
|
+
/** Kebab-case identifier (what the model passes to SkillTool) */
|
|
6
|
+
name: string;
|
|
7
|
+
/** One-line description for the catalog listing */
|
|
8
|
+
description: string;
|
|
9
|
+
/** Optional human-readable label (UI only, not shown to model) */
|
|
10
|
+
displayTitle?: string;
|
|
11
|
+
};
|
package/src/types/tools.ts
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import type { StructuredToolInterface } from '@langchain/core/tools';
|
|
3
3
|
import type { RunnableToolLike } from '@langchain/core/runnables';
|
|
4
4
|
import type { ToolCall } from '@langchain/core/messages/tool';
|
|
5
|
-
import type {
|
|
5
|
+
import type { HookRegistry } from '@/hooks';
|
|
6
|
+
import type { MessageContentComplex, ToolErrorData } from './stream';
|
|
6
7
|
import { EnvVar } from '@/common';
|
|
7
8
|
|
|
8
9
|
/** Replacement type for `import type { ToolCall } from '@langchain/core/messages/tool'` in order to have stringified args typed */
|
|
@@ -49,6 +50,12 @@ export type ToolNodeOptions = {
|
|
|
49
50
|
agentId?: string;
|
|
50
51
|
/** Tool names that must be executed directly (via runTool) even in event-driven mode (e.g., graph-managed handoff tools) */
|
|
51
52
|
directToolNames?: Set<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Hook registry for PreToolUse/PostToolUse lifecycle hooks.
|
|
55
|
+
* Only fires for event-driven tool calls (`dispatchToolEvents`). Tools
|
|
56
|
+
* routed through `directToolNames` bypass hook dispatch entirely.
|
|
57
|
+
*/
|
|
58
|
+
hookRegistry?: HookRegistry;
|
|
52
59
|
/** Max context tokens for the agent — used to compute tool result truncation limits. */
|
|
53
60
|
maxContextTokens?: number;
|
|
54
61
|
/**
|
|
@@ -186,6 +193,26 @@ export type ToolExecuteBatchRequest = {
|
|
|
186
193
|
reject: (error: Error) => void;
|
|
187
194
|
};
|
|
188
195
|
|
|
196
|
+
/**
|
|
197
|
+
* A message injected into graph state by any tool execution handler.
|
|
198
|
+
* Generic mechanism: any tool returning `injectedMessages` in its `ToolExecuteResult`
|
|
199
|
+
* will have these appended to state after the ToolMessage for this call.
|
|
200
|
+
*/
|
|
201
|
+
export type InjectedMessage = {
|
|
202
|
+
/** 'user' for skill body injection, 'system' for context hints.
|
|
203
|
+
* Both are converted to HumanMessage at runtime; the original role
|
|
204
|
+
* is preserved in additional_kwargs.role. */
|
|
205
|
+
role: 'user' | 'system';
|
|
206
|
+
/** Message content: string for simple text, array for complex multi-part content */
|
|
207
|
+
content: string | MessageContentComplex[];
|
|
208
|
+
/** When true, the message is framework-internal: not shown in UI, not counted as a user turn */
|
|
209
|
+
isMeta?: boolean;
|
|
210
|
+
/** Origin tag for downstream consumers (UI, pruner, compaction) */
|
|
211
|
+
source?: 'skill' | 'hook' | 'system';
|
|
212
|
+
/** Only set when source is 'skill', for compaction preservation */
|
|
213
|
+
skillName?: string;
|
|
214
|
+
};
|
|
215
|
+
|
|
189
216
|
/** Result for a single tool call in event-driven execution */
|
|
190
217
|
export type ToolExecuteResult = {
|
|
191
218
|
/** Matches ToolCallRequest.id */
|
|
@@ -198,6 +225,13 @@ export type ToolExecuteResult = {
|
|
|
198
225
|
status: 'success' | 'error';
|
|
199
226
|
/** Error message if status is 'error' */
|
|
200
227
|
errorMessage?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Messages to inject into graph state after the ToolMessage for this call.
|
|
230
|
+
* Placed after tool results to respect provider message ordering (tool_call -> tool_result adjacency).
|
|
231
|
+
* The host's message formatter may merge injected user messages with the preceding tool_result turn.
|
|
232
|
+
* Generic mechanism: any tool execution handler can use this.
|
|
233
|
+
*/
|
|
234
|
+
injectedMessages?: InjectedMessage[];
|
|
201
235
|
};
|
|
202
236
|
|
|
203
237
|
/** Map of tool names to tool definitions */
|
|
@@ -318,6 +352,12 @@ export type ProgrammaticExecutionArtifact = {
|
|
|
318
352
|
files?: FileRefs;
|
|
319
353
|
};
|
|
320
354
|
|
|
355
|
+
/** Parameters for creating a bash execution tool (same API as CodeExecutor, bash-only) */
|
|
356
|
+
export type BashExecutionToolParams = CodeExecutionToolParams;
|
|
357
|
+
|
|
358
|
+
/** Parameters for creating a bash programmatic tool calling tool (same API as PTC, bash-only) */
|
|
359
|
+
export type BashProgrammaticToolCallingParams = ProgrammaticToolCallingParams;
|
|
360
|
+
|
|
321
361
|
/**
|
|
322
362
|
* Initialization parameters for the PTC tool
|
|
323
363
|
*/
|