Skip to main content

Common models and DTOs for Soorma platform services

Project description

Soorma Common

Common models and DTOs shared across Soorma platform services.

Installation

pip install -e .

Usage

from soorma_common.models import (
    AgentDefinition,
    AgentCapability,
    EventDefinition,
)

# Create an agent definition
agent = AgentDefinition(
    agent_id="my-agent",
    name="My Agent",
    description="A sample agent",
    capabilities=[
        AgentCapability(
            task_name="process_data",
            description="Process incoming data",
            consumed_event="data.received",
            produced_events=["data.processed", "data.error"]
        )
    ]
)

Models

Agent Registry

  • AgentCapability - Describes a single capability or task an agent can perform
  • AgentDefinition - Defines a single agent in the system
  • AgentRegistrationRequest - Request to register a new agent
  • AgentRegistrationResponse - Response after registering an agent
  • AgentQueryRequest - Request to query agents
  • AgentQueryResponse - Response containing agent definitions

Event Registry

  • EventDefinition - Defines a single event in the system
  • EventRegistrationRequest - Request to register a new event
  • EventRegistrationResponse - Response after registering an event
  • EventQueryRequest - Request to query events
  • EventQueryResponse - Response containing event definitions

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

soorma_common-0.4.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

soorma_common-0.4.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file soorma_common-0.4.0.tar.gz.

File metadata

  • Download URL: soorma_common-0.4.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for soorma_common-0.4.0.tar.gz
Algorithm Hash digest
SHA256 25f07d530ee97bb487d6bd55df06cb1364fdb97945a438aa99044eb7c3aec1b9
MD5 a8fe11a9e462596a61dda71670dedb63
BLAKE2b-256 a7ad4762f0e7392f268cf394a1af0a142311113cfd86652ed7b7f099143840b4

See more details on using hashes here.

File details

Details for the file soorma_common-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: soorma_common-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for soorma_common-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 062609a56ab3d028a7c9eb8c876a3a6cb0cc038db9045ef2ac03a7da1966a27d
MD5 dfe07887e60324924b62fe09d52a37f1
BLAKE2b-256 02640c5f47459a63b857f6145daf1941f4164e603abafddb8aad16ba0a647f5a

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