Structs§
- APIInput
Message - Common message structure used for LLM API requests
- APIOutput
Message - Common message structure used for LLM API requests
- 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
- LLMResponse
- Response from LLM for simple completions
Enums§
Functions§
- build_
llm_ headers - Builds common headers for LLM requests
- estimate_
tokens - Estimate the number of tokens in a given text.
- get_
params_ for_ model - 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
- model_
is_ thinking - Checks if the model_type is a thinking model type. This function defines which model types are thinking (reasoning)
- parse_
text_ completion - Collects all the completion choices to a string. Assumes the completion has only text message content, no tool calls or tool output.
- process_
llm_ 🔒response - Process a non-streaming LLM response