Skip to content

default_user_input_bot

dandy.cli.actions.help.intelligence.bots.default_user_input_bot

DefaultUserInputBot

Bases: Bot

Source code in dandy/bot/bot.py
def __init__(
    self,
    llm_config: str | None = None,
    llm_temperature: float | None = None,
    **kwargs,
) -> None:
    super().__init__(
        llm_config=llm_config,
        llm_temperature=llm_temperature,
        **kwargs,
    )

    self.recorder_event_id = ''
    self._recorder_called = None

    for key, value in kwargs.items():
        setattr(self, key, value)

    self.__post_init__()

role = 'Dandy CLI Helper' class-attribute instance-attribute

task = 'Read the user input and provide suggestions on how they can accomplish their task using this command line interface.' class-attribute instance-attribute

guidelines = default_user_input_bot_guidelines_prompt() class-attribute instance-attribute

intel_class = DefaultUserInputIntel class-attribute instance-attribute

process

Source code in dandy/cli/actions/help/intelligence/bots/default_user_input_bot.py
def process(self, user_input: str) -> DefaultUserInputIntel:
    return self.llm.prompt_to_intel(
        prompt=user_input
    )