UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

16 lines 864 B
import type { Tool, ToolSet } from '../_types/@internal_ai-sdk-v5/dist/index.js'; /** * Find a provider-defined tool by its model-facing name. */ export declare function findProviderToolByName(tools: ToolSet | undefined, toolName: string): Tool | undefined; /** * Infers the providerExecuted flag for a tool call. * * When the raw stream from doStream doesn't include providerExecuted on a tool-call, * we infer it based on the tool definition: * - Provider tools with a custom execute → providerExecuted: false (user handles execution) * - Provider tools without execute → providerExecuted: true (provider handles execution) * - Regular function tools → leave as undefined */ export declare function inferProviderExecuted(providerExecuted: boolean | undefined, tool: unknown): boolean | undefined; //# sourceMappingURL=provider-tool-utils.d.ts.map