xia_actor.actor.MockMindset

class xia_actor.actor.MockMindset(mock_responses: Optional[list] = None, current_index: int = 0, **kwargs)

Bases: Mindset

__init__(mock_responses: Optional[list] = None, current_index: int = 0, **kwargs)

Methods

__init__([mock_responses, current_index])

answer(profile, prompt[, context])

Answer the question

Attributes

sign_for_help

async answer(profile: str, prompt: str, context: Optional[list] = None, **kwargs)

Answer the question

Parameters
  • profile – profile context of the question

  • prompt – Asked question

  • context – Conversation context

  • **kwargs – other parameters