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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lines_of_work-0.0.1.tar.gz.
File metadata
- Download URL: lines_of_work-0.0.1.tar.gz
- Upload date:
- Size: 545.6 kB
- 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 |
d57c8f0f880363540f5f4e6aa16265926d44a89ba9ac7c6db74f03a83b4a8862
|
|
| MD5 |
94c1ec3484341db0de5828c9ba3c0e6c
|
|
| BLAKE2b-256 |
8da68fcb50263cb238c55dcc8e7435fd1ba15bf4e67bbb26569092978ae61be8
|
File details
Details for the file lines_of_work-0.0.1-py3-none-any.whl.
File metadata
- Download URL: lines_of_work-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- 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 |
e986ee8c6bdd2e078648d5455488b966a824be344ff449145ddc735c11ab2b46
|
|
| MD5 |
94fb5d19634376e1a7348228f0a5af64
|
|
| BLAKE2b-256 |
68be5e4eef3f5cbc2c30e6883676b096587c862c36063911389bb0471b056327
|