User configurable templates (#6420)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-01-20 17:15:52 -05:00
committed by GitHub
parent 5a04ee8700
commit 2f083b827a
23 changed files with 1052 additions and 307 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use crate::{
agents::{subagent_task_config::TaskConfig, Agent, AgentConfig, AgentEvent, SessionConfig},
conversation::{message::Message, Conversation},
prompt_template::render_global_file,
prompt_template::render_template,
recipe::Recipe,
};
use anyhow::{anyhow, Result};
@@ -148,7 +148,7 @@ fn get_agent_messages(
.await;
let tools = agent.list_tools(&session_id, None).await;
let subagent_prompt = render_global_file(
let subagent_prompt = render_template(
"subagent_system.md",
&SubagentPromptContext {
max_turns: task_config