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
$ curl "https://api.zoo.dev/ws/ml/copilot" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '"{}"'