Skip to main content

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

Project description

fabricatio-capabilities

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

📦 Installation

This package is part of the fabricatio monorepo and can be installed as an optional dependency:

pip install fabricatio[capabilities]

Or install all components:

pip install fabricatio[full]

🔍 Overview

Provides essential tools for:

  • Content extraction and information gathering This feature allows the extraction of structured information from unstructured text sources. For example, it can parse through long documents and extract key facts, figures, and relationships. It uses natural language processing techniques to identify entities, such as names, dates, and locations, and can also extract semantic information like the main ideas and arguments in a text.
  • Proposal generation and evaluation The proposal generation feature takes into account the context and available data to generate relevant proposals. For instance, in a business context, it can generate project proposals based on market research and company goals. The evaluation part assesses the feasibility and potential success of these proposals using predefined criteria, such as cost - benefit analysis and risk assessment.
  • Task execution and management This feature enables the execution and management of complex workflows. It can break down large tasks into smaller subtasks, assign them to different agents or resources, and monitor their progress. For example, in a software development project, it can manage the tasks of coding, testing, and deployment, ensuring that each step is completed in a timely manner.
  • Rating and quality assessment The rating and quality assessment feature evaluates the quality and effectiveness of content or processes. It can assign ratings to different items based on predefined metrics, such as accuracy, completeness, and relevance. In a content - based application, it can rate articles or documents based on their information value and readability.
  • Structured data modeling for capabilities This feature is used to create structured data models for representing capabilities. It defines the attributes and relationships of different capabilities, making it easier to manage and analyze them. For example, in a manufacturing context, it can model the capabilities of different machines, including their production capacity, speed, and accuracy.

Built on top of Fabricatio's core framework with support for asynchronous execution and Rust extensions.

🧩 Key Features

  • Extract Capability: Extract structured information from unstructured text The extract capability uses advanced natural language processing algorithms to analyze unstructured text. It first identifies key entities and then extracts relevant information based on predefined patterns. For example, in a news article, it can extract the names of people involved, the location of an event, and the main points of the story.
  • Propose Capability: Generate proposals and suggestions based on context The propose capability analyzes the available data and context to generate relevant proposals. It can take into account factors such as user preferences, historical data, and current trends. For example, in a marketing campaign, it can propose different strategies based on the target audience and market conditions.
  • Task Management: Execute and manage complex workflows The task management feature uses a workflow engine to manage the execution of tasks. It can handle dependencies between tasks, schedule them based on resource availability, and provide real - time status updates. For example, in a project management application, it can manage the tasks of multiple teams, ensuring that the project is completed on time.
  • Rating System: Evaluate content quality and effectiveness The rating system uses a set of predefined metrics to evaluate the quality and effectiveness of content. It can consider factors such as accuracy, relevance, and readability. For example, in an e - learning platform, it can rate courses based on the quality of the content and the feedback from students.
  • Type Models: Pydantic-based models for consistent data structures The type models are based on Pydantic, which is a data validation library in Python. These models ensure that the data used in the application has a consistent structure. For example, in a data - driven application, it can define the structure of input and output data, making it easier to process and analyze.

📁 Structure

fabricatio-capabilities/
├── capabilities/     - Core capability implementations
│   ├── extract.py    - Content extraction capabilities
│   ├── propose.py    - Proposal generation capabilities
│   ├── rating.py     - Content rating capabilities
│   └── task.py       - Task execution capabilities
└── models/           - Data models for capabilities
    ├── generic.py    - Base models and common definitions
    └── kwargs_types.py - Validation argument types

🔗 Dependencies

Core dependencies:

  • fabricatio-core - Core interfaces and utilities

📄 License

MIT – see LICENSE

GitHub: github.com/Whth/fabricatio

Project details


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_capabilities-0.2.3-cp313-cp313-win_amd64.whl (131.7 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_x86_64.whl (238.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_aarch64.whl (218.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_capabilities-0.2.3-cp313-cp313-macosx_11_0_arm64.whl (205.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_capabilities-0.2.3-cp312-cp312-win_amd64.whl (131.8 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl (239.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_aarch64.whl (218.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_capabilities-0.2.3-cp312-cp312-macosx_11_0_arm64.whl (205.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file fabricatio_capabilities-0.2.3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dbd274e5939c9bfdcc493195ef446a6e53eae5a98d08788e19e22da90f5e80ce
MD5 3415e6c597a387a3f803e024e2bd9fbb
BLAKE2b-256 71eee950783319e6b1b27debe2bd9d798808a3d6508da2f88632ad6b50f466b4

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 de14ddee242b44ff43fb179e86b05c005b12ed65489f4050a2429dfb85e0ea01
MD5 ae3cf193e556fcdce95e9a84f533c61b
BLAKE2b-256 aae13318e9896b60a3a4445a779f9899c805e4e60d287155834f780581901153

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 f2aae77e52e7ebca6ae4026a152cae7ff722aa1513baf000016fbcd2a5f70373
MD5 c24cd3e148976ccb6742f7aa2ea8664f
BLAKE2b-256 b0e789967de973f48bc55b6a6b1ea7868e158aec795c692928d82f528d3d1695

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e0292ea2e9482c27c8ef35c2a670c810ab0775c7ff7721d46748a7f19cae158
MD5 f5a8c16b79d61bb64ef82f201d8778a5
BLAKE2b-256 8836025b31f00b117ce252a05b9aa097e301af84d2f56f4db495b6a581428a67

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a3137ce571d349b1adbf526d190bd036969c1c65f62d8fcbe7b52a8347b8ec60
MD5 e5b74aaf895d3cc078d51c1aadcd9833
BLAKE2b-256 efc77ec103038a48e342c641ca7f3e71b12e46445791466f5f9abc0c641897c6

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 39efbff441fd798482a41b8aef039efa66c44ee5b9365704a066a7350c1652ed
MD5 c2dc6b34412273867a32f11d9ad1c345
BLAKE2b-256 8ab52fdd2fff3696485eacb41dd6d8363b126bddad596cde254f52cd9f46db89

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c1b0e2301a95f0522ae78b21dd5f3c679158285a89271db6bd604ddef16823af
MD5 52e8d798250cc25d09c8bf64a6391849
BLAKE2b-256 721b0305bd28651425101808af0a008f28ca804dfa5cc7920c474209a8e013fc

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.2.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d02d5d74d5f0b661ffe9a2610630f804e32b85bf53d33bfb015ed8a82cbfd81
MD5 a6ff7f176f9c395736921c7464e634d4
BLAKE2b-256 0854c5c6b304e78d1247588d742b9a83b67712e5352468a8a23b2e35c06b599c

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