Structs§
- APIMessage
- Common message structure used for LLM API requests
- APIMessage
Text - LLM api message that contains only text
- APIMessage
Tool Call - LLM api message that contains tool calls. The tool calls were originally made by the LLM, but have been processed and added to the messages in a LLMRequest
- APIMessage
Tool Response - LLM api message that contains outputs of tool calls
- APITool
- APITool
Call - An LLM tool call that is part of a request to Azure
- Azure
Completion Request - Simple completion-focused LLM request for Azure OpenAI Note: In Azure OpenAI, the model is specified in the URL, not in the request body
- LLMChoice
- LLMCompletion
Response - Response from LLM for simple completions
Enums§
Constants§
Functions§
- build_
llm_ headers - Builds common headers for LLM requests
- estimate_
tokens - Estimate the number of tokens in a given text.
- make_
blocking_ llm_ request - Makes a non-streaming request to an LLM using application configuration
- make_
llm_ 🔒request - Makes a non-streaming request to an LLM
- make_
streaming_ llm_ request - Makes a streaming request to an LLM
- prepare_
azure_ endpoint - Prepares Azure OpenAI endpoint with API version
- process_
llm_ 🔒response - Process a non-streaming LLM response