Skip to main content

Core models and base classes for Healthcare Agent Communication Standard

Project description

HACS Core

Core models and base classes for Healthcare Agent Communication Standard (HACS).

Overview

hacs-core provides the foundational models and base classes that all other HACS packages build upon. It defines the core abstractions for healthcare agent communication, including actors, resources, memory management, and evidence handling.

Key Components

BaseResource

The foundational class for all HACS resources, providing:

  • Unique resource identification
  • Metadata management
  • Serialization/deserialization
  • Validation framework

Actor

Represents entities that can perform actions in the healthcare system:

  • Actor identification and authentication
  • Role-based access control
  • Audit trail management
  • Permission validation

MemoryBlock

Manages structured memory for healthcare agents:

  • Persistent memory storage
  • Memory retrieval and querying
  • Memory lifecycle management
  • Cross-agent memory sharing

Evidence

Handles clinical evidence and supporting documentation:

  • Evidence classification and scoring
  • Source attribution and provenance
  • Evidence linking and relationships
  • Quality assessment metrics

Installation

pip install hacs-core

Quick Start

from hacs_core import BaseResource, Actor, MemoryBlock, Evidence

# Create an actor
actor = Actor(
    actor_id="dr_smith",
    actor_type="clinician",
    display_name="Dr. Sarah Smith"
)

# Create a memory block
memory = MemoryBlock(
    memory_id="patient_history",
    content={"diagnosis": "hypertension"},
    actor_context=actor
)

# Create evidence
evidence = Evidence(
    evidence_id="guideline_001",
    title="Hypertension Management Guidelines",
    confidence_score=0.95,
    source="American Heart Association"
)

Documentation

For complete documentation, see the HACS Documentation.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Contributing

See Contributing Guidelines for information on how to contribute to HACS Core.

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

hacs_core-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

hacs_core-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file hacs_core-0.1.0.tar.gz.

File metadata

  • Download URL: hacs_core-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hacs_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e340785e06b2ab87e81463dd2e6ecc584d25c0ce631a013bac08535f45343601
MD5 791a17e9f871a2c865c912225d269c4f
BLAKE2b-256 55d7884a7ec4f4598371e4b0055398afbabe0b746f6d9d1c94bd3d16103c7b51

See more details on using hashes here.

File details

Details for the file hacs_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hacs_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hacs_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c8bb312e6ef62dd65e253bbe43258b44cc072c72828c7419a9c15eec40c4fc
MD5 845eecd309dae44598c5b0f8fcb8383f
BLAKE2b-256 6fad0ec59f2f1017b2c43cd9fd2b11ce1aa4ebc31606886f9dbc8e113ff67de3

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