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)
| 172 | /// Used both when condensing a transcript for `agent_turn` data and when |
| 173 | /// deriving the agent's final response from it. |
| 174 | pub fn format_for_agent(agent_name: &str) -> &'static str { |
| 175 | if agent_name.contains("gemini") { |
| 176 | "json" |
| 177 | } else if agent_name == "opencode" { |
| 178 | "opencode" |
| 179 | } else { |
| 180 | "jsonl" |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | /// Format condensed entries as human-readable text. |
| 185 | /// |
no test coverage detected