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.3.0.tar.gz (5.4 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.3.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soorma_common-0.3.0.tar.gz
  • Upload date:
  • Size: 5.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 0d25868e32b079e7378659213f3d035a4bbff6974ac74a400ffe544b2ecfba7a
MD5 e70c88c79c605f9eadc421639c7c4db0
BLAKE2b-256 834f1c0d5d1754132737bd2b3cbcbec731c1a4f83a4aa92e870fcfc218d9f1f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soorma_common-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f190ca4df55feae6fb7369c90bb389df220130b194efb2967b4507cbd5215368
MD5 4efdea0208832584a2338530ca91f9da
BLAKE2b-256 3c751099dace4c2d925e8546183f3b32d8525bc2077448a923d5d270c023c8cd

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