One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall

struct · iOS 27.0+ · SDK 27.1

struct ToolCall

A per-tool-call event payload. The `id` and `name` route the event to a specific tool call within the `ToolCalls` entry. The`action` names the mutation.

Members (6)

get · iOS 27.0+

id

TypeScript
get id(): string
Swift declaration
var id: String

The identifier for the tool call.

set · iOS 27.0+

id

TypeScript
set id(value: string)
Swift declaration
var id: String

The identifier for the tool call.

get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
var name: String

The name of the tool call.

set · iOS 27.0+

name

TypeScript
set name(value: string)
Swift declaration
var name: String

The name of the tool call.

get · iOS 27.0+

action

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

The action to perform.

set · iOS 27.0+

action

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

The action to perform.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →