public static class FunctionCall.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FunctionCall.Builder |
arguments(String arguments)
The arguments to call the function with, as generated by the model in JSON format.
|
FunctionCall |
build() |
FunctionCall.Builder |
copy(FunctionCall model) |
FunctionCall.Builder |
id(String id) |
FunctionCall.Builder |
name(String name)
The name of the function to call.
|
public FunctionCall.Builder id(String id)
public FunctionCall.Builder name(String name)
The name of the function to call.
name
- the value to setpublic FunctionCall.Builder arguments(String arguments)
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
arguments
- the value to setpublic FunctionCall build()
public FunctionCall.Builder copy(FunctionCall model)
Copyright © 2016–2025. All rights reserved.