evolving_ideas.strategies.base

evolving_ideas.strategies.base

Classes

MethodStrategy

Abstract base class for strategy methods in the evolving ideas application.

Module Contents

class evolving_ideas.strategies.base.MethodStrategy(llm_responder: evolving_ideas.infra.responder.LLMResponder, builder: evolving_ideas.prompts.builder.PromptBuilder | None = None, chat_logger: evolving_ideas.interface.presenters.ChatLogger | None = None)

Bases: abc.ABC

Abstract base class for strategy methods in the evolving ideas application. This class defines the interface for all strategy methods that can be implemented for generating and evolving ideas.

builder: evolving_ideas.prompts.builder.PromptBuilder
llm_responder
logger
abstract run(role: str, task: str, context: str) dict

Abstract method to run the strategy with the given parameters.

Parameters:
  • role (str) – The role of the AI.

  • task (str) – The task to be performed.

  • context (str) – Context for the idea.

Returns:

A dictionary containing the results of the strategy.

Return type:

dict