Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 977 Bytes

File metadata and controls

30 lines (21 loc) · 977 Bytes

PromptMessage

Properties

Name Type Description Notes
role PromptRole The role who generates the message
content str The actual text of the message

Example

from cms_client.models.prompt_message import PromptMessage

# TODO update the JSON string below
json = "{}"
# create an instance of PromptMessage from a JSON string
prompt_message_instance = PromptMessage.from_json(json)
# print the JSON string representation of the object
print(PromptMessage.to_json())

# convert the object into a dict
prompt_message_dict = prompt_message_instance.to_dict()
# create an instance of PromptMessage from a dict
prompt_message_from_dict = PromptMessage.from_dict(prompt_message_dict)

[Back to Model list] [Back to API list] [Back to README]