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 Distributions
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 hacs_core-0.2.1-py3-none-any.whl.
File metadata
- Download URL: hacs_core-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54186246391783dd8ffdf25da97675c704e5fbc7e813a269a44e142603bd27e3
|
|
| MD5 |
8cb076ffd5d316c523f685b0b9ef8923
|
|
| BLAKE2b-256 |
16d5a4f4f795b1d98656a646787832143340e896d340676a547b78ede4774f4e
|