mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 20:09:47 +00:00
fix: type xai x_search tool result
This commit is contained in:
parent
a89f171865
commit
c0d3743cdb
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import type { AgentToolResult } from "@mariozechner/pi-agent-core";
|
||||
import { Type } from "@sinclair/typebox";
|
||||
|
||||
export function buildMissingXSearchApiKeyPayload() {
|
||||
|
|
@ -10,7 +11,7 @@ export function buildMissingXSearchApiKeyPayload() {
|
|||
}
|
||||
|
||||
export function createXSearchToolDefinition(
|
||||
execute: (toolCallId: string, args: Record<string, unknown>) => Promise<unknown>,
|
||||
execute: (toolCallId: string, args: Record<string, unknown>) => Promise<AgentToolResult<unknown>>,
|
||||
) {
|
||||
return {
|
||||
label: "X Search",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue