MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / format_for_agent

Function format_for_agent

atomic-agent/src/transcript/condense.rs:164–172  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

162/// Used both when condensing a transcript for `agent_turn` data and when
163/// deriving the agent's final response from it.
164pub 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///

Callers 2

build_unhashed_turn_dataFunction · 0.85
inject_response_nodeMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected