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.4-cp313-cp313-win_amd64.whl (131.0 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_capabilities-0.2.4-cp313-cp313-manylinux_2_34_x86_64.whl (238.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_capabilities-0.2.4-cp313-cp313-manylinux_2_34_aarch64.whl (218.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

fabricatio_capabilities-0.2.4-cp313-cp313-macosx_11_0_arm64.whl (204.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fabricatio_capabilities-0.2.4-cp312-cp312-win_amd64.whl (131.5 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_capabilities-0.2.4-cp312-cp312-manylinux_2_34_x86_64.whl (238.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

fabricatio_capabilities-0.2.4-cp312-cp312-manylinux_2_34_aarch64.whl (218.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

fabricatio_capabilities-0.2.4-cp312-cp312-macosx_11_0_arm64.whl (205.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2db13127f1965622c374cba3473e2fe538edcf3c9f72089d0ec6d2e39a92b1da
MD5 88dc4b598d23480e9c4c39627a1e074f
BLAKE2b-256 56edb0dbe900bf6af7d25936ce21c421330842aa7bea94e48e696d60ba842260

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 570eb11f45fdc304abf7a8d71a68f5cf28f7261641117f65a3cf9eae7d19611f
MD5 a0b942034df8641eda5da519db8d170b
BLAKE2b-256 5a381406cddc9a699447785f7a8d5473528c205d428b2c1a455529643b2e8a6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 ac12eb2e9571ae5b6548eeced83a4916ae4ac670b4dc1cbfbd82b807b7bb5698
MD5 b8af5e5b831fb643af392aec9b56a6fc
BLAKE2b-256 bf441cf7b1b8bde9b8415366d6d4ee626230fb1efafa28cf39118ee9e601a783

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a0da5e44ddeb45aab40001d3c0d6804b45e279cae85b66aa5be27f4fa9f0559
MD5 4ffbbad84af04e526154ad4c7330b153
BLAKE2b-256 a78c873ed3b601964a08a35569ccdd7b5c16d3655c952ed6c97a3c9788bc97db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b73671b64f67c5ff7fea13f7ed6cd77baf07f79df861306d83448d8c3af70c9e
MD5 3f4f84f2e1b58ca9befe941e49a81617
BLAKE2b-256 bd37e7e6876f63d6aaae21116c29b1660ba25b20edbaa09ca77e8e4eb7e128f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2075841a01782113a31e049dec678dae2346cce03b85c6e0298b23c2ae534ca4
MD5 4a72afacaab1fc523080d2c9852a69ab
BLAKE2b-256 f27e36e99e26328499be2565b0ca101d11fd8d02e3a4656b06fc9668ffc9605d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 57528ff8e8471f2d0c976dd723d3fdbabee0b860aacc0315c5be771a381e07d5
MD5 72c02a03f585656b706a64af632afde1
BLAKE2b-256 9cc29ee111c50f63bdbed21020ac4e6da63c4e3da9b736bfd853ae8a8a000526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabricatio_capabilities-0.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e96556594a1c0b449e836996648f10ffe3dc0ef66a45d1ff9e41f6548ea01c5
MD5 41318d15d4d5c1c304ff6ff2addf8357
BLAKE2b-256 ed812735b3b0881b77dc26e5a517ae7ec2c143961147b7ce8bd010fec62b6178

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