MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / AceStepPlannerRuntime

Method AceStepPlannerRuntime

src/models/ace_step/planner.cpp:2716–2725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2714
2715AceStepPlannerPreparedInput prepare_phase2_unconditional_prompt(
2716 const AceStepTextTokenizer & tokenizer,
2717 const AceStepRequest & request,
2718 int64_t max_prompt_tokens) {
2719 std::string formatted = tokenizer.apply_chat_template(
2720 std::string("# Instruction\n") + kDefaultLmInstruction + "\n\n",
2721 normalized_negative_prompt(request),
2722 true);
2723 formatted += empty_cot_text() + "\n\n";
2724 return {formatted, trim_to_valid_tokens(tokenizer.tokenize_text(formatted, max_prompt_tokens))};
2725}
2726
2727AceStepQwen3PlannerRuntime::AceStepQwen3PlannerRuntime(
2728 std::shared_ptr<const AceStepAssets> assets,

Callers

nothing calls this directly

Calls 8

assignMethod · 0.80
to_stringFunction · 0.50
backend_typeMethod · 0.45
release_storageMethod · 0.45
find_token_idMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected