Skip to main content

RelationalAI Agent Shared

Shared types and contracts for the RelationalAI Agent API.

Overview

This package provides common data structures, event types, and Pydantic models used across RelationalAI's agent ecosystem. It defines the contracts between agent clients and servers, including:

  • Event Types: Streaming events for agent communication (StatusEvent, PlanEvent, ResultEvent, ErrorEvent, ExecuteCodeEvent)
  • ECS Components: Entity-Component-System architecture for semantic modeling (Concept, Relationship, Source)
  • Agent Contracts: Request/response models for agent interactions
  • Capability Configuration: Control what capabilities agents can use (query, optimize, predict, visualize)
  • Quotas: Resource limits for agent operations

Installation

pip install relationalai-agent-shared

Usage

Import Event Types

from relationalai_agent_shared import (
    StatusEvent,
    PlanEvent,
    ResultEvent,
    ErrorEvent,
    ExecuteCodeEvent,
    TaskStartEvent,
    TaskEndEvent,
)

Import ECS Components

from relationalai_agent_shared.ecs import Concept, Relationship, Source

Import Agent Contracts

from relationalai_agent_shared import (
    AskRequest,
    AgentContextItem,
    CapabilityConfig,
    Quotas,
)

Key Features

Streaming Events

The package defines a complete set of streaming events for real-time agent communication:

  • StatusEvent: Progress updates during agent processing
  • PlanEvent: Query plans and task breakdowns
  • ExecuteCodeEvent: Generated code for client-side execution
  • ResultEvent: Final results from agent operations
  • ErrorEvent: Error details with context

ECS (Entity-Component-System)

A columnar storage architecture for semantic models:

  • Concept: Represents entities in your domain model
  • Relationship: Defines connections between concepts
  • Source: References to external data sources

Requirements

  • Python 3.11+
  • pydantic >= 2.0.0
  • pydantic-ai-slim >= 1.0.0

License

Apache License 2.0 - see LICENSE file for details.

Support

For questions and support, contact support@relational.ai or visit https://docs.relational.ai.

Metadata

Release files for relationalai-agent-shared 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relationalai-agent-shared 0.3.3
File Size Uploaded Provenance Actions
relationalai_agent_shared-0.3.3.tar.gz 60.5 kB Without provenance Details for relationalai_agent_shared-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for relationalai-agent-shared 0.3.3
File Interpreter ABI Platform Actions
relationalai_agent_shared-0.3.3-py3-none-any.whl Python 3 none any Details for relationalai_agent_shared-0.3.3-py3-none-any.whl

Total release size: 143.2 kB

Release files / relationalai_agent_shared-0.3.3.tar.gz

Download URL relationalai_agent_shared-0.3.3.tar.gz
Size 60.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a0f31376e9b036ef9e7bd7447e4278c36e31e059ed84285566b5029e4b73a2c
BLAKE2b-256 checksum
How to use checksums
c87d01ee74a88c0153764785bb50255a3e0e970f0ba84c72f34c9176b91142e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / relationalai_agent_shared-0.3.3-py3-none-any.whl

Download URL relationalai_agent_shared-0.3.3-py3-none-any.whl
Size 82.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f9f3611077dc9a0e855051aeaecdc2718198c58ddc2c1c02675ed19b22db3cc
BLAKE2b-256 checksum
How to use checksums
5e83453aa353fcbe9ac6a418630e5fbf4be0d2207f3623397355f974cdfe299c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for relationalai-agent-shared 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page