nip.scenario_base.environment.PromptMessage#
- class nip.scenario_base.environment.PromptMessage[source]#
A message in the prompt for a language model API.
The prompt is a list of messages, where each message is a dictionary with keys as follows.
- role#
The role of the message sender.
- Type:
Literal[“system”, “assistant”, “user”]
Attributes
Methods