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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.