fabricatio_agent.cli

CLI entry point.

Attributes

app

dev_reg

Classes

TaskType

Task types.

Developer

A developer role capable of handling coding tasks.

TestEngineer

A test engineer role for generating test cases.

DocumentationWriter

A documentation writer role for writing documentation.

ProjectLeader

A project leader role capable of handling planning tasks.

Functions

code(, sequential_thinking)

Generate code based on the provided prompt.

Module Contents

class fabricatio_agent.cli.TaskType

Bases: enum.StrEnum

Task types.

Coding = 'coding'
Orchestrate = 'orchestrate'
CleanUp = 'cleanup'
Plot = 'plot'
Synthesize = 'synthesize'
Test = 'test'
Documentation = 'documentation'
fabricatio_agent.cli.app
fabricatio_agent.cli.dev_reg
class fabricatio_agent.cli.Developer(/, **data: Any)

Bases: fabricatio_core.Role, fabricatio_team.capabilities.team.Cooperate

A developer role capable of handling coding tasks.

subscriptions: Dict[fabricatio_core.models.role.EventPattern, fabricatio_core.WorkFlow] = None

The registry of events and workflows.

class fabricatio_agent.cli.TestEngineer(/, **data: Any)

Bases: fabricatio_core.Role, fabricatio_team.capabilities.team.Cooperate

A test engineer role for generating test cases.

subscriptions: Dict[fabricatio_core.models.role.EventPattern, fabricatio_core.WorkFlow] = None

A dictionary of event-workflow pairs.

class fabricatio_agent.cli.DocumentationWriter(/, **data: Any)

Bases: fabricatio_core.Role, fabricatio_team.capabilities.team.Cooperate

A documentation writer role for writing documentation.

subscriptions: Dict[fabricatio_core.models.role.EventPattern, fabricatio_core.WorkFlow] = None

A dictionary of event-workflow pairs.

class fabricatio_agent.cli.ProjectLeader(/, **data: Any)

Bases: fabricatio_core.Role, fabricatio_team.capabilities.team.Cooperate

A project leader role capable of handling planning tasks.

This role implements the Cooperate capability and maintains a registry of workflows for different task types. The project leader can execute planning tasks through the PlanningWorkFlow which breaks down complex tasks into smaller subtasks.

subscriptions: Dict[fabricatio_core.models.role.EventPattern, fabricatio_core.WorkFlow] = None

The registry of events and workflows.

fabricatio_agent.cli.code(prompt: str = Argument(..., help='The prompt to generate code from.'), sequential_thinking: bool = Option(False, '-sq', '--sequential-thinking', help='Whether to use sequential thinking.')) None

Generate code based on the provided prompt.

This function creates a development team with a Developer role and dispatches a coding task. If the task is complex, it will be broken down into smaller subtasks through the architect workflow.