smah.runner.prompts
Classes
|
- class smah.runner.prompts.Prompts[source]
Bases:
object- MAX_PIPE_LENGTH = 2048
- PIPE_HEAD_LENGTH = 1024
- static ack(role='assistant', content='ack')[source]
Generates an acknowledgment message with the given content.
- Parameters:
role (str) – The role of the acknowledgment message.
content (str) – The content of the acknowledgment message.
- Returns:
A dictionary containing the role and content of the acknowledgment message.
- Return type:
dict
- static message(role='user', content='...')[source]
Generates simple text message.
- Parameters:
role (str) – The role of the message.
content (str) – The content of the acknowledgment message.
- Returns:
A dictionary containing the role and content of the acknowledgment message.
- Return type:
dict
- static planner_response_format()[source]
Returns the format for the model picker.
- Returns:
A dictionary containing the format for the model picker.
- Return type:
dict