socaity-schemas
Shared Pydantic models for APIPod services and the socaity product APIs. One definition, used on both sides of the wire, so a service and a client stay on the same field names.
Import the module that defines the type. The package root does not re-export symbols.
public is what anyone calling a service needs:
public.inference.language: chat, completion, embedding, tools, usage, and stream chunks.public.inference.generation: image, video, audio, vision, and 3D.public.inference.media:FileModeland its typed subclasses.public.providers: Socaity, RunPod, and Replicate job envelopes, plus theStreamingResponsesentinel.public.spec.address:ServiceAddressvariants and URL helpers.public.spec.endpoint: parameters,Endpoint, andServiceContract.
platform is the socaity product:
platform.catalog:Service(category, endpoint meta,ServiceDetails), hosting (Deployment,ContainerConfig,ServiceConnector),AIModel, and public pricing.platform.jobs:JobandProject.platform.conversations: chat transcript and the interrupt inbox.platform.workflows: the workflow document and the catalog (revision, run, trace, upsert, estimate).platform.account:User,ApiKeyView, and billing (Balance,Purchase,Subscription,SpendBreakdown).platform.credentials,platform.files,platform.context,platform.agent.
from socaity_schemas.public.inference.language import ChatCompletionRequest
from socaity_schemas.public.spec.endpoint import ServiceContract
from socaity_schemas.platform.catalog.service import Service
from socaity_schemas.platform.catalog.model import AIModel
The inference shapes follow the OpenAI API so OpenAI-compatible clients work without translation. That is the wire format only. Any provider that matches the shape is a valid backend.
Install
pip install socaity-schemas
Apache-2.0.
Metadata
Release files for socaity-schemas 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| socaity_schemas-0.1.11.tar.gz | 41.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| socaity_schemas-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.1 kB
Release files / socaity_schemas-0.1.11.tar.gz
| Download URL | socaity_schemas-0.1.11.tar.gz |
|---|---|
| Size | 41.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0e05f071954e019c09a0bd827b3688c300b10c7ab9752ee916c1ecd97edd3c4
|
|
BLAKE2b-256 checksum How to use checksums |
07767168b6174ced39fd14b77caf32c1e13201d8a1e33237c949601676678a5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / socaity_schemas-0.1.11-py3-none-any.whl
| Download URL | socaity_schemas-0.1.11-py3-none-any.whl |
|---|---|
| Size | 53.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13e30520dd9f0b55530eaea22a25702994c0ea25a64064cd9af30af357f5cf53
|
|
BLAKE2b-256 checksum How to use checksums |
8b3af864b558ff5632aedb960ffccac95c53dad68109e5f1ef7eeea20e79f477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|