calute.runtime.profiles#

Prompt profiles for controlling system prompt verbosity.

Profiles allow sub-agents and internal delegation to receive compressed system prompts, reducing token usage while preserving safety-relevant context (sandbox, guardrails).

class calute.runtime.profiles.PromptProfile(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

System prompt verbosity profile.

  • FULL: all sections expanded (default, current behaviour).

  • COMPACT: compressed for sub-agents; trims workspace/bootstrap and caps skill instructions and tool lists.

  • MINIMAL: bare-minimum for internal delegation; only sandbox, guardrails, and a short tool list are included.

  • NONE: OpenClaw-style identity-only prompt with no runtime sections. Useful when the caller wants to supply all context.

COMPACT = 'compact'#
FULL = 'full'#
MINIMAL = 'minimal'#
NONE = 'none'#
class calute.runtime.profiles.PromptProfileConfig(profile: PromptProfile = PromptProfile.FULL, include_runtime_info: bool = True, include_workspace_info: bool = True, include_sandbox_info: bool = True, include_skills_index: bool = True, include_enabled_skills: bool = True, include_tools_list: bool = True, include_guardrails: bool = True, include_bootstrap: bool = True, max_skill_instructions_length: int | None = None, max_tools_listed: int | None = None)[source]#

Bases: object

Fine-grained control over which prompt sections are emitted.

Each flag controls whether the corresponding PromptContext section is populated. Length caps (max_skill_instructions_length, max_tools_listed) truncate the content when set.

include_bootstrap: bool = True#
include_enabled_skills: bool = True#
include_guardrails: bool = True#
include_runtime_info: bool = True#
include_sandbox_info: bool = True#
include_skills_index: bool = True#
include_tools_list: bool = True#
include_workspace_info: bool = True#
max_skill_instructions_length: int | None = None#
max_tools_listed: int | None = None#
profile: PromptProfile = 'full'#
calute.runtime.profiles.get_profile_config(profile: PromptProfile) PromptProfileConfig[source]#

Return the canonical PromptProfileConfig for profile.

The returned configs are:

  • FULL – everything enabled, no caps.

  • COMPACT – runtime info and safety sections kept; workspace and bootstrap dropped; skill instructions capped at 500 chars; tool list capped at 20 entries.

  • MINIMAL – only sandbox, guardrails, and a 10-entry tool list.

  • NONE – no runtime sections; the prompt builder returns only the base identity line.