Interface ZIF_LLM_CHAT_REQUEST
AI Generated documentation.
Overview
The zif_llm_chat_request
interface defines a comprehensive contract for managing chat requests in an LLM (Large Language Model) interaction framework. It provides methods for:
-
Message Management:
-
add_message
: Add a single message add_messages
: Add multiple messagesget_messages
: Retrieve all messages-
clear_messages
: Remove all messages -
Tool Handling:
-
add_tool
: Add a single tool add_tools
: Add multiple toolsget_tools
: Retrieve all toolsclear_tools
: Remove all toolsset_tool_choice
: Configure tool selection strategyadd_tool_result
: Add tool execution results-
add_tool_choices
: Add tool call details -
Structured Output:
-
set_structured_output
: Configure structured output parameters -
set_structured_output_active
: Toggle structured output -
Additional Utilities:
-
add_choice
: Append LLM choice to message list get_internal_request
: Retrieve full request detailsoptions
: Access request configuration options
The interface defines three tool choice constants:
tool_choice_none
tool_choice_auto
tool_choice_required
Dependencies
zllm_msg
: Message typezllm_msgs
: Collection of messageszllm_tools
: Collection of toolszif_llm_tool
: Tool interfacezif_llm_options
: Options interfacezif_llm_so
: Structured output interface