Skip to main content

A foundational Python library providing core components for building LLM-driven applications using an event-based agent structure.

Project description

fabricatio-core

A foundational Python library providing core components for building LLM-driven applications using an event-based agent structure.

📦 Installation

This package is part of the fabricatio monorepo and is available as a single package:

pip install fabricatio

🔍 Overview

Provides essential tools for:

  • Event-based architecture patterns
  • Role-based agent execution framework
  • Task scheduling and management
  • File system operations and content detection
  • Logging and diagnostics
  • Template rendering and configuration handling
  • Type-safe data models for common entities
  • Asynchronous execution utilities

Built on a hybrid Rust/Python foundation for performance-critical operations.

🧩 Key Features

  • Event System: Reactive architecture with event emitters and listeners
  • Role Framework: Agent roles with workflow dispatching capabilities
  • Task Engine: Status-aware task management with dependencies
  • Toolbox System: Callable tool registry with rich metadata
  • Type Models: Pydantic-based models for consistent data structures
  • File Utilities: Smart file operations with content type detection
  • Template Engine: Handlebars-based template rendering system
  • Language Tools: Language detection and text processing utilities

📁 Structure

fabricatio-core/
├── capabilities/     - Core capability definitions
├── decorators.py     - Common function decorators
├── emitter.py        - Event emission and handling
├── fs/               - File system operations
├── journal.py        - Logging infrastructure
├── models/           - Core data models
│   ├── action.py     - Action base classes
│   ├── generic.py    - Base traits (Named, Described, etc.)
│   ├── role.py       - Role definitions
│   ├── task.py       - Task abstractions
│   └── tool.py       - Tool interfaces
├── parser.py         - Text parsing utilities
├── rust.pyi          - Rust extension interfaces
├── utils.py          - General utility functions
└── __init__.py       - Package entry point

📄 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fabricatio_core-0.1.3.dev20-cp313-cp313-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_core-0.1.3.dev20-cp312-cp312-manylinux_2_34_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file fabricatio_core-0.1.3.dev20-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_core-0.1.3.dev20-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c4cf3bc87f0b8030ce165cd5e0922b28f3c4165e6fb71206e1f56e0797eb7f52
MD5 fe5975c269ce028d8a36b19d6248031d
BLAKE2b-256 4c429d7c98201acc68c718fc7f208de01130dc7d093f1d7283d28a2ac3f0a3e6

See more details on using hashes here.

File details

Details for the file fabricatio_core-0.1.3.dev20-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_core-0.1.3.dev20-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e0b8c3c0defa8981a388de2b686f12e7bfb76878bd0733d54ecffe1f285d33f5
MD5 df0a6ded8912fc4c6acd2efe4f866e46
BLAKE2b-256 6a1da9bc1624f40c902d24751febafc8eaebeb490d7e969f8be3ee4929c9dc4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page