{ +import { BlockOutput } from '@/blocks/types' + +export interface Tool
> { id: string name: string description: string @@ -17,7 +19,11 @@ export interface Tool
{
headers: (params: P) => Record {
diff --git a/tools/xai/chat.ts b/tools/xai/chat.ts
index de8da0d2ff..69a3f17a4a 100644
--- a/tools/xai/chat.ts
+++ b/tools/xai/chat.ts
@@ -13,9 +13,12 @@ interface ChatParams {
}
interface ChatResponse extends ToolResponse {
- tokens?: number
- model: string
- reasoning?: string
+ output: {
+ content: string
+ model: string
+ tokens?: number
+ reasoning?: string
+ }
}
export const chatTool: ToolConfig