One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelExecutorGenerationChannel.ToolCalls

struct · iOS 27.0+ · SDK 27.1

struct ToolCalls

A tool-call lifecycle event, including per-call argument streaming, reasoning, metadata, usage, or retraction. Events for a specific tool call route through ``Action/toolCall(id:name:action:)``. Use ``Action/removeToolCall(id:)`` to drop a tool call the model retracted.

Members (4)

get · iOS 27.0+

action

TypeScript
get action(): LanguageModelExecutorGenerationChannel_ToolCalls_Action
Swift declaration
var action: LanguageModelExecutorGenerationChannel.ToolCalls.Action

The action to perform.

set · iOS 27.0+

action

TypeScript
set action(value: LanguageModelExecutorGenerationChannel_ToolCalls_Action)
Swift declaration
var action: LanguageModelExecutorGenerationChannel.ToolCalls.Action

The action to perform.

get · iOS 27.0+

entryID

TypeScript
get entryID(): (string) | null
Swift declaration
var entryID: String?

The identifier for the entry.

set · iOS 27.0+

entryID

TypeScript
set entryID(value: (string) | null)
Swift declaration
var entryID: String?

The identifier for the entry.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →