Interface ZIF_LLM_TOOL
AI Generated documentation.
Overview
The zif_llm_tool interface defines a standardized contract for tool (function) calls in an SAP ABAP context, specifically designed for interaction with Large Language Models (LLMs). It provides methods for managing and executing tool-based operations with a structured approach.
Key methods include:
get_result(): Retrieves the result of a tool callget_tool_details(): Returns metadata about the tool, including name, description, and parameter informationexecute(): Executes a tool with given data and returns the result
The interface defines several complex types:
tool_parameters: Describes tool parameters with data description and descriptionstool_details: Captures comprehensive tool metadatatool_result: Represents the outcome of a tool execution, including data, tool call ID, and name
Dependencies
zif_llm_tool_parser: Used for parsing tool-related descriptionscl_abap_datadescr: Used for describing data types of tool parameters