smah.runner.prompts

Classes

Prompts()

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 conventions()[source]
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 pipe_prompt()[source]
static pipe_request(request: str, pipe: str)[source]
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

static query_prompt(request: str)[source]
static run_command_tool()[source]
static select_model(inference: Inference, request: str, additional_instructions: str | None = None)[source]
static system_settings(settings: Settings, include_system=True)[source]

Generates a system settings prompt based on the provided settings.