@librechat/agents 3.5.0 → 3.6.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.
Files changed (188) hide show
  1. package/dist/cjs/agents/AgentContext.cjs +5 -2
  2. package/dist/cjs/agents/AgentContext.cjs.map +1 -1
  3. package/dist/cjs/graphs/Graph.cjs +148 -22
  4. package/dist/cjs/graphs/Graph.cjs.map +1 -1
  5. package/dist/cjs/graphs/MultiAgentGraph.cjs +2 -1
  6. package/dist/cjs/graphs/MultiAgentGraph.cjs.map +1 -1
  7. package/dist/cjs/main.cjs +4 -0
  8. package/dist/cjs/run.cjs +29 -11
  9. package/dist/cjs/run.cjs.map +1 -1
  10. package/dist/cjs/stream.cjs +8 -6
  11. package/dist/cjs/stream.cjs.map +1 -1
  12. package/dist/cjs/tools/BashExecutor.cjs +8 -7
  13. package/dist/cjs/tools/BashExecutor.cjs.map +1 -1
  14. package/dist/cjs/tools/BashProgrammaticToolCalling.cjs +5 -4
  15. package/dist/cjs/tools/BashProgrammaticToolCalling.cjs.map +1 -1
  16. package/dist/cjs/tools/CodeExecutor.cjs +26 -7
  17. package/dist/cjs/tools/CodeExecutor.cjs.map +1 -1
  18. package/dist/cjs/tools/ProgrammaticToolCalling.cjs +7 -6
  19. package/dist/cjs/tools/ProgrammaticToolCalling.cjs.map +1 -1
  20. package/dist/cjs/tools/ToolNode.cjs +33 -10
  21. package/dist/cjs/tools/ToolNode.cjs.map +1 -1
  22. package/dist/cjs/tools/ToolSearch.cjs +1 -1
  23. package/dist/cjs/tools/ToolSearch.cjs.map +1 -1
  24. package/dist/cjs/tools/runStepResume.cjs +51 -0
  25. package/dist/cjs/tools/runStepResume.cjs.map +1 -0
  26. package/dist/cjs/tools/subagent/SubagentExecutor.cjs +15 -43
  27. package/dist/cjs/tools/subagent/SubagentExecutor.cjs.map +1 -1
  28. package/dist/cjs/tools/subagent/SubagentReplay.cjs +6 -1
  29. package/dist/cjs/tools/subagent/SubagentReplay.cjs.map +1 -1
  30. package/dist/cjs/utils/toolSessions.cjs +63 -0
  31. package/dist/cjs/utils/toolSessions.cjs.map +1 -0
  32. package/dist/esm/agents/AgentContext.mjs +5 -2
  33. package/dist/esm/agents/AgentContext.mjs.map +1 -1
  34. package/dist/esm/graphs/Graph.mjs +148 -22
  35. package/dist/esm/graphs/Graph.mjs.map +1 -1
  36. package/dist/esm/graphs/MultiAgentGraph.mjs +2 -1
  37. package/dist/esm/graphs/MultiAgentGraph.mjs.map +1 -1
  38. package/dist/esm/main.mjs +2 -2
  39. package/dist/esm/run.mjs +29 -11
  40. package/dist/esm/run.mjs.map +1 -1
  41. package/dist/esm/stream.mjs +8 -6
  42. package/dist/esm/stream.mjs.map +1 -1
  43. package/dist/esm/tools/BashExecutor.mjs +9 -8
  44. package/dist/esm/tools/BashExecutor.mjs.map +1 -1
  45. package/dist/esm/tools/BashProgrammaticToolCalling.mjs +6 -5
  46. package/dist/esm/tools/BashProgrammaticToolCalling.mjs.map +1 -1
  47. package/dist/esm/tools/CodeExecutor.mjs +23 -8
  48. package/dist/esm/tools/CodeExecutor.mjs.map +1 -1
  49. package/dist/esm/tools/ProgrammaticToolCalling.mjs +8 -7
  50. package/dist/esm/tools/ProgrammaticToolCalling.mjs.map +1 -1
  51. package/dist/esm/tools/ToolNode.mjs +33 -10
  52. package/dist/esm/tools/ToolNode.mjs.map +1 -1
  53. package/dist/esm/tools/ToolSearch.mjs +2 -2
  54. package/dist/esm/tools/ToolSearch.mjs.map +1 -1
  55. package/dist/esm/tools/runStepResume.mjs +48 -0
  56. package/dist/esm/tools/runStepResume.mjs.map +1 -0
  57. package/dist/esm/tools/subagent/SubagentExecutor.mjs +15 -43
  58. package/dist/esm/tools/subagent/SubagentExecutor.mjs.map +1 -1
  59. package/dist/esm/tools/subagent/SubagentReplay.mjs +6 -1
  60. package/dist/esm/tools/subagent/SubagentReplay.mjs.map +1 -1
  61. package/dist/esm/utils/toolSessions.mjs +62 -0
  62. package/dist/esm/utils/toolSessions.mjs.map +1 -0
  63. package/dist/types/agents/AgentContext.d.ts +7 -4
  64. package/dist/types/agents/projection.d.ts +1 -1
  65. package/dist/types/events.d.ts +2 -2
  66. package/dist/types/graphs/Graph.d.ts +22 -14
  67. package/dist/types/graphs/MultiAgentGraph.d.ts +2 -2
  68. package/dist/types/graphs/createGraph.d.ts +4 -4
  69. package/dist/types/graphs/graphFactory.d.ts +1 -1
  70. package/dist/types/hitl/askUserQuestion.d.ts +1 -1
  71. package/dist/types/hitl/askUserQuestions.d.ts +1 -1
  72. package/dist/types/hitl/askUserQuestionsInterrupt.d.ts +1 -1
  73. package/dist/types/hooks/types.d.ts +1 -1
  74. package/dist/types/instrumentation.d.ts +1 -1
  75. package/dist/types/langfuse.d.ts +3 -3
  76. package/dist/types/langfuseConfig.d.ts +2 -2
  77. package/dist/types/langfuseRuntimeContext.d.ts +1 -1
  78. package/dist/types/langfuseRuntimeScope.d.ts +2 -2
  79. package/dist/types/langfuseSpanRegistry.d.ts +1 -1
  80. package/dist/types/langfuseToolOutputTracing.d.ts +3 -3
  81. package/dist/types/llm/anthropic/index.d.ts +1 -1
  82. package/dist/types/llm/bedrock/index.d.ts +1 -1
  83. package/dist/types/llm/bedrock/toolCache.d.ts +2 -2
  84. package/dist/types/llm/contextOverflowRecovery.d.ts +2 -2
  85. package/dist/types/llm/google/index.d.ts +1 -1
  86. package/dist/types/llm/init.d.ts +2 -2
  87. package/dist/types/llm/invoke.d.ts +6 -6
  88. package/dist/types/llm/mistral/index.d.ts +1 -1
  89. package/dist/types/llm/openai/index.d.ts +2 -2
  90. package/dist/types/llm/openrouter/index.d.ts +2 -2
  91. package/dist/types/llm/openrouter/toolCache.d.ts +2 -2
  92. package/dist/types/llm/providers.d.ts +2 -2
  93. package/dist/types/llm/request.d.ts +2 -2
  94. package/dist/types/llm/stream/chunkAdapters.d.ts +1 -1
  95. package/dist/types/llm/streamLimits.d.ts +1 -1
  96. package/dist/types/llm/truncation.d.ts +1 -1
  97. package/dist/types/llm/vertexai/index.d.ts +1 -1
  98. package/dist/types/messages/alternation.d.ts +1 -1
  99. package/dist/types/messages/anthropicToolCache.d.ts +2 -2
  100. package/dist/types/messages/assistantPhase.d.ts +3 -3
  101. package/dist/types/messages/budget.d.ts +1 -1
  102. package/dist/types/messages/cache.d.ts +1 -1
  103. package/dist/types/messages/contextPruning.d.ts +2 -2
  104. package/dist/types/messages/core.d.ts +2 -2
  105. package/dist/types/messages/format.d.ts +2 -2
  106. package/dist/types/messages/ids.d.ts +2 -2
  107. package/dist/types/messages/injected.d.ts +1 -1
  108. package/dist/types/messages/langchain.d.ts +1 -1
  109. package/dist/types/messages/prune.d.ts +3 -3
  110. package/dist/types/openai/index.d.ts +1 -1
  111. package/dist/types/prompts/activityLabel.d.ts +2 -2
  112. package/dist/types/responses/index.d.ts +1 -1
  113. package/dist/types/run.d.ts +3 -3
  114. package/dist/types/session/handlers.d.ts +1 -1
  115. package/dist/types/session/types.d.ts +1 -1
  116. package/dist/types/stream.d.ts +4 -4
  117. package/dist/types/summarization/index.d.ts +1 -1
  118. package/dist/types/summarization/node.d.ts +6 -6
  119. package/dist/types/tools/BashExecutor.d.ts +2 -2
  120. package/dist/types/tools/BashProgrammaticToolCalling.d.ts +2 -2
  121. package/dist/types/tools/CodeExecutor.d.ts +7 -3
  122. package/dist/types/tools/CodeSessionFileSummary.d.ts +1 -1
  123. package/dist/types/tools/ProgrammaticToolCalling.d.ts +3 -3
  124. package/dist/types/tools/ReadFile.d.ts +1 -1
  125. package/dist/types/tools/SkillTool.d.ts +1 -1
  126. package/dist/types/tools/SubagentTool.d.ts +3 -3
  127. package/dist/types/tools/ToolNode.d.ts +8 -6
  128. package/dist/types/tools/ToolSearch.d.ts +2 -2
  129. package/dist/types/tools/cloudflare/CloudflareBridgeRuntime.d.ts +1 -1
  130. package/dist/types/tools/cloudflare/CloudflareProgrammaticToolCalling.d.ts +1 -1
  131. package/dist/types/tools/cloudflare/CloudflareSandboxExecutionEngine.d.ts +2 -2
  132. package/dist/types/tools/cloudflare/CloudflareSandboxTools.d.ts +1 -1
  133. package/dist/types/tools/eagerEventExecution.d.ts +1 -1
  134. package/dist/types/tools/handlers.d.ts +3 -3
  135. package/dist/types/tools/intentArg.d.ts +1 -1
  136. package/dist/types/tools/local/CompileCheckTool.d.ts +2 -2
  137. package/dist/types/tools/local/FileCheckpointer.d.ts +1 -1
  138. package/dist/types/tools/local/LocalCodingTools.d.ts +2 -2
  139. package/dist/types/tools/local/LocalExecutionEngine.d.ts +1 -1
  140. package/dist/types/tools/local/LocalExecutionTools.d.ts +1 -1
  141. package/dist/types/tools/local/LocalProgrammaticToolCalling.d.ts +1 -1
  142. package/dist/types/tools/local/bashAst.d.ts +1 -1
  143. package/dist/types/tools/local/resolveLocalExecutionTools.d.ts +1 -1
  144. package/dist/types/tools/local/syntaxCheck.d.ts +1 -1
  145. package/dist/types/tools/ptcTimeout.d.ts +1 -1
  146. package/dist/types/tools/runStepResume.d.ts +5 -0
  147. package/dist/types/tools/schema.d.ts +1 -1
  148. package/dist/types/tools/search/anthropic.d.ts +1 -1
  149. package/dist/types/tools/skillCatalog.d.ts +1 -1
  150. package/dist/types/tools/subagent/SubagentExecutor.d.ts +30 -5
  151. package/dist/types/tools/subagent/SubagentReplay.d.ts +4 -3
  152. package/dist/types/tools/subagent/childGraphConfig.d.ts +2 -2
  153. package/dist/types/types/activityLabel.d.ts +3 -3
  154. package/dist/types/types/graph.d.ts +16 -7
  155. package/dist/types/types/llm.d.ts +9 -9
  156. package/dist/types/types/run.d.ts +7 -7
  157. package/dist/types/types/stream.d.ts +23 -5
  158. package/dist/types/types/summarize.d.ts +2 -2
  159. package/dist/types/types/tools.d.ts +41 -21
  160. package/dist/types/utils/errors.d.ts +1 -1
  161. package/dist/types/utils/events.d.ts +1 -1
  162. package/dist/types/utils/handlers.d.ts +3 -3
  163. package/dist/types/utils/llm.d.ts +1 -1
  164. package/dist/types/utils/llmConfig.d.ts +1 -1
  165. package/dist/types/utils/title.d.ts +1 -1
  166. package/dist/types/utils/toolSessions.d.ts +18 -0
  167. package/package.json +28 -32
  168. package/src/agents/AgentContext.ts +7 -0
  169. package/src/graphs/Graph.ts +192 -13
  170. package/src/graphs/MultiAgentGraph.ts +1 -0
  171. package/src/run.ts +62 -11
  172. package/src/stream.ts +28 -9
  173. package/src/tools/BashExecutor.ts +31 -13
  174. package/src/tools/BashProgrammaticToolCalling.ts +19 -9
  175. package/src/tools/CodeExecutor.ts +57 -16
  176. package/src/tools/ProgrammaticToolCalling.ts +26 -12
  177. package/src/tools/ToolNode.ts +58 -8
  178. package/src/tools/ToolSearch.ts +2 -2
  179. package/src/tools/runStepResume.ts +121 -0
  180. package/src/tools/subagent/SubagentExecutor.ts +67 -65
  181. package/src/tools/subagent/SubagentReplay.ts +22 -1
  182. package/src/types/graph.ts +10 -0
  183. package/src/types/stream.ts +17 -0
  184. package/src/types/tools.ts +50 -21
  185. package/src/utils/toolSessions.ts +113 -0
  186. package/dist/types/agents/__tests__/promptCacheLiveHelpers.d.ts +0 -52
  187. package/dist/types/test/mockTools.d.ts +0 -28
  188. package/dist/types/utils/__tests__/fixtures/contextOverflowSignatures.d.ts +0 -40
@@ -26,7 +26,7 @@ import { type GuardrailConfiguration, type GuardrailStreamConfiguration } from '
26
26
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
27
27
  import type { BaseMessage } from '@langchain/core/messages';
28
28
  import type { ChatBedrockConverseInput } from '@langchain/aws';
29
- import { type PromptCacheTtl } from '../../messages/cache';
29
+ import { type PromptCacheTtl } from '@/messages/cache';
30
30
  /**
31
31
  * Service tier type for Bedrock invocations.
32
32
  * Requires AWS SDK >= 3.966.0 to actually work.
@@ -1,5 +1,5 @@
1
1
  import type { ToolConfiguration } from '@aws-sdk/client-bedrock-runtime';
2
- import type { GraphTools } from '../../types';
3
- import { type PromptCacheTtl } from '../../messages/cache';
2
+ import type { GraphTools } from '@/types';
3
+ import { type PromptCacheTtl } from '@/messages/cache';
4
4
  export declare function partitionAndMarkBedrockToolCache(tools: GraphTools | undefined, isDeferred: (toolName: string) => boolean): GraphTools | undefined;
5
5
  export declare function insertBedrockToolCachePoint(toolConfig: ToolConfiguration | undefined, fallbackToEnd: boolean, ttl?: PromptCacheTtl): ToolConfiguration | undefined;
@@ -17,8 +17,8 @@
17
17
  * the pruner's conversion without folding the same correction into the
18
18
  * provider-space budget.
19
19
  */
20
- import type { ContextOverflowInfo } from '../utils/errors';
21
- import type { Providers } from '../common';
20
+ import type { ContextOverflowInfo } from '@/utils/errors';
21
+ import type { Providers } from '@/common';
22
22
  /** Bound on forced-compaction retries per agent, per run. */
23
23
  export declare const DEFAULT_MAX_OVERFLOW_RECOVERIES = 2;
24
24
  export interface OverflowRecoveryPlan {
@@ -3,7 +3,7 @@ import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
3
3
  import type { GenerateContentRequest } from '@google/generative-ai';
4
4
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
5
5
  import type { BaseMessage } from '@langchain/core/messages';
6
- import type { GoogleClientOptions, GoogleThinkingConfig } from '../../types';
6
+ import type { GoogleClientOptions, GoogleThinkingConfig } from '@/types';
7
7
  export declare class CustomChatGoogleGenerativeAI extends ChatGoogleGenerativeAI {
8
8
  _lc_stream_delay: number;
9
9
  thinkingConfig?: GoogleThinkingConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Runnable } from '@langchain/core/runnables';
2
- import type * as t from '../types';
3
- import { Providers } from '../common';
2
+ import type * as t from '@/types';
3
+ import { Providers } from '@/common';
4
4
  /**
5
5
  * Creates a chat model instance for a given provider, applies provider-specific
6
6
  * field assignments, and optionally binds tools.
@@ -1,12 +1,12 @@
1
1
  import { AIMessageChunk } from '@langchain/core/messages';
2
2
  import type { RunnableConfig } from '@langchain/core/runnables';
3
3
  import type { BaseMessage } from '@langchain/core/messages';
4
- import type { ToolOutputReferenceRegistry } from '../tools/toolOutputReferences';
5
- import type { StreamLimitState } from '../llm/streamLimits';
6
- import type { ContextOverflowContext } from '../utils/errors';
7
- import type * as t from '../types';
8
- import { ChatModelStreamHandler } from '../stream';
9
- import { Providers } from '../common';
4
+ import type { ToolOutputReferenceRegistry } from '@/tools/toolOutputReferences';
5
+ import type { StreamLimitState } from '@/llm/streamLimits';
6
+ import type { ContextOverflowContext } from '@/utils/errors';
7
+ import type * as t from '@/types';
8
+ import { ChatModelStreamHandler } from '@/stream';
9
+ import { Providers } from '@/common';
10
10
  /**
11
11
  * Context passed to `attemptInvoke`. Matches the subset of Graph that
12
12
  * `ChatModelStreamHandler.handle` needs *plus* the explicit
@@ -2,7 +2,7 @@ import { ChatMistralAI } from '@langchain/mistralai';
2
2
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
3
3
  import type { ChatGenerationChunk } from '@langchain/core/outputs';
4
4
  import type { BaseMessage } from '@langchain/core/messages';
5
- import type { MistralAIClientOptions } from '../../types';
5
+ import type { MistralAIClientOptions } from '@/types';
6
6
  export declare class CustomChatMistralAI extends ChatMistralAI {
7
7
  _lc_stream_delay: number;
8
8
  static lc_name(): 'LibreChatMistralAI';
@@ -10,9 +10,9 @@ import type { BindToolsInput } from '@langchain/core/language_models/chat_models
10
10
  import type { ChatResult } from '@langchain/core/outputs';
11
11
  import type { ChatXAIInput } from '@langchain/xai';
12
12
  import type * as t from '@langchain/openai';
13
- import type { SmoothItem } from '../../llm/stream/smoother';
13
+ import type { SmoothItem } from '@/llm/stream/smoother';
14
14
  import type { HeaderValue, HeadersLike } from './types';
15
- import type { PromptCacheTtl } from '../../messages/cache';
15
+ import type { PromptCacheTtl } from '@/messages/cache';
16
16
  export declare function isHeaders(headers: unknown): headers is Headers;
17
17
  export declare function normalizeHeaders(headers: HeadersLike): Record<string, HeaderValue | readonly HeaderValue[]>;
18
18
  type OpenAICoreRequestOptions = OpenAIClient.RequestOptions;
@@ -2,8 +2,8 @@ import type { ChatOpenAICallOptions, OpenAIChatInput, OpenAIClient } from '@lang
2
2
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
3
3
  import type { ChatGenerationChunk } from '@langchain/core/outputs';
4
4
  import type { BaseMessage } from '@langchain/core/messages';
5
- import type { PromptCacheTtl } from '../../messages/cache';
6
- import { ChatOpenAI } from '../../llm/openai';
5
+ import type { PromptCacheTtl } from '@/messages/cache';
6
+ import { ChatOpenAI } from '@/llm/openai';
7
7
  export type OpenRouterReasoningEffort = 'xhigh' | 'high' | 'medium' | 'low' | 'minimal' | 'none';
8
8
  export interface OpenRouterReasoning {
9
9
  effort?: OpenRouterReasoningEffort;
@@ -1,3 +1,3 @@
1
- import type { GraphTools } from '../../types';
2
- import { type PromptCacheTtl } from '../../messages/cache';
1
+ import type { GraphTools } from '@/types';
2
+ import { type PromptCacheTtl } from '@/messages/cache';
3
3
  export declare function partitionAndMarkOpenRouterToolCache(tools: GraphTools | undefined, isDeferred: (toolName: string) => boolean, ttl?: PromptCacheTtl): GraphTools | undefined;
@@ -1,5 +1,5 @@
1
- import type { ChatModelConstructorMap, ProviderOptionsMap, ChatModelMap } from '../types';
2
- import { Providers } from '../common';
1
+ import type { ChatModelConstructorMap, ProviderOptionsMap, ChatModelMap } from '@/types';
2
+ import { Providers } from '@/common';
3
3
  export declare const llmProviders: Partial<ChatModelConstructorMap>;
4
4
  export declare const manualToolStreamProviders: Set<string>;
5
5
  export declare const getChatModelClass: <P extends Providers>(provider: P) => new (config: ProviderOptionsMap[P]) => ChatModelMap[P];
@@ -1,5 +1,5 @@
1
- import type * as t from '../types';
2
- import { Providers } from '../common';
1
+ import type * as t from '@/types';
2
+ import { Providers } from '@/common';
3
3
  /**
4
4
  * Returns true when the provider + clientOptions indicate extended thinking
5
5
  * is enabled. Works across Anthropic (direct), Bedrock (additionalModelRequestFields),
@@ -1,7 +1,7 @@
1
1
  import { AIMessageChunk } from '@langchain/core/messages';
2
2
  import { ChatGenerationChunk } from '@langchain/core/outputs';
3
3
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
4
- import type { SmoothItem, SmoothPiece } from '../../llm/stream/smoother';
4
+ import type { SmoothItem, SmoothPiece } from '@/llm/stream/smoother';
5
5
  /**
6
6
  * Rebuilds a generation chunk carrying one piece of a split plain-text chunk.
7
7
  * Unsplit pieces return the original chunk untouched, so disabled smoothing is
@@ -1,5 +1,5 @@
1
1
  import type { ToolCallChunk } from '@langchain/core/messages/tool';
2
- import type * as t from '../types';
2
+ import type * as t from '@/types';
3
3
  /**
4
4
  * Circuit breakers for pathological model streams.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import type { AIMessageChunk, BaseMessage } from '@langchain/core/messages';
2
- import { Providers } from '../common';
2
+ import { Providers } from '@/common';
3
3
  /**
4
4
  * Normalized truncation reasons across providers. Providers disagree on the
5
5
  * key and the value: Anthropic/Bedrock use `max_tokens`, OpenAI uses `length`,
@@ -4,7 +4,7 @@ import type { GeminiContent, GoogleAIModelRequestParams, GoogleAbstractedClient
4
4
  import type { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
5
5
  import type { BaseMessage, UsageMetadata } from '@langchain/core/messages';
6
6
  import type { ChatGenerationChunk } from '@langchain/core/outputs';
7
- import type { GoogleThinkingConfig, VertexAIClientOptions } from '../../types';
7
+ import type { GoogleThinkingConfig, VertexAIClientOptions } from '@/types';
8
8
  /**
9
9
  * `@langchain/google-common`'s `_streamResponseChunks` emits usage on TWO
10
10
  * different paths within the same stream:
@@ -1,5 +1,5 @@
1
1
  import type { BaseMessage } from '@langchain/core/messages';
2
- import { Providers } from '../common';
2
+ import { Providers } from '@/common';
3
3
  /**
4
4
  * Providers whose APIs specify strict user/assistant alternation. Mistral
5
5
  * rejects consecutive user turns outright. Bedrock's Converse API documents
@@ -24,8 +24,8 @@
24
24
  * never mutating the original tool instance, since callers may share them
25
25
  * across runs.
26
26
  */
27
- import type { GraphTools } from '../types';
28
- import { type PromptCacheTtl } from '../messages/cache';
27
+ import type { GraphTools } from '@/types';
28
+ import { type PromptCacheTtl } from '@/messages/cache';
29
29
  /**
30
30
  * Returns a callable that reports whether a given tool *name* is deferred
31
31
  * according to the supplied registry of tool definitions. Tools without
@@ -1,6 +1,6 @@
1
- import type { AssistantTextPhase } from '../types/assistantPhase';
2
- import type { MessageContentComplex } from '../types/stream';
3
- import { ContentTypes } from '../common';
1
+ import type { AssistantTextPhase } from '@/types/assistantPhase';
2
+ import type { MessageContentComplex } from '@/types/stream';
3
+ import { ContentTypes } from '@/common';
4
4
  export type MessageCreationContentMetadata = {
5
5
  content_type?: ContentTypes.TEXT | ContentTypes.THINK;
6
6
  phase?: AssistantTextPhase;
@@ -1,4 +1,4 @@
1
- import type * as t from '../types';
1
+ import type * as t from '@/types';
2
2
  /**
3
3
  * Reconciles a context-usage breakdown's instruction/available/message fields
4
4
  * from the pruner's budget metrics. `messageTokens` and `availableForMessages`
@@ -1,5 +1,5 @@
1
1
  import { BaseMessage, MessageContentComplex } from '@langchain/core/messages';
2
- import type { AnthropicMessage } from '../types/messages';
2
+ import type { AnthropicMessage } from '@/types/messages';
3
3
  type MessageWithContent = {
4
4
  content?: string | MessageContentComplex[];
5
5
  };
@@ -14,8 +14,8 @@
14
14
  */
15
15
  import { type BaseMessage } from '@langchain/core/messages';
16
16
  import type { ContextPruningSettings } from './contextPruningSettings';
17
- import type { ContextPruningConfig } from '../types/graph';
18
- import type { TokenCounter } from '../types/run';
17
+ import type { ContextPruningConfig } from '@/types/graph';
18
+ import type { TokenCounter } from '@/types/run';
19
19
  export interface ContextPruningResult {
20
20
  /** Number of messages that were soft-trimmed. */
21
21
  softTrimmed: number;
@@ -1,6 +1,6 @@
1
1
  import { AIMessage, BaseMessage, ToolMessage, HumanMessage, AIMessageChunk } from '@langchain/core/messages';
2
- import type * as t from '../types';
3
- import { Providers } from '../common';
2
+ import type * as t from '@/types';
3
+ import { Providers } from '@/common';
4
4
  export declare function getConverseOverrideMessage({ userMessage, lastMessageX, lastMessageY, }: {
5
5
  userMessage: string[];
6
6
  lastMessageX: AIMessageChunk | null;
@@ -1,8 +1,8 @@
1
1
  import { AIMessage, ToolMessage, BaseMessage, HumanMessage, SystemMessage } from '@langchain/core/messages';
2
2
  import type { MessageContentImageUrl } from '@langchain/core/messages';
3
3
  import type { RunnableConfig } from '@langchain/core/runnables';
4
- import type { MessageContentComplex, TPayload } from '../types';
5
- import { Providers } from '../common';
4
+ import type { MessageContentComplex, TPayload } from '@/types';
5
+ import { Providers } from '@/common';
6
6
  interface MediaMessageParams {
7
7
  message: {
8
8
  role: string;
@@ -1,3 +1,3 @@
1
- import type { Graph } from '../graphs';
2
- import type * as t from '../types';
1
+ import type { Graph } from '@/graphs';
2
+ import type * as t from '@/types';
3
3
  export declare const getMessageId: (stepKey: string, graph: Graph<t.BaseGraphState>, returnExistingId?: boolean) => string | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { BaseMessage } from '@langchain/core/messages';
2
- import type { InjectedMessage } from '../types/tools';
2
+ import type { InjectedMessage } from '@/types/tools';
3
3
  export declare function convertInjectedMessages(messages: InjectedMessage[]): BaseMessage[];
@@ -1,5 +1,5 @@
1
1
  import type { MessageContent } from '@langchain/core/messages';
2
- import type * as t from '../types';
2
+ import type * as t from '@/types';
3
3
  type LibreChatMessageContent = MessageContent | string | t.MessageContentComplex[] | t.ExtendedMessageContent[];
4
4
  type WithLangChainContent<T extends {
5
5
  content: LibreChatMessageContent;
@@ -1,7 +1,7 @@
1
1
  import { BaseMessage, UsageMetadata } from '@langchain/core/messages';
2
- import type { ContextPruningConfig } from '../types/graph';
3
- import type { TokenCounter } from '../types/run';
4
- import { ContentTypes, Providers } from '../common';
2
+ import type { ContextPruningConfig } from '@/types/graph';
3
+ import type { TokenCounter } from '@/types/run';
4
+ import { ContentTypes, Providers } from '@/common';
5
5
  /** Default fraction of the token budget reserved as headroom (5 %). */
6
6
  export declare const DEFAULT_RESERVE_RATIO = 0.05;
7
7
  /** Provider framing reserved for the assistant reply label. */
@@ -1,4 +1,4 @@
1
- import type * as t from '../types';
1
+ import type * as t from '@/types';
2
2
  export interface OpenAICompatibleWriter {
3
3
  write(data: string): void | Promise<void>;
4
4
  }
@@ -1,5 +1,5 @@
1
- import type { ActivityLabelToolEntry, ActivityPhaseEntry } from '../types/activityLabel';
2
- import type { ResolvedLangfuseToolOutputTracingConfig } from '../langfuseRuntimeContext';
1
+ import type { ActivityLabelToolEntry, ActivityPhaseEntry } from '@/types/activityLabel';
2
+ import type { ResolvedLangfuseToolOutputTracingConfig } from '@/langfuseRuntimeContext';
3
3
  /**
4
4
  * Default system prompt for fast-model activity labeling.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type * as t from '../types';
1
+ import type * as t from '@/types';
2
2
  export interface ResponsesCompatibleWriter {
3
3
  write(data: string): void | Promise<void>;
4
4
  }
@@ -1,9 +1,9 @@
1
1
  import { Command } from '@langchain/langgraph';
2
2
  import { BaseMessage } from '@langchain/core/messages';
3
3
  import type { MessageContentComplex } from '@langchain/core/messages';
4
- import type { MultiAgentGraph } from './graphs/MultiAgentGraph';
5
- import type { StandardGraph } from './graphs/Graph';
6
- import type * as t from './types';
4
+ import type { MultiAgentGraph } from '@/graphs/MultiAgentGraph';
5
+ import type { StandardGraph } from '@/graphs/Graph';
6
+ import type * as t from '@/types';
7
7
  export declare const defaultOmitOptions: Set<string>;
8
8
  export declare class Run<_T extends t.BaseGraphState> {
9
9
  id: string;
@@ -1,5 +1,5 @@
1
1
  import type { AgentSessionHandlersResult, AgentSessionStreamEvent } from './types';
2
- import type * as t from '../types';
2
+ import type * as t from '@/types';
3
3
  export declare function createRunHandlers(params: {
4
4
  runId: string;
5
5
  threadId: string;
@@ -1,7 +1,7 @@
1
1
  import type { RunnableConfig } from '@langchain/core/runnables';
2
2
  import type { BaseCheckpointSaver } from '@langchain/langgraph';
3
3
  import type { BaseMessage } from '@langchain/core/messages';
4
- import type * as t from '../types';
4
+ import type * as t from '@/types';
5
5
  export type JsonPrimitive = string | number | boolean | null;
6
6
  export type JsonValue = JsonPrimitive | JsonValue[] | {
7
7
  [key: string]: JsonValue;
@@ -1,8 +1,8 @@
1
1
  import type { AIMessageChunk } from '@langchain/core/messages';
2
- import type { AgentContext } from './agents/AgentContext';
3
- import type { StandardGraph } from './graphs';
4
- import type * as t from './types';
5
- import { Providers } from './common';
2
+ import type { AgentContext } from '@/agents/AgentContext';
3
+ import type { StandardGraph } from '@/graphs';
4
+ import type * as t from '@/types';
5
+ import { Providers } from '@/common';
6
6
  export declare function getChunkContent({ chunk, provider, reasoningKey, }: {
7
7
  chunk?: Partial<AIMessageChunk>;
8
8
  provider?: Providers;
@@ -1,4 +1,4 @@
1
- import type { SummarizationTrigger } from '../types';
1
+ import type { SummarizationTrigger } from '@/types';
2
2
  /** For tests only. Resets the dedup set so warnings can be observed again. */
3
3
  export declare function _resetUnrecognizedTriggerWarnings(): void;
4
4
  /**
@@ -1,11 +1,11 @@
1
1
  import type { BaseMessage } from '@langchain/core/messages';
2
2
  import type { RunnableConfig } from '@langchain/core/runnables';
3
- import type { StreamLimitState } from '../llm/streamLimits';
4
- import type { AgentContext } from '../agents/AgentContext';
5
- import type { HookRegistry } from '../hooks';
6
- import type { OnChunk } from '../llm/invoke';
7
- import type * as t from '../types';
8
- import { Providers } from '../common';
3
+ import type { StreamLimitState } from '@/llm/streamLimits';
4
+ import type { AgentContext } from '@/agents/AgentContext';
5
+ import type { HookRegistry } from '@/hooks';
6
+ import type { OnChunk } from '@/llm/invoke';
7
+ import type * as t from '@/types';
8
+ import { Providers } from '@/common';
9
9
  /** Structured checkpoint prompt for fresh summarization (no prior summary). */
10
10
  export declare const DEFAULT_SUMMARIZATION_PROMPT = "Hold on, before you continue I need you to write me a checkpoint of everything so far. Your context window is filling up and this checkpoint replaces the messages above, so capture everything you need to pick right back up.\n\nDon't second-guess or fact-check anything you did, your tool results reflect exactly what happened. If a tool result appears truncated, that's just a display artifact from context management: the tool executed fully. Just record what you did and what you observed. Only the checkpoint, don't respond to me or continue the conversation.\n\n## Checkpoint\n\n## Goal\nWhat I asked you to do and any sub-goals you identified.\n\n## Constraints & Preferences\nAny rules, preferences, or configuration I established.\n\n## Progress\n### Done\n- What you completed and the outcomes\n\n### In Progress\n- What you're currently working on\n\n## Key Decisions\nDecisions you made and why.\n\n## Next Steps\nConcrete task actions remaining, in priority order.\n\n## Critical Context\nExact identifiers, names, error messages, URLs, and details you need to preserve verbatim.\n\nRules:\n- Record what you did and observed, don't judge or re-evaluate it\n- For each tool call: the tool name, key inputs, and the outcome\n- Preserve exact identifiers, names, errors, and references verbatim\n- Short declarative sentences\n- Skip empty sections";
11
11
  /** Prompt for re-compaction when a prior summary exists. */
@@ -1,6 +1,6 @@
1
1
  import { DynamicStructuredTool } from '@langchain/core/tools';
2
- import type * as t from '../types';
3
- import { Constants } from '../common';
2
+ import type * as t from '@/types';
3
+ import { Constants } from '@/common';
4
4
  export declare const BashExecutionToolSchema: {
5
5
  readonly type: "object";
6
6
  readonly properties: {
@@ -1,7 +1,7 @@
1
1
  import { DynamicStructuredTool } from '@langchain/core/tools';
2
2
  import type { ProgrammaticToolCallingJsonSchema } from './ptcTimeout';
3
- import type * as t from '../types';
4
- import { Constants } from '../common';
3
+ import type * as t from '@/types';
4
+ import { Constants } from '@/common';
5
5
  export declare function createBashProgrammaticToolCallingSchema(maxRunTimeoutMs?: number): ProgrammaticToolCallingJsonSchema;
6
6
  export declare const BashProgrammaticToolCallingSchema: ProgrammaticToolCallingJsonSchema;
7
7
  export declare const BashProgrammaticToolCallingName = Constants.BASH_PROGRAMMATIC_TOOL_CALLING;
@@ -1,8 +1,10 @@
1
1
  import { DynamicStructuredTool } from '@langchain/core/tools';
2
- import type * as t from '../types';
3
- import { Constants } from '../common';
4
- export { appendCodeSessionFileSummary, stripCodeSessionFileSummary, } from '../tools/CodeSessionFileSummary';
2
+ import type * as t from '@/types';
3
+ import { Constants } from '@/common';
4
+ export { appendCodeSessionFileSummary, stripCodeSessionFileSummary, } from '@/tools/CodeSessionFileSummary';
5
5
  export declare const getCodeBaseURL: () => string;
6
+ export declare function buildCodeApiEndpoint(baseUrl: string, route: string): string;
7
+ export declare function selectRuntimeSessionHint(factoryHint?: string, injectedHint?: string): string | undefined;
6
8
  export declare const emptyOutputMessage = "stdout: Empty. Ensure you're writing output explicitly.\n";
7
9
  export declare const CODE_ARTIFACT_PATH_GUIDANCE = "Anything a later call needs (data, helper scripts/modules, partial results) MUST be written under `/mnt/data` in the same call that produces it; `/tmp` never survives the call. `/mnt/data` keeps files with recognized extensions, covering common source, text, data, document, image, and archive formats (.py/.sh/.sql/.md/.json/.csv/.parquet/.png/.pdf/.zip and similar); extensionless or unusual extensions are not kept. Failed executions register nothing; fix the error and rerun before relying on new files.";
8
10
  export declare const BASH_SHELL_GUIDANCE = "Bash: multi-line files use heredoc/printf; run Python via python3 -c/heredoc, not bare Python.";
@@ -41,6 +43,7 @@ export declare const CodeExecutionToolSchema: {
41
43
  };
42
44
  readonly required: readonly ["lang", "code"];
43
45
  };
46
+ export declare const CODE_API_EXPECTED_PROFILE_HEADER = "X-CodeAPI-Expected-Profile";
44
47
  export declare const CODE_API_UNAVAILABLE_ERROR_MESSAGE = "Code execution is temporarily unavailable. Please retry.";
45
48
  export declare const CODE_API_AUTHORIZATION_ERROR_MESSAGE = "Code execution is not authorized. Verify access before trying again.";
46
49
  export declare const CODE_API_EXECUTION_FAILED_ERROR_MESSAGE = "Code execution failed.";
@@ -55,6 +58,7 @@ export declare function buildCodeApiExecutionErrorMessage(response: {
55
58
  stderr?: unknown;
56
59
  }): string;
57
60
  export declare function resolveCodeApiAuthHeaders(authHeaders?: t.CodeApiAuthHeaders): Promise<t.CodeApiAuthHeaderMap>;
61
+ export declare function addCodeApiExecutionProfileHeader(headers: t.CodeApiAuthHeaderMap, executionProfile?: t.CodeApiExecutionProfile): t.CodeApiAuthHeaderMap;
58
62
  export declare function buildCodeApiHttpErrorMessage(_method: string, _endpoint: string, response: {
59
63
  status: number;
60
64
  text: () => Promise<string>;
@@ -1,3 +1,3 @@
1
- import type * as t from '../types';
1
+ import type * as t from '@/types';
2
2
  export declare function stripCodeSessionFileSummary(output: string): string;
3
3
  export declare function appendCodeSessionFileSummary(output: string, files: t.FileRefs | undefined): string;
@@ -1,7 +1,7 @@
1
1
  import { DynamicStructuredTool } from '@langchain/core/tools';
2
2
  import type { ProgrammaticToolCallingJsonSchema } from './ptcTimeout';
3
- import type * as t from '../types';
4
- import { Constants } from '../common';
3
+ import type * as t from '@/types';
4
+ import { Constants } from '@/common';
5
5
  export declare function createProgrammaticToolCallingSchema(maxRunTimeoutMs?: number): ProgrammaticToolCallingJsonSchema;
6
6
  export declare const ProgrammaticToolCallingSchema: ProgrammaticToolCallingJsonSchema;
7
7
  export declare const ProgrammaticToolCallingName = Constants.PROGRAMMATIC_TOOL_CALLING;
@@ -66,7 +66,7 @@ export declare function fetchSessionFiles(baseUrl: string, sessionId: string, sc
66
66
  * @param proxy - Optional HTTP proxy URL
67
67
  * @returns The parsed API response
68
68
  */
69
- export declare function makeRequest(endpoint: string, body: Record<string, unknown>, proxy?: string, authHeaders?: t.CodeApiAuthHeaders): Promise<t.ProgrammaticExecutionResponse>;
69
+ export declare function makeRequest(endpoint: string, body: Record<string, unknown>, proxy?: string, authHeaders?: t.CodeApiAuthHeaders, executionProfile?: t.CodeApiExecutionProfile): Promise<t.ProgrammaticExecutionResponse>;
70
70
  /**
71
71
  * Unwraps tool responses that may be formatted as tuples or content blocks.
72
72
  * MCP tools return [content, artifacts], we need to extract the raw data.
@@ -1,4 +1,4 @@
1
- import { Constants } from '../common';
1
+ import { Constants } from '@/common';
2
2
  export declare const ReadFileToolName = Constants.READ_FILE;
3
3
  export declare const ReadFileToolDescription = "Read the contents of a file. Returns text content with line numbers for easy reference.\n\nFor skill files, use the path format: {skillName}/{filePath} (e.g. \"pdf-analyzer/src/utils.py\", \"code-review/SKILL.md\").\n\nBEHAVIOR:\n- Text files: returned with numbered lines.\n- Images (png, jpeg, gif, webp): returned as visual content the model can see.\n- PDFs: returned as document content.\n- Other binary files: metadata returned with a note to use bash for processing.\n- Large files (>256KB text, >10MB binary): metadata only.\n- SKILL.md: returns the skill's instructions directly.\n\nCONSTRAINTS:\n- Only files from invoked skills or code execution output are accessible.\n- Do not guess file paths. Use paths from the skill documentation or tool output.";
4
4
  export declare const ReadFileToolSchema: {
@@ -1,4 +1,4 @@
1
- import { Constants } from '../common';
1
+ import { Constants } from '@/common';
2
2
  export declare const SkillToolName = Constants.SKILL_TOOL;
3
3
  export declare const SkillToolDescription = "Invoke a skill from the user's library. Skills provide domain-specific instructions loaded into the conversation context, and may also provide files accessible via available tools depending on the runtime environment.\n\nWHEN TO USE:\n- The user's request matches a skill listed in the \"Available Skills\" section of the system prompt.\n- You MUST invoke the matching skill BEFORE attempting the task yourself.\n\nWHAT HAPPENS:\n- The skill's full instructions are loaded into the conversation as context.\n- Files bundled with the skill may become accessible via available tools.\n- Follow the skill's instructions to complete the task.\n\nCONSTRAINTS:\n- Do not invoke a skill that is already active in this conversation.\n- Skill names come from the catalog only. Do not guess names.";
4
4
  /**
@@ -1,6 +1,6 @@
1
- import type { JsonSchemaType, LCTool } from '../types/tools';
2
- import type { SubagentConfig } from '../types';
3
- import { Constants } from '../common';
1
+ import type { JsonSchemaType, LCTool } from '@/types/tools';
2
+ import type { SubagentConfig } from '@/types';
3
+ import { Constants } from '@/common';
4
4
  export declare const SubagentToolName = Constants.SUBAGENT;
5
5
  export declare const SubagentToolDescription = "Delegate a task to a specialized subagent or bounded agent team that runs in an isolated context window. The delegated execution returns only its designated final text result \u2014 all intermediate tool calls, reasoning, and context stay isolated.\n\nWHEN TO USE:\n- The task is self-contained and can be described in a single prompt.\n- You want to offload verbose or exploratory work without bloating your own context.\n- A specialized subagent is available for the task domain.\n\nWHAT HAPPENS:\n- A fresh agent or configured agent graph is created with the task description as its only input.\n- The delegated agent or team runs to completion using isolated tools and context.\n- Only the single agent's final response or the graph's designated result-agent response is returned to you.\n\nCONSTRAINTS:\n- subagent_type must match one of the available types listed below.\n- The subagent cannot see your conversation history.";
6
6
  export declare const SubagentToolSchema: {
@@ -2,11 +2,11 @@ import { ToolCall } from '@langchain/core/messages/tool';
2
2
  import { END, Command, MessagesAnnotation } from '@langchain/langgraph';
3
3
  import type { RunnableConfig } from '@langchain/core/runnables';
4
4
  import type { BaseMessage } from '@langchain/core/messages';
5
- import type { ToolOutputResolveView, ResolvedArgsByCallId } from '../tools/toolOutputReferences';
6
- import type { SubagentToolNodeResumeState } from '../tools/subagent/SubagentReplay';
7
- import type * as t from '../types';
8
- import { ToolOutputReferenceRegistry } from '../tools/toolOutputReferences';
9
- import { RunnableCallable } from '../utils';
5
+ import type { ToolOutputResolveView, ResolvedArgsByCallId } from '@/tools/toolOutputReferences';
6
+ import type { SubagentToolNodeResumeState } from '@/tools/subagent/SubagentReplay';
7
+ import type * as t from '@/types';
8
+ import { ToolOutputReferenceRegistry } from '@/tools/toolOutputReferences';
9
+ import { RunnableCallable } from '@/utils';
10
10
  /**
11
11
  * Per-call batch context for `runTool`. Bundles every optional
12
12
  * batch-scoped value the method needs so the signature stays at
@@ -126,6 +126,8 @@ export declare class ToolNode<T = any> extends RunnableCallable<T, T> {
126
126
  private programmaticCache?;
127
127
  /** Reference to Graph's sessions map for automatic session injection */
128
128
  private sessions?;
129
+ /** Partition within `sessions` owned by this agent's execution profile. */
130
+ private codeSessionKey;
129
131
  /** When true, dispatches ON_TOOL_EXECUTE events instead of invoking tools directly */
130
132
  private eventDrivenMode;
131
133
  /** Opt-in stream-layer prestart config for event-driven tools. */
@@ -211,7 +213,7 @@ export declare class ToolNode<T = any> extends RunnableCallable<T, T> {
211
213
  * other's in-flight state.
212
214
  */
213
215
  private anonBatchCounter;
214
- constructor({ tools, toolMap, name, tags, trace, runLangfuse, agentLangfuse, errorHandler, toolCallStepIds, handleToolErrors, loadRuntimeTools, toolRegistry, sessions, eventDrivenMode, eagerEventToolExecution, eagerEventToolExecutions, eagerEventToolUsageCount, eagerEventToolSuppressions, agentId, executingAgentId, directToolNames, interruptingToolNames, codeSessionToolNames, maxContextTokens, maxToolResultChars, hookRegistry, humanInTheLoop, toolOutputReferences, toolOutputRegistry, toolExecution, fileCheckpointer, getBreakerSignal, getRunScope, }: t.ToolNodeConstructorParams);
216
+ constructor({ tools, toolMap, name, tags, trace, runLangfuse, agentLangfuse, errorHandler, toolCallStepIds, handleToolErrors, loadRuntimeTools, toolRegistry, sessions, codeSessionKey, eventDrivenMode, eagerEventToolExecution, eagerEventToolExecutions, eagerEventToolUsageCount, eagerEventToolSuppressions, agentId, executingAgentId, directToolNames, interruptingToolNames, codeSessionToolNames, maxContextTokens, maxToolResultChars, hookRegistry, humanInTheLoop, toolOutputReferences, toolOutputRegistry, toolExecution, fileCheckpointer, getBreakerSignal, getRunScope, restoreRunStepResumeState, createRunStepResumeState, }: t.ToolNodeConstructorParams);
215
217
  invoke(input: any, options?: Partial<RunnableConfig>): Promise<any>;
216
218
  /**
217
219
  * Returns the run-scoped tool output registry, or `undefined` when
@@ -1,6 +1,6 @@
1
1
  import { DynamicStructuredTool } from '@langchain/core/tools';
2
- import type * as t from '../types';
3
- import { Constants } from '../common';
2
+ import type * as t from '@/types';
3
+ import { Constants } from '@/common';
4
4
  export declare const ToolSearchToolName = Constants.TOOL_SEARCH;
5
5
  export declare const ToolSearchToolDescription = "Searches deferred tools using BM25 ranking. Multi-word queries supported. Use mcp_server param to filter by server.";
6
6
  export declare const ToolSearchToolSchema: {
@@ -1,4 +1,4 @@
1
- import type * as t from '../../types';
1
+ import type * as t from '@/types';
2
2
  export type CloudflareBridgeRuntimeConfig = {
3
3
  /** Base URL of a Worker using `bridge()` from `@cloudflare/sandbox/bridge`. */
4
4
  baseURL: string;
@@ -1,4 +1,4 @@
1
1
  import type { DynamicStructuredTool } from '@langchain/core/tools';
2
- import type * as t from '../../types';
2
+ import type * as t from '@/types';
3
3
  export declare function createCloudflareProgrammaticToolCallingTool(cloudflareConfig: t.CloudflareSandboxExecutionConfig): DynamicStructuredTool;
4
4
  export declare function createCloudflareBashProgrammaticToolCallingTool(cloudflareConfig: t.CloudflareSandboxExecutionConfig): DynamicStructuredTool;
@@ -1,5 +1,5 @@
1
- import type { WorkspaceFS } from '../../tools/local/workspaceFS';
2
- import type * as t from '../../types';
1
+ import type { WorkspaceFS } from '@/tools/local/workspaceFS';
2
+ import type * as t from '@/types';
3
3
  type SpawnResult = {
4
4
  stdout: string;
5
5
  stderr: string;
@@ -1,5 +1,5 @@
1
1
  import type { DynamicStructuredTool } from '@langchain/core/tools';
2
- import type * as t from '../../types';
2
+ import type * as t from '@/types';
3
3
  export declare const CLOUDFLARE_CODING_TOOL_NAMES: readonly string[];
4
4
  export declare const CLOUDFLARE_BASH_CODING_TOOL_NAMES: readonly string[];
5
5
  export declare const CloudflareCodeExecutionToolDescription: string;
@@ -1,4 +1,4 @@
1
- import type * as t from '../types';
1
+ import type * as t from '@/types';
2
2
  export declare function coerceRecordArgs(args: unknown): Record<string, unknown> | undefined;
3
3
  export declare function stableStringify(value: unknown): string;
4
4
  export declare function recordArgsEqual(left: Record<string, unknown>, right: Record<string, unknown>): boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ToolCall, ToolCallChunk } from '@langchain/core/messages/tool';
2
- import type { Graph, MultiAgentGraph, StandardGraph } from '../graphs';
3
- import type { AgentContext } from '../agents/AgentContext';
4
- import type * as t from '../types';
2
+ import type { Graph, MultiAgentGraph, StandardGraph } from '@/graphs';
3
+ import type { AgentContext } from '@/agents/AgentContext';
4
+ import type * as t from '@/types';
5
5
  export declare function handleToolCallChunks({ graph, stepKey, toolCallChunks, metadata, }: {
6
6
  graph: StandardGraph | MultiAgentGraph;
7
7
  stepKey: string;