Files
sam 6f10ecc04f feat(agentexec): record each agent run's transcript and show it per step (#1718)
The loop runner hooks every model call and tool call and reports ordered,
redacted, clipped entries. Each is persisted as an agent_transcript task
event through InsertEvent, left out of the timeline read, and served per
attempt at /api/tasks/{id}/transcript. The step run view shows it with Trace.
2026-11-01 22:09:53 +11:00

33 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package state.v1;
import "state/v1/types.proto";
service TaskEventService {
rpc InsertEvent(InsertEventRequest) returns (InsertEventResponse);
rpc EventsSince(EventsSinceRequest) returns (EventsSinceResponse);
rpc TaskEvents(TaskEventsRequest) returns (TaskEventsResponse);
}
message InsertEventRequest { Event event = 1; }
message InsertEventResponse { int64 id = 1; }
message EventsSinceRequest {
// since_id is the opaque resume cursor returned by the previous page (the SSE
// id: field, echoed back as Last-Event-ID). Empty means "from the
// beginning". The field keeps its name and number so the wire name stays
// put; only its type widened, from the SQLite rowid to the fixed-width
// "<at>|<row id>" cursor.
string since_id = 1;
int64 limit = 2;
}
message EventsSinceResponse { repeated Event events = 1; }
message TaskEventsRequest {
int64 task_id = 1;
// transcript selects the agent_transcript entries of one attempt instead of
// the timeline, which leaves them out.
bool transcript = 2;
int64 attempt = 3;
}
message TaskEventsResponse { repeated Event events = 1; }