fabricatio_mock.models.mock_role

Mock class representing a test role with LLM capabilities.

This class combines the base Role class with LLM usage capabilities for testing purposes. It provides default implementations and test values for LLM-related attributes.

Classes

LLMTestRole

Test class combining Role and UseLLM functionality.

ProposeTestRole

Test class combining LLMTestRole and Propose functionality.

Module Contents

class fabricatio_mock.models.mock_role.LLMTestRole(/, **data: Any)[source]

Bases: fabricatio_core.Role, fabricatio_core.capabilities.usages.UseLLM

Test class combining Role and UseLLM functionality.

A concrete implementation of Role mixed with UseLLM capabilities for testing purposes.

llm_send_to: str | None = 'llm'

The group name of which the requests will be sent.

llm_no_cache: bool | None = True

Whether to disable caching for the LLM model.

class fabricatio_mock.models.mock_role.ProposeTestRole(/, **data: Any)[source]

Bases: LLMTestRole, fabricatio_core.capabilities.propose.Propose

Test class combining LLMTestRole and Propose functionality.