A Python library providing foundational actions for file system operations and output management in LLM applications.
Project description
fabricatio-actions
A Python library providing foundational actions for file system operations and output management in LLM applications.
📦 Installation
This package is part of the fabricatio monorepo and can be installed as an optional dependency:
pip install fabricatio[actions]
Or install all components:
pip install fabricatio[full]
🔍 Overview
Provides essential tools for:
- File system operations (read/write, path handling)
- Output formatting and display
- Basic task execution building blocks
Designed to work seamlessly with Fabricatio's agent framework and other modules like fabricatio-core,
fabricatio-capabilities, and fabricatio-improve.
🧩 Usage Example
from fabricatio.actions import ReadText
from fabricatio import Role, Event, Task, WorkFlow
import asyncio
(Role(name="file_reader", description="file reader role")
.register_workflow(Event.quick_instantiate("read_text"), WorkFlow(steps=(ReadText().to_task_output(),))
))
async def main():
ret: str = await Task(name="read_file", goals=["read file"], description="read file").update_init_context(
read_path="path/to/file"
).delegate("read_text")
print(ret)
asyncio.run(main())
📁 Structure
fabricatio-actions/
├── actions/ - Action implementations
│ ├── fs.py - File system operations
│ └── output.py - Output formatting and display
├── models/ - Data models
│ └── generic.py - Shared type definitions
└── __init__.py - Package entry point
🔗 Dependencies
Core dependencies:
fabricatio-core- Core interfaces and utilitiesfabricatio-capabilities- Base capability patterns
📄 License
MIT – see LICENSE
GitHub: github.com/Whth/fabricatio
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fabricatio_actions-0.1.4.dev3-py3-none-any.whl.
File metadata
- Download URL: fabricatio_actions-0.1.4.dev3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a38887b5bc71bc60e4ef4e91c933356ca75344b24b85b862c93808e6ec36511
|
|
| MD5 |
e4b9f632d7721eb82eed374c6cdeaaef
|
|
| BLAKE2b-256 |
880bed8b6be248d99fee671cd266a9b0aed8c0904b8e1b9cbd500a7d66ea84e5
|