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)
| 73 | |
| 74 | |
| 75 | def 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 | |
| 86 | def get_workflow_run_path(run_id: str) -> str: |