The transcript format produced by an agent's transcript file. Used both when condensing a transcript for `agent_turn` data and when deriving the agent's final response from it.
(agent_name: &str)
| 162 | /// Used both when condensing a transcript for `agent_turn` data and when |
| 163 | /// deriving the agent's final response from it. |
| 164 | pub fn format_for_agent(agent_name: &str) -> &'static str { |
| 165 | if agent_name.contains("gemini") { |
| 166 | "json" |
| 167 | } else if agent_name == "opencode" { |
| 168 | "opencode" |
| 169 | } else { |
| 170 | "jsonl" |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /// Format condensed entries as human-readable text. |
| 175 | /// |
no test coverage detected