plan
marvin.fns.plan
Constants
PROMPT
T
Classes
PlanTask
Functions
create_tasks
plan
Generate a series of Marvin Tasks that will allow you or other AI agents to achieve a goal.
Args: instructions: The objective to achieve. agent: The agent to use for planning. thread: The thread to use for planning. context: Additional context to use for planning. available_agents: A list of agents that can be used for planning. tools: A list of tools that can be used for planning.
Returns: A list of Marvin Tasks that will allow you or other AI agents to achieve the objective.
Examples:
tasks = marvin.plan(“Create a new blog post about the latest AI trends.”) marvin.run_tasks(tasks)
plan_async
Generate a series of new tasks in order to achieve a goal.
Args: instructions: The objective to achieve. agent: The agent to use for planning. thread: The thread to use for planning. context: Additional context to use for planning. available_agents: A list of agents that can be used for planning. tools: A list of tools that can be used for planning.
Returns: A list of Marvin Tasks that will allow you or other AI agents to achieve the objective.
Examples:
tasks = await marvin.plan_async(“Create a new blog post about the latest AI trends.”) await marvin.run_tasks_async(tasks)
Parent Module: fns