Package com.google.genkit.ai
Class ToolResponse
java.lang.Object
com.google.genkit.ai.ToolResponse
ToolResponse represents a response from a tool invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ToolResponse(String name, Object output) Creates a ToolResponse with the given name and output.ToolResponse(String ref, String name, Object output) Creates a ToolResponse with the given ref, name and output. -
Method Summary
-
Constructor Details
-
ToolResponse
public ToolResponse()Default constructor. -
ToolResponse
Creates a ToolResponse with the given name and output.- Parameters:
name- the tool nameoutput- the tool output
-
ToolResponse
Creates a ToolResponse with the given ref, name and output.- Parameters:
ref- the reference IDname- the tool nameoutput- the tool output
-
-
Method Details
-
getRef
-
setRef
-
getName
-
setName
-
getOutput
-
setOutput
-
getMetadata
-
setMetadata
-