Skip to content

Commit f6b1386

Browse files
committed
add tool call fields
1 parent e84e819 commit f6b1386

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/server/webui/src/utils/tool_calling/js_repl_tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class JSReplAgentTool extends AgentTool {
1010
super(
1111
JSReplAgentTool.id,
1212
() => StorageUtils.getConfig().jsInterpreterToolUse,
13-
'Executes JavaScript code in the browser console. The code should be self-contained valid javascript. You can use console.log(variable) to print out intermediate values..',
13+
'Executes JavaScript code in the browser console. The code should be self-contained valid javascript. You can use console.log(variable) to print out intermediate values.',
1414
{
1515
type: 'object',
1616
properties: {

tools/server/webui/src/utils/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface Message {
4343
content: string;
4444
timings?: TimingReport;
4545
extra?: MessageExtra[];
46+
tool_calls?: ToolCall[];
4647
// node based system for branching
4748
parent: Message['id'];
4849
children: Message['id'][];
@@ -77,6 +78,7 @@ export interface ViewingChat {
7778

7879
export type PendingMessage = Omit<Message, 'content'> & {
7980
content: string | null;
81+
tool_calls?: ToolCall[];
8082
};
8183

8284
export enum CanvasType {

0 commit comments

Comments
 (0)