effect-io-ai

Package: @effect/ai
Module: Response

Response.ToolCallParts

Utility type that extracts tool call parts from a set of tools.

Signature

type ToolCallParts<Tools> = {
  [Name in keyof Tools]: Name extends string ?
    ToolCallPart<Name, Schema.Struct.Type<Tool.ParametersSchema<Tools[Name]>["fields"]>>
    : never
}[keyof Tools]

Source

Since v1.0.0