fabricatio_agent.actions.code

Built-in actions.

Classes

WriteCode

Write code. output the code as a string.

CleanUp

Clean up the workspace.

MakeSpecification

Make a specification for a task.

Planning

Architectural design and planning action.

ReviewCode

Review code and suggest improvements.

Module Contents

class fabricatio_agent.actions.code.WriteCode(/, **data: Any)

Bases: fabricatio_core.Action, fabricatio_agent.capabilities.agent.Agent

Write code. output the code as a string.

ctx_override: ClassVar[bool] = True

Whether to override the instance attr by the context variable.

toolboxes: Set[fabricatio_tool.models.tool.ToolBox] = None
output_key: str = 'code'

The key used to store this action’s output in the context dictionary.

coding_language: str | None = None

The coding language to use, will automatically be inferred from the prompt if not specified.

class fabricatio_agent.actions.code.CleanUp(/, **data: Any)

Bases: fabricatio_core.Action, fabricatio_agent.capabilities.agent.Agent, fabricatio_tool.capabilities.handle_task.HandleTask

Clean up the workspace.

toolboxes: Set[fabricatio_tool.models.tool.ToolBox] = None
class fabricatio_agent.actions.code.MakeSpecification(/, **data: Any)

Bases: fabricatio_core.Action, fabricatio_agent.capabilities.agent.Agent

Make a specification for a task.

ctx_override: ClassVar[bool] = True

Whether to override the instance attr by the context variable.

output_key: str = 'specification'

The key used to store this action’s output in the context dictionary.

class fabricatio_agent.actions.code.Planning(/, **data: Any)

Bases: fabricatio_core.Action, fabricatio_agent.capabilities.agent.Agent

Architectural design and planning action.

ctx_override: ClassVar[bool] = True

Whether to override the instance attr by the context variable.

sequential_thinking: bool = False

Whether to use sequential thinking.

class fabricatio_agent.actions.code.ReviewCode(/, **data: Any)

Bases: fabricatio_core.Action, fabricatio_agent.capabilities.agent.Agent

Review code and suggest improvements.

ctx_override: ClassVar[bool] = True

Whether to override the instance attr by the context variable.