Skip to content

Commit 07a3bfa

Browse files
committed
refactor: remove toolAgent/index.ts re-export file and update imports
1 parent b24f25e commit 07a3bfa

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

packages/agent/src/core/toolAgent/index.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/agent/src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ export * from './tools/interaction/userPrompt.js';
2525
// Core
2626
export * from './core/executeToolCall.js';
2727
export * from './core/types.js';
28-
export * from './core/toolAgent/index.js';
28+
// Tool Agent Core
29+
export { toolAgent } from './core/toolAgent/toolAgentCore.js';
30+
export * from './core/toolAgent/config.js';
31+
export * from './core/toolAgent/messageUtils.js';
32+
export * from './core/toolAgent/toolExecutor.js';
33+
export * from './core/toolAgent/tokenTracking.js';
34+
export * from './core/toolAgent/types.js';
2935

3036
// Utils
3137
export * from './tools/getTools.js';

packages/agent/src/tools/interaction/subAgent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { zodToJsonSchema } from 'zod-to-json-schema';
44
import {
55
getDefaultSystemPrompt,
66
getModel,
7-
toolAgent,
8-
} from '../../core/toolAgent/index.js';
7+
} from '../../core/toolAgent/config.js';
8+
import { toolAgent } from '../../core/toolAgent/toolAgentCore.js';
99
import { Tool, ToolContext } from '../../core/types.js';
1010
import { getTools } from '../getTools.js';
1111

0 commit comments

Comments
 (0)