diff --git a/web/hooks/useSendChatMessage.ts b/web/hooks/useSendChatMessage.ts
index 759a3ebb7..1c6f77905 100644
--- a/web/hooks/useSendChatMessage.ts
+++ b/web/hooks/useSendChatMessage.ts
@@ -58,6 +58,7 @@ import {
updateThreadAtom,
updateThreadWaitingForResponseAtom,
} from '@/helpers/atoms/Thread.atom'
+import { ModelTool } from '@/types/model'
export const reloadModelAtom = atom(false)
@@ -185,7 +186,7 @@ export default function useSendChatMessage() {
},
activeThreadRef.current,
messages ?? currentMessages,
- (await window.core.api.getTools())?.map((tool) => ({
+ (await window.core.api.getTools())?.map((tool: ModelTool) => ({
type: 'function' as const,
function: {
name: tool.name,
@@ -311,7 +312,7 @@ export default function useSendChatMessage() {
{
type: ContentType.Text,
text: {
- value: `Executing Tool ${toolCall.function.name} with arguments ${toolCall.function.arguments}`,
+ value: `Executing Tool ${toolCall.function.name} with arguments ${toolCall.function.arguments}`,
annotations: [],
},
},
diff --git a/web/types/model.d.ts b/web/types/model.d.ts
index bbe9d2cc6..5da2b7972 100644
--- a/web/types/model.d.ts
+++ b/web/types/model.d.ts
@@ -2,3 +2,9 @@
* ModelParams types
*/
export type ModelParams = ModelRuntimeParams | ModelSettingParams
+
+export type ModelTool = {
+ name: string
+ description: string
+ inputSchema: string
+}