API → MLOpen a websocket to prompt the ML copilot
Parameters
Name
Type
Req.
Returns
Websocket responses
Name
Type
Req.
body
oneOfoptionalOne of
tool_output
objectoptionalObject Properties
result
oneOfoptionalOne of
text_to_cad
objectoptionalObject Properties
Possible values
text_to_cad
edit_kcl_code
objectoptionalObject Properties
Possible values
edit_kcl_code
mechanical_knowledge_base
objectoptional
Possible values
tool_output
end_of_stream
objectoptionalObject Properties
Possible values
end_of_stream
get
/ws/ml/copilot$ curl "https://api.zoo.dev/ws/ml/copilot" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '"{}"'