Skip to main content

parse_tool

Function parse_tool 

Source
pub async fn parse_tool<'a>(
    conn: &mut PgConnection,
    lines: Pin<Box<Peekable<LinesStream<StreamReader<BoxStream<'a, Result<Bytes, Error>>, Bytes>>>>>,
    conversation_id: Uuid,
    user_context: &ChatbotUserContext,
    app_config: &ApplicationConfiguration,
) -> Result<Vec<APIOutputMessage>>
Expand description

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.