Contents

toolCall(id:name:action:)

Creates an action that routes an event to a specific tool call within the entry.

Declaration

static func toolCall(id: String, name: String, action: LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall.Action) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action

Parameters

  • id:

    The identifier of the tool call the event targets.

  • name:

    The name of the tool being called.

  • action:

    The operation to perform on the tool call.

See Also

Tool calling actions