Download packages/data-schemas/src/models/toolCall.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/toolCall.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/models/toolCall.ts
-
curl -L -o toolCall.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/toolCall.ts
338 Bytes
| import toolCallSchema, { IToolCallData } from '~/schema/toolCall'; | |
| /** | |
| * Creates or returns the ToolCall model using the provided mongoose instance and schema | |
| */ | |
| export function createToolCallModel(mongoose: typeof import('mongoose')) { | |
| return mongoose.models.ToolCall || mongoose.model<IToolCallData>('ToolCall', toolCallSchema); | |
| } | |