API → MLOpen a websocket to prompt the ML copilot
Parameters
Name
Type
Req.
Returns
Websocket responses
Name
Type
Req.
body
oneOfoptionalOne of
object
Object Properties
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
object
Object Properties
reasoning
oneOfoptionalOne of
kcl_code_examples
objectoptionalfeature_tree_outline
objectoptionalgenerated_kcl_code
objectoptionalkcl_code_error
objectoptionalcreated_kcl_file
objectoptionalupdated_kcl_file
objectoptionaldeleted_kcl_file
objectoptional
object
Object Properties
end_of_stream
objectoptionalObject Properties
get
/ws/ml/copilot$ curl "https://api.zoo.dev/ws/ml/copilot" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '"{}"'