cad_nlp
Parse natural language CAD requests into tool calls, or continue a multi-turn chat that resolves references like 'move it'. Maps free-form English/Chinese text to CAD commands, returning arguments or suggestions when ambiguous.
Instructions
Parse a natural language request into a tool call or continue a chat.
聚合 NLP 操作。按 ``action`` 派发:command / chat。
- ``command``: map free-form English/Chinese text to a CAD tool call
(returns ``tool`` + ``arguments``; does NOT execute it). Ambiguous
requests return candidate ``suggestions``.
- ``chat``: multi-turn dialogue with anaphora resolution — a create
intent executes immediately and its object is remembered so "move it"
/ "把它" resolve to that object.
When not to use: ``cad_nlp`` is a convenience dispatcher. For
deterministic, schema-driven control prefer calling the concrete
aggregate tools directly (``cad_object``, ``cad_file``, ...). ``command``
only parses — you must dispatch the returned call yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nlp | Yes | NLP operation to perform, discriminated by `action`: command or chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Resolved tool name | |
| action | Yes | NLP action executed | |
| intent | No | Parsed intent / rule name | |
| message | No | Status description | |
| response | No | Chat response text | |
| arguments | No | Resolved arguments | |
| confidence | No | Match confidence | |
| suggestions | No | Candidate intents |