wx-ai prompt add-chat-item
Adds chat items to a prompt.
Syntax
cpdctl wx-ai prompt add-chat-item \
--chat-item CHAT-ITEM \
[--cpd-scope CPD-SCOPE] \
[--project-id PROJECT-ID] \
--prompt-id PROMPT-ID \
[--space-id SPACE-ID]
Options
Option | Description |
---|---|
--chat-item |
An array that contains a question chat item and an answer chat item. Required. The maximum length is Provide a JSON string option or specify a JSON file to read from by providing a file path option
that begins with a |
--cpd-scope (string) |
The Cloud Pak for Data space or project scope,. For
example, |
--project-id (string) |
Required. Specifies the project ID as the target. One target must be supplied per request. The value must match the regular expression |
--prompt-id (string) |
Prompt ID. Required. The value must match the regular expression |
--space-id (string) |
Required. Specifies the space ID as the target. One target must be supplied per request. The value must match the regular expression |
Examples
cpdctl wx-ai prompt add-chat-item \
--prompt-id exampleString \
--chat-item '[{"type": "question", "content": "Some text", "status": "ready", "timestamp": 1711504485261}]' \
--space-id exampleString \
--project-id exampleString