Module azure_chatbot

Module azure_chatbot 

Source

Structsยง

ChatResponse
ChatbotUserContext
Context about the user and course for a chatbot interaction. Passed to tool implementations so they can access user-specific data.
Choice
Data in a streamed response chunk
Citation
ContentFilter
ContentFilterResults
DataSource
DataSourceParameters
DataSourceParametersAuthentication
Delta
Content in a streamed response chunk Choice
DeltaContext
DeltaTool
Streamed tool call content
EmbeddingDependency
FieldsMapping
GuardedStream ๐Ÿ”’
Custom stream that encapsulates both the response stream and the cancellation guard. Makes sure that the guard is always dropped when the stream is dropped.
LLMRequest
NonThinkingParams
RequestCancelledGuard ๐Ÿ”’
ResponseChunk
Response received from LLM API
ThinkingParams
ToolCallInDelta
A streamed tool call from Azure

Enumsยง

LLMRequestParams
LLMToolChoice
ResponseStreamType
ToolCallType

Constantsยง

CONTENT_FIELD_SEPARATOR ๐Ÿ”’

Functionsยง

make_request_and_stream
parse_and_stream_to_user
Streams and parses a LLM response from Azure that contains a text response.
parse_tool
Streams and parses a LLM response from Azure that contains function calls. Calls the functions and returns a Vec of function results to be sent to Azure.
send_chat_request_and_parse_stream

Type Aliasesยง

PeekableLinesStream ๐Ÿ”’
A LinesStream that is peekable. Needed to determine which type of LLM response is being received.