Skip to main content

All lines of work.

Project description

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

Project details


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.2.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lines_of_work-0.0.2-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file lines_of_work-0.0.2.tar.gz.

File metadata

  • Download URL: lines_of_work-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.12 Darwin/25.3.0

File hashes

Hashes for lines_of_work-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c59a6520fe98fa88120ff405a23cb224630c02ff4262c07b7d1b71d93eae2145
MD5 53d43fd1c77795ec6f00c6ff34c8fcad
BLAKE2b-256 905834dd39094867065f3a81915ab043283ab1a531d4aa10770c2bd5f1c2a5fa

See more details on using hashes here.

File details

Details for the file lines_of_work-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lines_of_work-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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

Hashes for lines_of_work-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93c9acc4e15fede25ded82fcefa40357c200590cb94e9a63071274e69580f4f0
MD5 46b6ea7992cd0b628c56cc185ed67770
BLAKE2b-256 3c05543ae870a3303095105c2b604b5a8720201305ff01ee7d5428a6c5613079

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