Skip to content

runtime-session

Generated reference page for spec/v1/api/runtime-session.asyncapi.yaml.

Metadata

  • Type: AsyncAPI
  • Source: spec/v1/api/runtime-session.asyncapi.yaml
  • Raw: View Raw

Summary

  • Title: Agent Service Runtime Session Protocol
  • Version: v1
  • Channels: 17
  • Servers: 1

Source

yaml
asyncapi: 2.6.0
info:
  title: Agent Service Runtime Session Protocol
  version: v1
  description: >
    Runtime Session Gateway 的逻辑双向协议。方向约定以 runtime 视角描述:
    `publish` 表示 runtime 发送,`subscribe` 表示 runtime 接收。
defaultContentType: application/json
servers:
  session:
    protocol: wss
    url: api.agent-service.example.com/runtime
    description: Logical bidirectional runtime session transport
channels:
  runtime.session.attach.command:
    description: Runtime attach or reattach request
    publish:
      operationId: runtimeAttach
      message:
        $ref: '#/components/messages/RuntimeAttachRequest'
  runtime.session.attach.reply:
    subscribe:
      operationId: runtimeAttachReply
      message:
        $ref: '#/components/messages/RuntimeAttachResponse'
  runtime.session.heartbeat.command:
    publish:
      operationId: runtimeHeartbeat
      message:
        $ref: '#/components/messages/HeartbeatCommand'
  runtime.session.heartbeat.reply:
    subscribe:
      operationId: runtimeHeartbeatReply
      message:
        $ref: '#/components/messages/HeartbeatResponse'
  runtime.session.recover.command:
    publish:
      operationId: recoverConnections
      message:
        $ref: '#/components/messages/RecoverConnectionsCommand'
  runtime.session.recover.reply:
    subscribe:
      operationId: recoverConnectionsReply
      message:
        $ref: '#/components/messages/RecoverConnectionsResponse'
  runtime.session.secrets.get.command:
    publish:
      operationId: getSecrets
      message:
        $ref: '#/components/messages/GetSecretsCommand'
  runtime.session.secrets.get.reply:
    subscribe:
      operationId: getSecretsReply
      message:
        $ref: '#/components/messages/GetSecretsResponse'
  runtime.session.config.get.command:
    publish:
      operationId: getConfig
      message:
        $ref: '#/components/messages/GetConfigCommand'
  runtime.session.config.get.reply:
    subscribe:
      operationId: getConfigReply
      message:
        $ref: '#/components/messages/GetConfigResponse'
  runtime.session.kv.get.command:
    publish:
      operationId: getKV
      message:
        $ref: '#/components/messages/GetKVCommand'
  runtime.session.kv.get.reply:
    subscribe:
      operationId: getKVReply
      message:
        $ref: '#/components/messages/GetKVResponse'
  runtime.session.kv.set.command:
    publish:
      operationId: setKV
      message:
        $ref: '#/components/messages/SetKVCommand'
  runtime.session.kv.set.reply:
    subscribe:
      operationId: setKVReply
      message:
        $ref: '#/components/messages/SetKVResponse'
  runtime.task.output.event:
    publish:
      operationId: publishOutputEvents
      message:
        $ref: '#/components/messages/PublishOutputEventsRequest'
  runtime.task.output.reply:
    subscribe:
      operationId: publishOutputEventsReply
      message:
        $ref: '#/components/messages/PublishOutputEventsResponse'
  service.task.input.event:
    description: Platform to runtime input delivery
    subscribe:
      operationId: receiveTaskInput
      message:
        $ref: '#/components/messages/TaskInputDelivery'
components:
  messages:
    RuntimeAttachRequest:
      name: RuntimeAttachRequest
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/RuntimeAttachRequest
    RuntimeAttachResponse:
      name: RuntimeAttachResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/RuntimeAttachResponse
    HeartbeatCommand:
      name: HeartbeatCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/HeartbeatCommand
    HeartbeatResponse:
      name: HeartbeatResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/HeartbeatResponse
    RecoverConnectionsCommand:
      name: RecoverConnectionsCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/RecoverConnectionsCommand
    RecoverConnectionsResponse:
      name: RecoverConnectionsResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/RecoverConnectionsResponse
    GetSecretsCommand:
      name: GetSecretsCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetSecretsCommand
    GetSecretsResponse:
      name: GetSecretsResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetSecretsResponse
    GetConfigCommand:
      name: GetConfigCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetConfigCommand
    GetConfigResponse:
      name: GetConfigResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetConfigResponse
    GetKVCommand:
      name: GetKVCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetKVCommand
    GetKVResponse:
      name: GetKVResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/GetKVResponse
    SetKVCommand:
      name: SetKVCommand
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/SetKVCommand
    SetKVResponse:
      name: SetKVResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/SetKVResponse
    PublishOutputEventsRequest:
      name: PublishOutputEventsRequest
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/PublishOutputEventsRequest
    PublishOutputEventsResponse:
      name: PublishOutputEventsResponse
      payload:
        $ref: ../schemas/commands/runtime-session.json#/$defs/PublishOutputEventsResponse
    TaskInputDelivery:
      name: TaskInputDelivery
      payload:
        $ref: ../schemas/events/input-event.json#/$defs/TaskInputDelivery

Generated from spec source.