Skip to content

ai

dev_tool.tui.ai

__all__ = ['AIInterface'] module-attribute

AIInterface

Bases: BaseInterface

The constructor for the AIInterface class.

Parameters:

  • terminal (Terminal) –

    The blessed Terminal instance.

Source code in dev_tool/tui/ai/interface.py
def __init__(self, terminal: Terminal) -> None:
    """
    The constructor for the AIInterface class.

    :param terminal: The blessed Terminal instance.
    """

    super().__init__(terminal)

display

A method that displays AI content with proper formatting.

Parameters:

  • content (str) –

    The content to display.

Source code in dev_tool/tui/ai/interface.py
def display(self, content: str) -> None:
    """
    A method that displays AI content with proper formatting.

    :param content: The content to display.
    """

    self._display(content)

display_analysis

A method that displays AI analysis results.

Parameters:

  • analysis (str) –

    The analysis content to display.

Source code in dev_tool/tui/ai/interface.py
def display_analysis(self, analysis: str) -> None:
    """
    A method that displays AI analysis results.

    :param analysis: The analysis content to display.
    """

    self.display(analysis)

display_code_review

A method that displays code review results.

Parameters:

  • review (str) –

    The review content to display.

Source code in dev_tool/tui/ai/interface.py
def display_code_review(self, review: str) -> None:
    """
    A method that displays code review results.

    :param review: The review content to display.
    """

    self.display(review)

display_response

A method that displays AI response content.

Parameters:

  • response (str) –

    The response content to display.

Source code in dev_tool/tui/ai/interface.py
def display_response(self, response: str) -> None:
    """
    A method that displays AI response content.

    :param response: The response content to display.
    """

    self.display(response)