build_default_summary_prompt
- conversation_text (str): The conversation to be summarized.
generate_tool_prompt
extract_tool_call
- response (Any): The model’s response object.
safe_model_dump
model_dump method if available,
otherwise it falls back to the dict method.
convert_to_function_tool
convert_to_schema
get_info_dict
- session_id (str, optional): The ID of the chat session.
- usage (Dict[str, int], optional): Information about the usage of the LLM.
- termination_reasons (List[str]): The reasons for the termination of the chat session.
- num_tokens (int): The number of tokens used in the chat session.
- tool_calls (List[ToolCallingRecord]): The list of function calling records, containing the information of called tools.
- external_tool_call_requests (Optional[List[ToolCallRequest]]): The requests for external tool calls.