Interface ToolExecutionEligibilityChecker

All Superinterfaces:
Function<ChatResponse,Boolean>

public interface ToolExecutionEligibilityChecker extends Function<ChatResponse,Boolean>
Interface for determining when tool execution should be performed based on model responses.
Author:
Christian Tzolov
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    isToolCallResponse(@Nullable ChatResponse chatResponse)
    Determines if the response is a tool call message response.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • isToolCallResponse

      default boolean isToolCallResponse(@Nullable ChatResponse chatResponse)
      Determines if the response is a tool call message response.
      Parameters:
      chatResponse - The response from the chat model call
      Returns:
      true if the response is a tool call message response, false otherwise