One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelExecutorGenerationChannel.ToolCalls.Action

struct · iOS 27.0+ · SDK 27.1

struct Action

An operation that can be performed on a tool-calls entry. `Action` is an enum-like struct; construct one with a leading-dot factory such as ``toolCall(id:name:action:)``.

Members (4)

static · iOS 27.0+

removeToolCall

TypeScript
static removeToolCall(id: string): LanguageModelExecutorGenerationChannel_ToolCalls_Action
Swift declaration
static func removeToolCall(id: String) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action
static · iOS 27.0+

updateUsage

TypeScript
static updateUsage(input: LanguageModelExecutorGenerationChannel_Usage_Input, output: LanguageModelExecutorGenerationChannel_Usage_Output, metadata?: Record<string, SDKHandle>): LanguageModelExecutorGenerationChannel_ToolCalls_Action
Swift declaration
static func updateUsage(input: LanguageModelExecutorGenerationChannel.Usage.Input, output: LanguageModelExecutorGenerationChannel.Usage.Output, metadata: [String : any ConvertibleToGeneratedContent] = [:]) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action
static · iOS 27.0+

updateMetadata

TypeScript
static updateMetadata(values: Record<string, SDKHandle>): LanguageModelExecutorGenerationChannel_ToolCalls_Action
Swift declaration
static func updateMetadata(_ values: [String : any ConvertibleToGeneratedContent]) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action
static · iOS 27.0+

toolCall

TypeScript
static toolCall(id: string, name: string, action: LanguageModelExecutorGenerationChannel_ToolCalls_ToolCall_Action): LanguageModelExecutorGenerationChannel_ToolCalls_Action
Swift declaration
static func toolCall(id: String, name: String, action: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →