Class ToolResultPart
java.lang.Object
com.codename1.ai.MessagePart
com.codename1.ai.ToolResultPart
The result of a tool invocation, sent back to the model so it can
continue reasoning. Pairs with the originating
ToolCall via the
toolCallId. The carrying ChatMessage should use Role.TOOL.-
Constructor Summary
ConstructorsConstructorDescriptionToolResultPart(String toolCallId, String resultJson) resultJsonis the literal JSON string the tool produced. -
Method Summary
-
Constructor Details
-
ToolResultPart
-
-
Method Details
-
getToolCallId
-
getResultJson
-