fabricatio_agent.cli
CLI entry point.
Attributes
Classes
Task types. |
|
A developer role capable of handling coding tasks. |
|
A test engineer role for generating test cases. |
|
A documentation writer role for writing documentation. |
|
A project leader role capable of handling planning tasks. |
Functions
|
Generate code based on the provided prompt. |
Module Contents
- class fabricatio_agent.cli.TaskType
Bases:
enum.StrEnumTask 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.CooperateA 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.CooperateA 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.CooperateA 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.CooperateA 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.