Use these methods to extend an existing agent run with additional transcripts or transcript groups after the run has already been ingested — for example, when continuing a long-running session or attaching follow-up turns to a previously uploaded run. The new transcripts and groups must reference the target agent run; IDs are assigned by the server and cannot be set by the caller.Documentation Index
Fetch the complete documentation index at: https://docs.transluce.org/llms.txt
Use this file to discover all available pages before exploring further.
Append Transcripts
group.id from each transcript’s
transcript_group_id:
Parameters
ID of the collection containing the agent run.
ID of the existing agent run to append to.
Transcripts to add to the agent run. The
id field must not be explicitly
set on any transcript — IDs are assigned by the server.Optional transcript groups to create before inserting the transcripts. Each
group’s
agent_run_id must match the agent_run_id argument. The id
field must not be explicitly set on any group. Any
parent_transcript_group_id and any transcript_group_id referenced by the
new transcripts must point to either one of the supplied groups or an
existing group in the same agent run.Compression algorithm for the request body. Defaults to
gzip. Set to
"none" to send uncompressed JSON.Returns
A dict with the counts of inserted records.
Errors
ValueError— A transcript or transcript group has an explicitly setid; a group’sagent_run_iddoes not match the target run; duplicate IDs appear in the request; an ID already exists in the database; a referenced parent group cannot be found in the same agent run; or the serialized payload exceeds 100 MB.HTTPError (400)— Request body is empty or malformed, or the server rejected the payload for the reasons above.HTTPError (404)— Agent run not found in the collection.HTTPError (409)— Append conflicted with another concurrent write or the agent run was deleted. Retry the request.HTTPError (415)— UnsupportedContent-Encoding. Onlygzipandidentityare accepted.
Append Transcript Groups
Convenience wrapper for appending transcript groups without any transcripts. Equivalent to callingadd_transcripts_to_agent_run with an empty
transcripts list.
Parameters
ID of the collection containing the agent run.
ID of the existing agent run to append to.
Transcript groups to add to the agent run. The
id field must not be
explicitly set, and each group’s agent_run_id must match the
agent_run_id argument.Compression algorithm for the request body. Defaults to
gzip. Set to
"none" to send uncompressed JSON.Returns
A dict with
transcripts_added (always 0) and transcript_groups_added.Errors
Same asadd_transcripts_to_agent_run.
