Contents

call(arguments:)

Performs the tool’s action when a language model wants to use this tool.

Declaration

@concurrent func call(arguments: Self.Arguments) async throws -> Self.Output

Mentioned in

Discussion

If errors are thrown in the body of this method, the framework wraps them in a LanguageModelSession.ToolCallError and rethrows them at the call site of respond(to:options:).

See Also

Calling a tool