Platform WebSockets API 2.11.0

This API serves Kallo's asynchronous, real-time experiences, primarily revolving around convos.

Servers

  • api.kallo.aiwssprod

    WebSockets endpoints for Kallo (see kallo.ai for more info)

Operations

  • PUB /ws/convos/{convoId}

    Accepts one of the following messages:

    • #0New Convo StepconvoNewStep

      A new step either (1) authored by the user, sent to the server, or (2) authored by an LLM or another user, sent by the server.

      allOf

      Examples

    • #1New Convo Step GroupconvoNewStepGroup

      A new step group authored by the user, sent to the server. The server will respond with steps only, and those step objects will include a server-generated group ID.

      allOf

      Examples

    • #2Delete Convo StepconvoStepDeletion

      A request to delete a step.

      allOf

      Examples

    • #3Add Step to GroupconvoStepGroupAddition

      A request to add a step a step group; if a group doesn't exist, then a group will be automatically created. This is possible because the payload asks for the primary step ID, not the group ID. If a group was created, then a step update message will be sent from the server to indicate the new group ID.

      allOf

      Examples

    • #4Regen Convo StepconvoStepRegen

      A request to regenerate ("regen") a step that has already either fully, successfully completed a run or has failed. A step regen is the equivalent of deleting and creating a new step, but where the new step will automatically retain the original (deleted) step's config.

      allOf

      Examples

    • #5Update Convo StepconvoStepUpdate

      A request to update any of the patchable properties of a step. See the payload schema for the properties that are supported. To leave a property unchanged, do not include it in the payload.

      allOf

      Examples

  • SUB /ws/convos/{convoId}

    Accepts one of the following messages:

    • #0Errorerror

      A description of an error encountered by the server

      allOf

      Examples

    • #1New Convo StepconvoNewStep

      A new step either (1) authored by the user, sent to the server, or (2) authored by an LLM or another user, sent by the server.

      allOf

      Examples

    • #2Convo StatusconvoStatus
      allOf

      Examples

    • #3Delete Convo StepconvoStepDeletion

      A request to delete a step.

      allOf

      Examples

    • #4Regen Convo StepconvoStepRegen

      A request to regenerate ("regen") a step that has already either fully, successfully completed a run or has failed. A step regen is the equivalent of deleting and creating a new step, but where the new step will automatically retain the original (deleted) step's config.

      allOf

      Examples

    • #5Update Convo StepconvoStepUpdate

      A request to update any of the patchable properties of a step. See the payload schema for the properties that are supported. To leave a property unchanged, do not include it in the payload.

      allOf

      Examples

    • #6Update ConvoconvoUpdate

      Sent by the server to indicate that properties of the convo have changed. Primarily used when a convo name is auto-generated.

      allOf

      Examples

Messages

  • #1New Convo StepconvoNewStep

    A new step either (1) authored by the user, sent to the server, or (2) authored by an LLM or another user, sent by the server.

    allOf
  • #2New Convo Step GroupconvoNewStepGroup

    A new step group authored by the user, sent to the server. The server will respond with steps only, and those step objects will include a server-generated group ID.

    allOf
  • #3Convo StatusconvoStatus
    allOf
  • #4Delete Convo StepconvoStepDeletion

    A request to delete a step.

    allOf
  • #5Add Step to GroupconvoStepGroupAddition

    A request to add a step a step group; if a group doesn't exist, then a group will be automatically created. This is possible because the payload asks for the primary step ID, not the group ID. If a group was created, then a step update message will be sent from the server to indicate the new group ID.

    allOf
  • #6Regen Convo StepconvoStepRegen

    A request to regenerate ("regen") a step that has already either fully, successfully completed a run or has failed. A step regen is the equivalent of deleting and creating a new step, but where the new step will automatically retain the original (deleted) step's config.

    allOf
  • #7Update Convo StepconvoStepUpdate

    A request to update any of the patchable properties of a step. See the payload schema for the properties that are supported. To leave a property unchanged, do not include it in the payload.

    allOf
  • #8Update ConvoconvoUpdate

    Sent by the server to indicate that properties of the convo have changed. Primarily used when a convo name is auto-generated.

    allOf
  • #9Errorerror

    A description of an error encountered by the server

    allOf

Schemas

  • object
    uid: convo
  • object
    uid: convoAnnotation
  • object
    uid: convoFile
  • object
    uid: convoStatus
  • object
    uid: convoUpdate
  • object
    uid: step
  • object
    uid: stepConfig
  • object
    uid: stepDeletion
  • object
    uid: stepGroup
  • object
    uid: stepGroupAddition
  • object
    uid: stepRegen

    May be used in a request to regen (regenerate) a step, whereby running a step takes place as if it had never taken place before. Mechanically, the original step (the one being regen) is deleted and a new step takes it place while retaining certain metadata from the original step, such as timestamp (which ensures the regen version of a step will not appear out of order in a convo)

  • object
    uid: stepUpdate

    May be used in a request to update any of the patchable properties of a step, or may be an update sent from the server to indicate a property has been updated