Skip to main content

Shared types and contracts for the RelationalAI Agent API

Project description

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.

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

relationalai_agent_shared-0.3.3.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

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

relationalai_agent_shared-0.3.3-py3-none-any.whl (82.7 kB view details)

Uploaded Python 3

File details

Details for the file relationalai_agent_shared-0.3.3.tar.gz.

File metadata

  • Download URL: relationalai_agent_shared-0.3.3.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for relationalai_agent_shared-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7a0f31376e9b036ef9e7bd7447e4278c36e31e059ed84285566b5029e4b73a2c
MD5 75048a5d154b14382be2a14558869b35
BLAKE2b-256 c87d01ee74a88c0153764785bb50255a3e0e970f0ba84c72f34c9176b91142e9

See more details on using hashes here.

File details

Details for the file relationalai_agent_shared-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: relationalai_agent_shared-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 82.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for relationalai_agent_shared-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f9f3611077dc9a0e855051aeaecdc2718198c58ddc2c1c02675ed19b22db3cc
MD5 037cf1d4be973047b8cbec64e85ffedb
BLAKE2b-256 5e83453aa353fcbe9ac6a418630e5fbf4be0d2207f3623397355f974cdfe299c

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