mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 23:02:02 +03:00
fix: align tool execute parameter order
This commit is contained in:
@@ -40,9 +40,9 @@ export function toToolDefinitions(tools: AnyAgentTool[]): ToolDefinition[] {
|
|||||||
execute: async (
|
execute: async (
|
||||||
toolCallId,
|
toolCallId,
|
||||||
params,
|
params,
|
||||||
|
signal: AbortSignal | undefined,
|
||||||
onUpdate: AgentToolUpdateCallback<unknown> | undefined,
|
onUpdate: AgentToolUpdateCallback<unknown> | undefined,
|
||||||
_ctx,
|
_ctx,
|
||||||
signal: AbortSignal | undefined,
|
|
||||||
): Promise<AgentToolResult<unknown>> => {
|
): Promise<AgentToolResult<unknown>> => {
|
||||||
try {
|
try {
|
||||||
return await tool.execute(toolCallId, params, signal, onUpdate);
|
return await tool.execute(toolCallId, params, signal, onUpdate);
|
||||||
@@ -91,9 +91,9 @@ export function toClientToolDefinitions(
|
|||||||
execute: async (
|
execute: async (
|
||||||
toolCallId,
|
toolCallId,
|
||||||
params,
|
params,
|
||||||
|
_signal: AbortSignal | undefined,
|
||||||
_onUpdate: AgentToolUpdateCallback<unknown> | undefined,
|
_onUpdate: AgentToolUpdateCallback<unknown> | undefined,
|
||||||
_ctx,
|
_ctx,
|
||||||
_signal: AbortSignal | undefined,
|
|
||||||
): Promise<AgentToolResult<unknown>> => {
|
): Promise<AgentToolResult<unknown>> => {
|
||||||
const outcome = await runBeforeToolCallHook({
|
const outcome = await runBeforeToolCallHook({
|
||||||
toolName: func.name,
|
toolName: func.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user