Interface ToolExecutionResult
- All Known Implementing Classes:
DefaultToolExecutionResult
public interface ToolExecutionResult
The result of a tool execution.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a defaultToolExecutionResult
builder.static List<Generation>
buildGenerations
(ToolExecutionResult toolExecutionResult) Build a list ofGeneration
from the tool execution result, useful for sending the tool execution result to the client directly.The history of messages exchanged during the conversation, including the tool execution result.default boolean
Whether the tool execution result should be returned directly or passed back to the model.
-
Field Details
-
FINISH_REASON
- See Also:
-
METADATA_TOOL_ID
- See Also:
-
METADATA_TOOL_NAME
- See Also:
-
-
Method Details
-
conversationHistory
The history of messages exchanged during the conversation, including the tool execution result. -
returnDirect
default boolean returnDirect()Whether the tool execution result should be returned directly or passed back to the model. -
builder
Create a defaultToolExecutionResult
builder. -
buildGenerations
Build a list ofGeneration
from the tool execution result, useful for sending the tool execution result to the client directly.
-