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

Function format_for_agent

atomic-agent/src/transcript/condense.rs:174–182  ·  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

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

Callers 4

build_unhashed_turn_dataFunction · 0.85
inject_response_nodeMethod · 0.85
ingest_sherpa_traceMethod · 0.85
response_textFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected