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.
411 lines
13 KiB
Go
411 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: state/v1/task_event.proto
|
|
|
|
package statev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type InsertEventRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InsertEventRequest) Reset() {
|
|
*x = InsertEventRequest{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InsertEventRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InsertEventRequest) ProtoMessage() {}
|
|
|
|
func (x *InsertEventRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InsertEventRequest.ProtoReflect.Descriptor instead.
|
|
func (*InsertEventRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *InsertEventRequest) GetEvent() *Event {
|
|
if x != nil {
|
|
return x.Event
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InsertEventResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InsertEventResponse) Reset() {
|
|
*x = InsertEventResponse{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InsertEventResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InsertEventResponse) ProtoMessage() {}
|
|
|
|
func (x *InsertEventResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use InsertEventResponse.ProtoReflect.Descriptor instead.
|
|
func (*InsertEventResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *InsertEventResponse) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EventsSinceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 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.
|
|
SinceId string `protobuf:"bytes,1,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"`
|
|
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EventsSinceRequest) Reset() {
|
|
*x = EventsSinceRequest{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EventsSinceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EventsSinceRequest) ProtoMessage() {}
|
|
|
|
func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EventsSinceRequest.ProtoReflect.Descriptor instead.
|
|
func (*EventsSinceRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *EventsSinceRequest) GetSinceId() string {
|
|
if x != nil {
|
|
return x.SinceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EventsSinceRequest) GetLimit() int64 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EventsSinceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EventsSinceResponse) Reset() {
|
|
*x = EventsSinceResponse{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EventsSinceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EventsSinceResponse) ProtoMessage() {}
|
|
|
|
func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EventsSinceResponse.ProtoReflect.Descriptor instead.
|
|
func (*EventsSinceResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *EventsSinceResponse) GetEvents() []*Event {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TaskEventsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
|
|
// transcript selects the agent_transcript entries of one attempt instead of
|
|
// the timeline, which leaves them out.
|
|
Transcript bool `protobuf:"varint,2,opt,name=transcript,proto3" json:"transcript,omitempty"`
|
|
Attempt int64 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TaskEventsRequest) Reset() {
|
|
*x = TaskEventsRequest{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TaskEventsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TaskEventsRequest) ProtoMessage() {}
|
|
|
|
func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TaskEventsRequest.ProtoReflect.Descriptor instead.
|
|
func (*TaskEventsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *TaskEventsRequest) GetTaskId() int64 {
|
|
if x != nil {
|
|
return x.TaskId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TaskEventsRequest) GetTranscript() bool {
|
|
if x != nil {
|
|
return x.Transcript
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *TaskEventsRequest) GetAttempt() int64 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TaskEventsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TaskEventsResponse) Reset() {
|
|
*x = TaskEventsResponse{}
|
|
mi := &file_state_v1_task_event_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TaskEventsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TaskEventsResponse) ProtoMessage() {}
|
|
|
|
func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_task_event_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TaskEventsResponse.ProtoReflect.Descriptor instead.
|
|
func (*TaskEventsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_task_event_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *TaskEventsResponse) GetEvents() []*Event {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_state_v1_task_event_proto protoreflect.FileDescriptor
|
|
|
|
const file_state_v1_task_event_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x19state/v1/task_event.proto\x12\bstate.v1\x1a\x14state/v1/types.proto\";\n" +
|
|
"\x12InsertEventRequest\x12%\n" +
|
|
"\x05event\x18\x01 \x01(\v2\x0f.state.v1.EventR\x05event\"%\n" +
|
|
"\x13InsertEventResponse\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\"E\n" +
|
|
"\x12EventsSinceRequest\x12\x19\n" +
|
|
"\bsince_id\x18\x01 \x01(\tR\asinceId\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x03R\x05limit\">\n" +
|
|
"\x13EventsSinceResponse\x12'\n" +
|
|
"\x06events\x18\x01 \x03(\v2\x0f.state.v1.EventR\x06events\"f\n" +
|
|
"\x11TaskEventsRequest\x12\x17\n" +
|
|
"\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x1e\n" +
|
|
"\n" +
|
|
"transcript\x18\x02 \x01(\bR\n" +
|
|
"transcript\x12\x18\n" +
|
|
"\aattempt\x18\x03 \x01(\x03R\aattempt\"=\n" +
|
|
"\x12TaskEventsResponse\x12'\n" +
|
|
"\x06events\x18\x01 \x03(\v2\x0f.state.v1.EventR\x06events2\xf3\x01\n" +
|
|
"\x10TaskEventService\x12J\n" +
|
|
"\vInsertEvent\x12\x1c.state.v1.InsertEventRequest\x1a\x1d.state.v1.InsertEventResponse\x12J\n" +
|
|
"\vEventsSince\x12\x1c.state.v1.EventsSinceRequest\x1a\x1d.state.v1.EventsSinceResponse\x12G\n" +
|
|
"\n" +
|
|
"TaskEvents\x12\x1b.state.v1.TaskEventsRequest\x1a\x1c.state.v1.TaskEventsResponseB\xa8\x01\n" +
|
|
"\fcom.state.v1B\x0eTaskEventProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
|
|
|
|
var (
|
|
file_state_v1_task_event_proto_rawDescOnce sync.Once
|
|
file_state_v1_task_event_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_state_v1_task_event_proto_rawDescGZIP() []byte {
|
|
file_state_v1_task_event_proto_rawDescOnce.Do(func() {
|
|
file_state_v1_task_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_task_event_proto_rawDesc), len(file_state_v1_task_event_proto_rawDesc)))
|
|
})
|
|
return file_state_v1_task_event_proto_rawDescData
|
|
}
|
|
|
|
var file_state_v1_task_event_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_state_v1_task_event_proto_goTypes = []any{
|
|
(*InsertEventRequest)(nil), // 0: state.v1.InsertEventRequest
|
|
(*InsertEventResponse)(nil), // 1: state.v1.InsertEventResponse
|
|
(*EventsSinceRequest)(nil), // 2: state.v1.EventsSinceRequest
|
|
(*EventsSinceResponse)(nil), // 3: state.v1.EventsSinceResponse
|
|
(*TaskEventsRequest)(nil), // 4: state.v1.TaskEventsRequest
|
|
(*TaskEventsResponse)(nil), // 5: state.v1.TaskEventsResponse
|
|
(*Event)(nil), // 6: state.v1.Event
|
|
}
|
|
var file_state_v1_task_event_proto_depIdxs = []int32{
|
|
6, // 0: state.v1.InsertEventRequest.event:type_name -> state.v1.Event
|
|
6, // 1: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event
|
|
6, // 2: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event
|
|
0, // 3: state.v1.TaskEventService.InsertEvent:input_type -> state.v1.InsertEventRequest
|
|
2, // 4: state.v1.TaskEventService.EventsSince:input_type -> state.v1.EventsSinceRequest
|
|
4, // 5: state.v1.TaskEventService.TaskEvents:input_type -> state.v1.TaskEventsRequest
|
|
1, // 6: state.v1.TaskEventService.InsertEvent:output_type -> state.v1.InsertEventResponse
|
|
3, // 7: state.v1.TaskEventService.EventsSince:output_type -> state.v1.EventsSinceResponse
|
|
5, // 8: state.v1.TaskEventService.TaskEvents:output_type -> state.v1.TaskEventsResponse
|
|
6, // [6:9] is the sub-list for method output_type
|
|
3, // [3:6] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_state_v1_task_event_proto_init() }
|
|
func file_state_v1_task_event_proto_init() {
|
|
if File_state_v1_task_event_proto != nil {
|
|
return
|
|
}
|
|
file_state_v1_types_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_task_event_proto_rawDesc), len(file_state_v1_task_event_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_state_v1_task_event_proto_goTypes,
|
|
DependencyIndexes: file_state_v1_task_event_proto_depIdxs,
|
|
MessageInfos: file_state_v1_task_event_proto_msgTypes,
|
|
}.Build()
|
|
File_state_v1_task_event_proto = out.File
|
|
file_state_v1_task_event_proto_goTypes = nil
|
|
file_state_v1_task_event_proto_depIdxs = nil
|
|
}
|