Package: @effect/ai
Module: Prompt
Content part representing a tool call request.
Example
import { Prompt } from "@effect/ai"
const toolCallPart: Prompt.ToolCallPart = Prompt.makePart("tool-call", {
id: "call_123",
name: "get_weather",
params: { city: "San Francisco", units: "celsius" },
providerExecuted: false,
})
Signature
export interface ToolCallPart extends BasePart<"tool-call", ToolCallPartOptions> {
/**
* Unique identifier for this tool call.
*/
readonly id: string
/**
* Name of the tool to invoke.
*/
readonly name: string
/**
* Parameters to pass to the tool.
*/
readonly params: unknown
/**
* Whether the tool was executed by the provider (true) or framework (false).
*/
readonly providerExecuted: boolean
}
Since v1.0.0