Interface ToolGuardrailService.ToolKey

Enclosing interface:
ToolGuardrailService

@Experimental public static interface ToolGuardrailService.ToolKey
Identifies a tool to the ToolGuardrailService that bound it (see ToolGuardrailService.bind(AiServiceTool)), as the key of the execute* and has* methods. It carries the specification and the source of the tool, which the guardrail requests are built from. It is only meaningful to the service that bound it: what else it holds is up to the implementation of the service.
Since:
1.25.0
  • Method Details

    • toolSpecification

      ToolSpecification toolSpecification()
      The specification of the tool, as the LLM sees it.
      Returns:
      The specification, never null.
    • toolSource

      ToolSource toolSource()
      Where the tool comes from.
      Returns:
      The source, never null.
    • toolName

      default String toolName()
      The name of the tool, as the LLM sees it.
      Returns:
      The name of the tool.