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.1.6.dev3-cp313-cp313-win_amd64.whl (102.7 kB view details)

Uploaded CPython 3.13Windows x86-64

fabricatio_capabilities-0.1.6.dev3-cp313-cp313-manylinux_2_34_x86_64.whl (236.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

fabricatio_capabilities-0.1.6.dev3-cp312-cp312-win_amd64.whl (102.7 kB view details)

Uploaded CPython 3.12Windows x86-64

fabricatio_capabilities-0.1.6.dev3-cp312-cp312-manylinux_2_34_x86_64.whl (236.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file fabricatio_capabilities-0.1.6.dev3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.1.6.dev3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2cc52a0c58aec3596711a6047d861653413d9a235fbb4f712eaf35573b687daa
MD5 cf0bed5a3c2cd3f34e1b1b0a79931836
BLAKE2b-256 db99f29fba99f15ec939bf93c93aac1d461c36491be57bd1f8c22be5bc4b0f6c

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.1.6.dev3-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.1.6.dev3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bc3e16bfe17c1d804cea6d1773952a4a6daa5807257b9dc8e56152f1591b7862
MD5 658e458e9875811c6d1dc300034f5e69
BLAKE2b-256 33c604151da3ee37b353dc7c8138a3c2f4caea2ccc9f77da64cbefaf573e3826

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.1.6.dev3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.1.6.dev3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3400c87b1d064cf253e0217bc2aecfb5bb1c79dc3a4b179120267ffaf9807515
MD5 1cec2b59dd6c953b300d7babac94c696
BLAKE2b-256 4b8cf8f0df59ae0b51832918a0d567519899e4f4d364346c808418ea18be45f1

See more details on using hashes here.

File details

Details for the file fabricatio_capabilities-0.1.6.dev3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for fabricatio_capabilities-0.1.6.dev3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d4987586c2111ecde5b6b8acdd02520d2bd3b8ab4afb89c20f77a12e3c971126
MD5 31a40d5cf203f1727a09494444dd99af
BLAKE2b-256 62e9fdd31d5d12bf71b23efd430d3aefa3ffc1030256a5b5bc7bd593edf8c949

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