hippox 0.5.6

🦛A reliable, autonomous LLM runtime and skill orchestration engine, Capable of processing natural language and automatically executing OS-native atomic skills, fundamentally enabling the LLM to truly take over the computer.
//! Chain mode prompt template with categories filtering

use crate::prompts::{generate_instances_registry, get_identity_intro};

/// Build chain mode prompt with filtered skills
pub fn build_chain_prompt_with_categories(filtered_skills: &str, input: &str) -> String {
    let instances_registry = generate_instances_registry();
    let identity_intro = get_identity_intro();

    format!(
        r#"{}

## Available Atomic Skills
{}

## Available Instances
{}

## Response Format
{{"mode": "chain", "steps": [
  {{"action": "skill1", "parameters": {{}}, "output_as": "result1"}},
  {{"action": "skill2", "parameters": {{"input": "{{{{result1}}}}"}}}}
]}}

## User Input
{}
"#,
        identity_intro, filtered_skills, instances_registry, input
    )
}