MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / get_agent_transcript_path

Function get_agent_transcript_path

src/agent/transcript.py:75–83  ·  view source on GitHub ↗

Absolute path to `` / .jsonl``. Returns a string (not a ``Path``) because ``LocalAgentTaskState.output_file`` is typed as ``str`` for serializability. Callers that prefer ``Path(get_agent_transcript_path(...))`` can still wrap it.

(agent_id: str)

Source from the content-addressed store, hash-verified

73
74
75def get_agent_transcript_path(agent_id: str) -> str:
76 """Absolute path to ``<transcripts>/<agent_id>.jsonl``.
77
78 Returns a string (not a ``Path``) because ``LocalAgentTaskState.output_file``
79 is typed as ``str`` for serializability. Callers that prefer
80 ``Path(get_agent_transcript_path(...))`` can still wrap it.
81 """
82 safe_id = _sanitize_agent_id(agent_id)
83 return str(_transcripts_root() / f"{safe_id}.jsonl")
84
85
86def get_workflow_run_path(run_id: str) -> str:

Calls 2

_sanitize_agent_idFunction · 0.85
_transcripts_rootFunction · 0.85