All lines of work.
Project description
Lines of Work
A structured Python library of agent definitions, each covering a cohesive set of related duties within a distinctively named entity — organized by industry and subcategory, each shipping with a focused persona prompt and a curated knowledge base.
Documentation
Installation
pip install lines-of-work
Quick Start
import lines_of_work as low
# Enumerate the taxonomy
industries = low.list_industry_ids()
subcategories = low.list_subcategory_ids(low.IndustryID("information_communication"))
works = low.list_work_ids(
low.IndustryID("information_communication"),
low.SubcategoryID("software_dev_integration"),
)
# Load a work
work = low.Work(
low.IndustryID("information_communication"),
low.SubcategoryID("software_dev_integration"),
low.WorkID("neon_circuit_labs_code_review"),
)
print(work.agent.name)
print(work.agent.instructions)
for kid in work.list_knowledge_ids():
k = work.get_knowledge(kid)
print(k.title, "—", k.content[:80])
Public API
All symbols below are importable directly from lines_of_work.
Enumeration
| Function | Signature | Description |
|---|---|---|
list_industry_ids |
() -> list[IndustryID] |
All available industry IDs. |
list_subcategory_ids |
(IndustryID) -> list[SubcategoryID] |
Subcategory IDs within an industry. |
list_work_ids |
(IndustryID, SubcategoryID) -> list[WorkID] |
Work IDs within a subcategory. |
Work
work = low.Work(industry_id, subcategory_id, work_id)
| Attribute / Method | Type / Signature | Description |
|---|---|---|
work.agent |
Agent |
Agent metadata loaded from agent.py. |
work.list_knowledge_ids() |
() -> list[KnowledgeID] |
Knowledge item IDs. |
work.get_knowledge(kid) |
(KnowledgeID) -> Knowledge |
Load one knowledge item. |
Types
| Symbol | Kind | Description |
|---|---|---|
IndustryID |
NewType(str) |
Identifier for an industry. |
SubcategoryID |
NewType(str) |
Identifier for a subcategory. |
WorkID |
NewType(str) |
Identifier for a work. |
KnowledgeID |
NewType(str) |
Identifier for a knowledge item. |
Agent |
Pydantic model | name, description, instructions, version. |
Knowledge |
Pydantic model | title, content, version. |
Subcategory |
Pydantic model | id, name, description. |
Industry |
Pydantic model | id, name, description, subcategories. |
Taxonomy
19 industries, each containing between 2 and 7 subcategories.
| Industry ID | Name |
|---|---|
agriculture_natural_resources |
Agriculture and Natural Resources |
manufacturing_light |
Manufacturing (Light Industry) |
manufacturing_heavy_tech |
Manufacturing (Heavy and Tech Industry) |
energy_utilities |
Energy and Utilities |
construction_civil_eng |
Construction and Civil Engineering |
wholesale_retail |
Wholesale and Retail Trade |
transportation_warehousing |
Transportation and Warehousing |
accommodation_food_services |
Accommodation and Food Services |
information_communication |
Information and Communication |
finance_insurance |
Finance and Insurance |
real_estate |
Real Estate |
professional_scientific_tech |
Professional, Scientific, and Technical Services |
administrative_support |
Administrative and Support Services |
public_admin_defense |
Public Administration and Defense |
education |
Education |
healthcare_social_work |
Healthcare and Social Assistance |
arts_entertainment_recreation |
Arts, Entertainment, and Recreation |
other_services |
Other Services |
international_organizations |
International Organizations and Foreign Institutions |
Module Layout
lines_of_work/
├── __init__.py # Public API
├── types.py # ID types and Pydantic models
├── version.py
└── industries/
└── <industry_id>/
├── __init__.py # id, name, description
└── <subcategory_id>/
├── __init__.py # id, name, description
└── <work_id>/
├── __init__.py
├── agent.py # name, description, instructions, version
└── knowledge/
├── __init__.py
└── <knowledge_id>.py # title, content, version
Contributing
See Guide: Defining a New Work for content standards and file conventions.
License
MIT
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 Distribution
lines_of_work-0.0.3.tar.gz
(3.9 MB
view details)
File details
Details for the file lines_of_work-0.0.3.tar.gz.
File metadata
- Download URL: lines_of_work-0.0.3.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.12 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3258b2ce68d20525e6d992108526c26ff59a86f173165682ad90ddf2049400f3
|
|
| MD5 |
7ca4e59d89889afa78b5d68c2c544b90
|
|
| BLAKE2b-256 |
b125fdc214fa4b51fbab46f95f97688407b006c6a970ed08292adbb2dc4a52ca
|