Skip to main content

Lines of Work

PyPI version Python Version License

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

Metadata

Release files for lines-of-work 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lines-of-work 0.0.3
File Size Uploaded
lines_of_work-0.0.3.tar.gz 3.9 MB Details

Release files / lines_of_work-0.0.3.tar.gz

Download URL lines_of_work-0.0.3.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
3258b2ce68d20525e6d992108526c26ff59a86f173165682ad90ddf2049400f3
BLAKE2b-256 checksum
How to use checksums
b125fdc214fa4b51fbab46f95f97688407b006c6a970ed08292adbb2dc4a52ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.12.12 Darwin/25.3.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page