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
conversation_id
objectrequiredObject Properties
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
objectoptionalexplain_kcl_file
objectoptional
object
Object Properties
reasoning
oneOfoptionalOne of
kcl_code_examples
objectoptionalfeature_tree_outline
objectoptionaldesign_plan
objectoptionalObject Properties
steps
arrayoptionalArray of
Possible values
design_plan
generated_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# WebSocket endpoint
# curl does not work for WebSocket endpoints.
# Use an SDK or a WebSocket client.