dev.cocore.inference.dispatch
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Submit an inference request and stream the result back as Server-Sent Events. Authenticates the requester, runs the dispatch core, and emits typed SSE frames. Unlike `submit` (which returns URIs to poll), `dispatch` drives the full request and streams plaintext output chunks until completion.\n\nSSE events:\n * `meta` — { jobUri, jobCid, authUri, inputCommitment, providerDid, sessionId }\n * `chunk` — { seq, text } (plaintext, decrypted)\n * `complete` — { tokensIn, tokensOut, receiptUri, providerCredit? }\n * `error` — { reason, code }",
"errors": [
{
"description": "The caller is not authenticated.",
"name": "AuthRequired"
},
{
"description": "The body failed validation.",
"name": "InvalidRequest"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"maxTokensOut": {
"minimum": 1,
"type": "integer"
},
"model": {
"minLength": 1,
"type": "string"
},
"priceCeiling": {
"properties": {
"amount": {
"minimum": 0,
"type": "integer"
},
"currency": {
"minLength": 1,
"type": "string"
}
},
"required": [
"amount",
"currency"
],
"type": "object"
},
"prompt": {
"minLength": 1,
"type": "string"
},
"targetProviderDid": {
"description": "Pin dispatch to a specific provider DID instead of letting the advisor route.",
"format": "did",
"type": "string"
}
},
"required": [
"model",
"prompt",
"maxTokensOut",
"priceCeiling"
],
"type": "object"
}
},
"output": {
"description": "A Server-Sent Events stream of `meta`, `chunk`, `complete`, and `error` frames (see the method description for payloads).",
"encoding": "text/event-stream"
},
"type": "procedure"
}
},
"id": "dev.cocore.inference.dispatch",
"lexicon": 1
}
Metadata
- DID
-
did:plc:5quuhkmwe2q4k3azfsgg7kdz - CID
-
bafyreifr55vvhyq4uw4svjcrlqjzcuid3q7ka5kbq4eir4zo7vxh4opj7e - Indexed At
- 2026-06-21 00:58 UTC
- AT-URI
-
at://did:plc:5quuhkmwe2q4k3azfsgg7kdz/com.atproto.lexicon.schema/dev.cocore.inference.dispatch
Version History (3 versions)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.cocore.inference.submit procedure
Submit an inference request for the authenticated requester. Builds a (paymentAuthorization, job) pair scoped to the configured exchange, publishes both to the requester's PDS, and returns the job/authorization URIs so …