Add isolated CultMesh model connector
This commit is contained in:
parent
25430d223d
commit
6bc64e775e
22 changed files with 1323 additions and 13 deletions
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.model-connector-envelope.schema.json",
|
||||
"title": "Epiphany Model Connector Encrypted Envelope",
|
||||
"type": "object",
|
||||
"required": ["schema_id", "request_id", "message_kind", "nonce", "ciphertext"],
|
||||
"properties": {
|
||||
"schema_id": { "const": "epiphany.model_connector_envelope.v1" },
|
||||
"request_id": { "type": "string", "minLength": 1 },
|
||||
"message_kind": { "enum": ["model_request", "model_result"] },
|
||||
"nonce": {
|
||||
"type": "array",
|
||||
"items": { "type": "integer", "minimum": 0, "maximum": 255 },
|
||||
"minItems": 12,
|
||||
"maxItems": 12
|
||||
},
|
||||
"ciphertext": {
|
||||
"type": "array",
|
||||
"items": { "type": "integer", "minimum": 0, "maximum": 255 },
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.model-connector-invocation.schema.json",
|
||||
"title": "Epiphany Model Connector Invocation",
|
||||
"type": "object",
|
||||
"required": ["schema_id", "request_id", "caller_runtime_id", "expires_at_unix_ms", "request"],
|
||||
"properties": {
|
||||
"schema_id": { "const": "epiphany.model_connector_invocation.v1" },
|
||||
"request_id": { "type": "string", "minLength": 1 },
|
||||
"caller_runtime_id": { "type": "string", "minLength": 1 },
|
||||
"expires_at_unix_ms": { "type": "integer", "minimum": 1 },
|
||||
"request": { "$ref": "epiphany.model-request.schema.json" }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
18
schemas/cultnet/epiphany.model-connector-result.schema.json
Normal file
18
schemas/cultnet/epiphany.model-connector-result.schema.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.model-connector-result.schema.json",
|
||||
"title": "Epiphany Model Connector Result",
|
||||
"type": "object",
|
||||
"required": ["schema_id", "request_id", "accepted", "events"],
|
||||
"properties": {
|
||||
"schema_id": { "const": "epiphany.model_connector_result.v1" },
|
||||
"request_id": { "type": "string", "minLength": 1 },
|
||||
"accepted": { "type": "boolean" },
|
||||
"events": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "epiphany.model-stream-event.schema.json" }
|
||||
},
|
||||
"error": { "type": ["string", "null"] }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
39
schemas/cultnet/epiphany.model-connector-status.schema.json
Normal file
39
schemas/cultnet/epiphany.model-connector-status.schema.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://gamecult.dev/epiphany/cultnet/epiphany.model-connector-status.schema.json",
|
||||
"title": "Epiphany Model Connector Status",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schema_id",
|
||||
"provider_id",
|
||||
"capability_id",
|
||||
"request_schema_id",
|
||||
"result_schema_id",
|
||||
"envelope_schema_id",
|
||||
"transport_protocol",
|
||||
"host",
|
||||
"port",
|
||||
"max_payload_bytes",
|
||||
"max_parallel_requests",
|
||||
"model",
|
||||
"ready",
|
||||
"updated_at_utc"
|
||||
],
|
||||
"properties": {
|
||||
"schema_id": { "const": "epiphany.model_connector_status.v1" },
|
||||
"provider_id": { "const": "epiphany.codex-model" },
|
||||
"capability_id": { "const": "model.generate.structured" },
|
||||
"request_schema_id": { "const": "epiphany.model_connector_invocation.v1" },
|
||||
"result_schema_id": { "const": "epiphany.model_connector_result.v1" },
|
||||
"envelope_schema_id": { "const": "epiphany.model_connector_envelope.v1" },
|
||||
"transport_protocol": { "const": "cultnet.tcp_framed.v0" },
|
||||
"host": { "type": "string", "minLength": 1 },
|
||||
"port": { "type": "integer", "minimum": 1, "maximum": 65535 },
|
||||
"max_payload_bytes": { "type": "integer", "minimum": 4096 },
|
||||
"max_parallel_requests": { "type": "integer", "minimum": 1 },
|
||||
"model": { "type": "string", "minLength": 1 },
|
||||
"ready": { "type": "boolean" },
|
||||
"updated_at_utc": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
|
@ -13,7 +13,8 @@
|
|||
"input_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"output_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"reasoning_output_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"transport": { "type": ["string", "null"] }
|
||||
"transport": { "type": ["string", "null"] },
|
||||
"cached_input_tokens": { "type": ["integer", "null"], "minimum": 0 }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,10 @@
|
|||
}
|
||||
},
|
||||
"output_schema_json": { "type": ["string", "null"] },
|
||||
"source_worker_job_id": { "type": ["string", "null"] }
|
||||
"source_worker_job_id": { "type": ["string", "null"] },
|
||||
"reasoning_basis_id": { "type": ["string", "null"] },
|
||||
"max_output_tokens": { "type": ["integer", "null"], "minimum": 1 },
|
||||
"prompt_cache_key": { "type": ["string", "null"], "minLength": 1 }
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"$defs": {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"input_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"output_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"reasoning_output_tokens": { "type": ["integer", "null"], "minimum": 0 },
|
||||
"transport": { "type": ["string", "null"] }
|
||||
"transport": { "type": ["string", "null"] },
|
||||
"cached_input_tokens": { "type": ["integer", "null"], "minimum": 0 }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@
|
|||
},
|
||||
"output_schema_json": { "type": ["string", "null"] },
|
||||
"provider_id": { "enum": ["openai-codex", "openai", "openrouter"] },
|
||||
"wire_dialect": { "enum": ["Responses", "ChatCompletionsTerminalTool"] }
|
||||
"wire_dialect": { "enum": ["Responses", "ChatCompletionsTerminalTool"] },
|
||||
"max_output_tokens": { "type": ["integer", "null"], "minimum": 1 },
|
||||
"prompt_cache_key": { "type": ["string", "null"], "minLength": 1 }
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"$defs": {
|
||||
|
|
|
|||
Reference in a new issue