APIMLOpen a websocket to prompt the ML copilot

Parameters

Name

Type

Req.

  • bodyapplication/json

    oneOf
    optional
    One of
    • headers

      object
      required
      Object Properties
      • headers

        object
        optional
      • type

        string
        optional
        Possible values
        • headers
    • user

      object
      optional
      Object Properties
    • system

      object
      optional
      Object Properties
      • command

        string
        optional
        Possible values
        • new:  Reset the conversation state, by creating a new state.
        • bye:  Disconnect the client, which can be used to end the session.
      • type

        string
        optional
        Possible values
        • system

Returns

get
/ws/ml/copilot
# WebSocket endpoint
# curl does not work for WebSocket endpoints.
# Use an SDK or a WebSocket client.