"""
This type stub file was generated by pyright.
"""

import anthropic

logger = ...
def convert_openai_messages_to_claude(messages: list) -> tuple[str | anthropic.NotGiven, list]:
    """Converts OpenAI chat messages to Claude chat messages."""
    ...

def extract_system_prompt_from_openai_message(messages: list) -> tuple[list, str | anthropic.NotGiven]:
    """Extracts the system prompt from the first message if it exists."""
    ...

def convert_messages(messages: list) -> list:
    """Helper function to convert messages to Claude format."""
    ...

def combine_consecutive_user_messages(messages: list) -> list:
    """Combines consecutive user messages into a single message."""
    ...

def convert_openai_message(message): # -> dict[str, Any]:
    """Converts an OpenAI message to an Anthropic message."""
    ...

def convert_dict_message(message): # -> dict[str, Any] | None:
    """Converts a dictionary message to an Anthropic message."""
    ...

def create_anthropic_message_with_tool_calls(role, content, tool_calls): # -> dict[str, Any]:
    """Converts a OpenAI message with tool calls to an Anthropic message."""
    ...

def merge_user_messages(existing_message, new_message): # -> None:
    """Merges two user messages into a single message."""
    ...

