Interface ThoughtSignature
- All Known Implementing Classes:
AbstractToolCall, BadToolCall, HostedCodeExecutionCallPart, HostedCodeExecutionResultPart, JavaMethodToolCall, ModelBlobPart, ModelTextPart, WebSearchCallPart
public interface ThoughtSignature
An interface for model-generated parts that can carry a thought signature.
This allows for a consistent way to access thought metadata across different
types of parts (e.g., text, tool calls, blobs).
- Author:
- anahata-ai
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the signature of the thought process as a byte array.voidsetThoughtSignature(byte[] thoughtSignature) Sets the signature of the thought process as a byte array.
-
Method Details
-
getThoughtSignature
byte[] getThoughtSignature()Gets the signature of the thought process as a byte array.- Returns:
- The thought signature, or
nullif not present.
-
setThoughtSignature
void setThoughtSignature(byte[] thoughtSignature) Sets the signature of the thought process as a byte array.- Parameters:
thoughtSignature- The thought signature.
-

