@bluecopa/harness 0.1.0-snapshot.71 → 0.1.0-snapshot.72
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/package.json +1 -1
- package/src/arc/agent-runner.ts +3 -3
package/package.json
CHANGED
package/src/arc/agent-runner.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { generateText, generateObject, tool as aiTool } from 'ai';
|
|
|
3
3
|
import { anthropic as defaultAnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import type { ModelFactory } from './types';
|
|
6
|
-
import type { AgentMessage, ToolCallAction } from '../agent/types';
|
|
6
|
+
import type { AgentMessage, ToolCallAction, ToolCallInfo } from '../agent/types';
|
|
7
7
|
import { getTextContent } from '../agent/types';
|
|
8
8
|
import type { ToolProvider, ToolResult } from '../interfaces/tool-provider';
|
|
9
9
|
import type { HookRunner } from '../hooks/hook-runner';
|
|
@@ -278,7 +278,7 @@ export class AgentRunner {
|
|
|
278
278
|
...config.tools,
|
|
279
279
|
ReadFullResult: aiTool({
|
|
280
280
|
description: 'Retrieve the full content of a paged tool result. Use when the summary is insufficient and you need the complete data.',
|
|
281
|
-
|
|
281
|
+
inputSchema: z.object({
|
|
282
282
|
ref: z.string().describe('The paged result reference from a previous tool output'),
|
|
283
283
|
lineRange: z.object({
|
|
284
284
|
start: z.number().int().min(1).describe('Start line (1-indexed, inclusive)'),
|
|
@@ -593,7 +593,7 @@ export class AgentRunner {
|
|
|
593
593
|
};
|
|
594
594
|
messages.push({ role: 'assistant', content: '', toolCalls: [info] });
|
|
595
595
|
const toolResult = await executeTool(
|
|
596
|
-
{ name: tc.toolName, args: tc.input ?? {} },
|
|
596
|
+
{ type: 'tool', name: tc.toolName, args: tc.input ?? {} },
|
|
597
597
|
config.toolProvider,
|
|
598
598
|
{
|
|
599
599
|
...(config.executeToolAction != null ? { executeToolAction: config.executeToolAction } : {}),
|