init(id:metadata:toolName:arguments:)
Creates a tool call that invokes a tool with the metadata and arguments you provide.
Declaration
init(id: String, metadata: [String : any ConvertibleToGeneratedContent], toolName: String, arguments: GeneratedContent)Parameters
- id:
A unique identifier for the tool call.
- metadata:
Additional information to associate with the tool call, keyed by name.
- toolName:
The name of the tool to invoke.
- arguments:
The arguments to pass to the invoked tool.