FunctionResponsePart
public final class FunctionResponsePart implements Part
Represents function call output to be returned to the model when it requests a function call.
Summary
Nested types |
|---|
public static class FunctionResponsePart.Companion |
Public fields |
|
|---|---|
final String |
|
boolean |
|
final @NonNull String |
|
final @NonNull List<@NonNull Part> |
|
final @NonNull JsonObject |
|
final String |
Public constructors |
|---|
FunctionResponsePart( |
Public methods |
|
|---|---|
static final @NonNull FunctionResponsePart |
@PublicPreviewAPICreates a |
Public fields
Public constructors
FunctionResponsePart
public FunctionResponsePart(
@NonNull String name,
@NonNull JsonObject response,
String id,
@NonNull List<@NonNull Part> parts
)
| Parameters | |
|---|---|
@NonNull String name |
The name of the called function. |
@NonNull JsonObject response |
The response produced by the function as a |
String id |
Matching |
Public methods
createWithThinking
@PublicPreviewAPI
public static final @NonNull FunctionResponsePart createWithThinking(
@NonNull String name,
@NonNull JsonObject response,
String id,
@NonNull List<@NonNull Part> parts,
boolean isThought,
String thoughtSignature
)
Creates a FunctionResponsePart with advanced thinking metadata.
| Parameters | |
|---|---|
@NonNull String name |
The name of the called function. |
@NonNull JsonObject response |
The response produced by the function as a |
String id |
Matching |
@NonNull List<@NonNull Part> parts |
Additional response parts, if any. |
boolean isThought |
Indicates whether the response is a thought. |
String thoughtSignature |
The signature associated with the thought, if any. |