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, Tool.Parameters<Tools[Name]>>
    : never
}[keyof Tools]

Source

Since v1.0.0