// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc (unknown) // source: state/v1/execution.proto package statev1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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 StartStepRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // execution_id is the WorkflowExecution (the tasks row) the step belongs // to, and the task ID the run credential is scoped to. ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` Attempt int64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"` // parent_id is 0 when the step is a stage; otherwise it names the enclosing // StepExecution, from which the store derives depth. ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // kind is stage, agent or call. Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // called_execution_id names the WorkflowExecution a `call` step started; // the store verifies it is this execution's own callee. CalledExecutionId int64 `protobuf:"varint,6,opt,name=called_execution_id,json=calledExecutionId,proto3" json:"called_execution_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StartStepRequest) Reset() { *x = StartStepRequest{} mi := &file_state_v1_execution_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StartStepRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*StartStepRequest) ProtoMessage() {} func (x *StartStepRequest) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 StartStepRequest.ProtoReflect.Descriptor instead. func (*StartStepRequest) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{0} } func (x *StartStepRequest) GetExecutionId() int64 { if x != nil { return x.ExecutionId } return 0 } func (x *StartStepRequest) GetAttempt() int64 { if x != nil { return x.Attempt } return 0 } func (x *StartStepRequest) GetParentId() int64 { if x != nil { return x.ParentId } return 0 } func (x *StartStepRequest) GetKind() string { if x != nil { return x.Kind } return "" } func (x *StartStepRequest) GetName() string { if x != nil { return x.Name } return "" } func (x *StartStepRequest) GetCalledExecutionId() int64 { if x != nil { return x.CalledExecutionId } return 0 } type StartStepResponse struct { state protoimpl.MessageState `protogen:"open.v1"` StepId int64 `protobuf:"varint,1,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"` // event is the transition's stage_start row, already persisted; the caller // publishes it to its bus after the write commits (the daemon's event sink // skips already-persisted rows by their assigned ID). Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StartStepResponse) Reset() { *x = StartStepResponse{} mi := &file_state_v1_execution_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StartStepResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*StartStepResponse) ProtoMessage() {} func (x *StartStepResponse) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 StartStepResponse.ProtoReflect.Descriptor instead. func (*StartStepResponse) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{1} } func (x *StartStepResponse) GetStepId() int64 { if x != nil { return x.StepId } return 0 } func (x *StartStepResponse) GetEvent() *Event { if x != nil { return x.Event } return nil } type FinishStepRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // execution_id names the run the step belongs to. The grant check verifies // it against the credential, and the store verifies the step really is that // execution's, so a caller cannot move another run's step by naming it. ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` StepId int64 `protobuf:"varint,2,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"` From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"` TokensUsed int64 `protobuf:"varint,6,opt,name=tokens_used,json=tokensUsed,proto3" json:"tokens_used,omitempty"` // results is the run's step results (JSON, by step id) after a stage the // run moves past; empty otherwise. A resumed attempt starts from them. Results []byte `protobuf:"bytes,7,opt,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FinishStepRequest) Reset() { *x = FinishStepRequest{} mi := &file_state_v1_execution_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FinishStepRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FinishStepRequest) ProtoMessage() {} func (x *FinishStepRequest) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 FinishStepRequest.ProtoReflect.Descriptor instead. func (*FinishStepRequest) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{2} } func (x *FinishStepRequest) GetExecutionId() int64 { if x != nil { return x.ExecutionId } return 0 } func (x *FinishStepRequest) GetStepId() int64 { if x != nil { return x.StepId } return 0 } func (x *FinishStepRequest) GetFrom() string { if x != nil { return x.From } return "" } func (x *FinishStepRequest) GetTo() string { if x != nil { return x.To } return "" } func (x *FinishStepRequest) GetDetail() string { if x != nil { return x.Detail } return "" } func (x *FinishStepRequest) GetTokensUsed() int64 { if x != nil { return x.TokensUsed } return 0 } func (x *FinishStepRequest) GetResults() []byte { if x != nil { return x.Results } return nil } type FinishStepResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // event is the transition's stage_finish row, already persisted. Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FinishStepResponse) Reset() { *x = FinishStepResponse{} mi := &file_state_v1_execution_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FinishStepResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FinishStepResponse) ProtoMessage() {} func (x *FinishStepResponse) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 FinishStepResponse.ProtoReflect.Descriptor instead. func (*FinishStepResponse) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{3} } func (x *FinishStepResponse) GetEvent() *Event { if x != nil { return x.Event } return nil } type CancelExecutionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // reason records why the run was stopped, in the execution's park reason // when the cancel lands there, and on every step event it writes. Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // to is the execution's destination: the transition table routes it, and // the operator actions name parked or closed_wont_do. To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CancelExecutionRequest) Reset() { *x = CancelExecutionRequest{} mi := &file_state_v1_execution_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CancelExecutionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CancelExecutionRequest) ProtoMessage() {} func (x *CancelExecutionRequest) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 CancelExecutionRequest.ProtoReflect.Descriptor instead. func (*CancelExecutionRequest) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{4} } func (x *CancelExecutionRequest) GetTaskId() int64 { if x != nil { return x.TaskId } return 0 } func (x *CancelExecutionRequest) GetReason() string { if x != nil { return x.Reason } return "" } func (x *CancelExecutionRequest) GetTo() string { if x != nil { return x.To } return "" } type CancelExecutionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // cancelled_callee_ids are the executions the caller was waiting on that // were cancelled with it, nested callees included; the caller stops their // runs as well as its own. CancelledCalleeIds []int64 `protobuf:"varint,2,rep,packed,name=cancelled_callee_ids,json=cancelledCalleeIds,proto3" json:"cancelled_callee_ids,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CancelExecutionResponse) Reset() { *x = CancelExecutionResponse{} mi := &file_state_v1_execution_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CancelExecutionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CancelExecutionResponse) ProtoMessage() {} func (x *CancelExecutionResponse) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_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 CancelExecutionResponse.ProtoReflect.Descriptor instead. func (*CancelExecutionResponse) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{5} } func (x *CancelExecutionResponse) GetCancelledCalleeIds() []int64 { if x != nil { return x.CancelledCalleeIds } return nil } // StepExecution mirrors internal/domain/workflow/task.StepExecution. type StepExecution struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ExecutionId int64 `protobuf:"varint,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` Attempt int64 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"` // parent_id is 0 for a stage at the tree's root. ParentId int64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` Depth int32 `protobuf:"varint,5,opt,name=depth,proto3" json:"depth,omitempty"` Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"` TokensUsed int64 `protobuf:"varint,10,opt,name=tokens_used,json=tokensUsed,proto3" json:"tokens_used,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` FinishedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` // called_execution_id is the callee task a workflow.call step started. CalledExecutionId int64 `protobuf:"varint,13,opt,name=called_execution_id,json=calledExecutionId,proto3" json:"called_execution_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StepExecution) Reset() { *x = StepExecution{} mi := &file_state_v1_execution_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StepExecution) String() string { return protoimpl.X.MessageStringOf(x) } func (*StepExecution) ProtoMessage() {} func (x *StepExecution) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[6] 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 StepExecution.ProtoReflect.Descriptor instead. func (*StepExecution) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{6} } func (x *StepExecution) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *StepExecution) GetExecutionId() int64 { if x != nil { return x.ExecutionId } return 0 } func (x *StepExecution) GetAttempt() int64 { if x != nil { return x.Attempt } return 0 } func (x *StepExecution) GetParentId() int64 { if x != nil { return x.ParentId } return 0 } func (x *StepExecution) GetDepth() int32 { if x != nil { return x.Depth } return 0 } func (x *StepExecution) GetKind() string { if x != nil { return x.Kind } return "" } func (x *StepExecution) GetName() string { if x != nil { return x.Name } return "" } func (x *StepExecution) GetStatus() string { if x != nil { return x.Status } return "" } func (x *StepExecution) GetDetail() string { if x != nil { return x.Detail } return "" } func (x *StepExecution) GetTokensUsed() int64 { if x != nil { return x.TokensUsed } return 0 } func (x *StepExecution) GetStartedAt() *timestamppb.Timestamp { if x != nil { return x.StartedAt } return nil } func (x *StepExecution) GetFinishedAt() *timestamppb.Timestamp { if x != nil { return x.FinishedAt } return nil } func (x *StepExecution) GetCalledExecutionId() int64 { if x != nil { return x.CalledExecutionId } return 0 } type ListStepsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` // attempt selects one attempt's steps; 0 lists every attempt of the // execution, oldest first -- the dashboard's run-detail rail renders every // attempt from a single call rather than one per attempt. Attempt int64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListStepsRequest) Reset() { *x = ListStepsRequest{} mi := &file_state_v1_execution_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListStepsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListStepsRequest) ProtoMessage() {} func (x *ListStepsRequest) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[7] 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 ListStepsRequest.ProtoReflect.Descriptor instead. func (*ListStepsRequest) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{7} } func (x *ListStepsRequest) GetExecutionId() int64 { if x != nil { return x.ExecutionId } return 0 } func (x *ListStepsRequest) GetAttempt() int64 { if x != nil { return x.Attempt } return 0 } type ListStepsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Steps []*StepExecution `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListStepsResponse) Reset() { *x = ListStepsResponse{} mi := &file_state_v1_execution_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListStepsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListStepsResponse) ProtoMessage() {} func (x *ListStepsResponse) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[8] 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 ListStepsResponse.ProtoReflect.Descriptor instead. func (*ListStepsResponse) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{8} } func (x *ListStepsResponse) GetSteps() []*StepExecution { if x != nil { return x.Steps } return nil } // UsageRecord mirrors usage.Record. A task's record belongs to the task's // org; any other belongs to the calling principal's org. type UsageRecord struct { state protoimpl.MessageState `protogen:"open.v1"` // source is task, chat or curator. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` TaskId int64 `protobuf:"varint,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Attempt int64 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` Workflow string `protobuf:"bytes,5,opt,name=workflow,proto3" json:"workflow,omitempty"` Step string `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` Alias string `protobuf:"bytes,7,opt,name=alias,proto3" json:"alias,omitempty"` Provider string `protobuf:"bytes,8,opt,name=provider,proto3" json:"provider,omitempty"` Model string `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"` InputTokens int64 `protobuf:"varint,10,opt,name=input_tokens,json=inputTokens,proto3" json:"input_tokens,omitempty"` OutputTokens int64 `protobuf:"varint,11,opt,name=output_tokens,json=outputTokens,proto3" json:"output_tokens,omitempty"` CachedTokens int64 `protobuf:"varint,12,opt,name=cached_tokens,json=cachedTokens,proto3" json:"cached_tokens,omitempty"` At *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=at,proto3" json:"at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UsageRecord) Reset() { *x = UsageRecord{} mi := &file_state_v1_execution_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UsageRecord) String() string { return protoimpl.X.MessageStringOf(x) } func (*UsageRecord) ProtoMessage() {} func (x *UsageRecord) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[9] 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 UsageRecord.ProtoReflect.Descriptor instead. func (*UsageRecord) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{9} } func (x *UsageRecord) GetSource() string { if x != nil { return x.Source } return "" } func (x *UsageRecord) GetTaskId() int64 { if x != nil { return x.TaskId } return 0 } func (x *UsageRecord) GetAttempt() int64 { if x != nil { return x.Attempt } return 0 } func (x *UsageRecord) GetWorkflow() string { if x != nil { return x.Workflow } return "" } func (x *UsageRecord) GetStep() string { if x != nil { return x.Step } return "" } func (x *UsageRecord) GetAlias() string { if x != nil { return x.Alias } return "" } func (x *UsageRecord) GetProvider() string { if x != nil { return x.Provider } return "" } func (x *UsageRecord) GetModel() string { if x != nil { return x.Model } return "" } func (x *UsageRecord) GetInputTokens() int64 { if x != nil { return x.InputTokens } return 0 } func (x *UsageRecord) GetOutputTokens() int64 { if x != nil { return x.OutputTokens } return 0 } func (x *UsageRecord) GetCachedTokens() int64 { if x != nil { return x.CachedTokens } return 0 } func (x *UsageRecord) GetAt() *timestamppb.Timestamp { if x != nil { return x.At } return nil } type RecordUsageRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Record *UsageRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RecordUsageRequest) Reset() { *x = RecordUsageRequest{} mi := &file_state_v1_execution_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RecordUsageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RecordUsageRequest) ProtoMessage() {} func (x *RecordUsageRequest) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[10] 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 RecordUsageRequest.ProtoReflect.Descriptor instead. func (*RecordUsageRequest) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{10} } func (x *RecordUsageRequest) GetRecord() *UsageRecord { if x != nil { return x.Record } return nil } type RecordUsageResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RecordUsageResponse) Reset() { *x = RecordUsageResponse{} mi := &file_state_v1_execution_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RecordUsageResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RecordUsageResponse) ProtoMessage() {} func (x *RecordUsageResponse) ProtoReflect() protoreflect.Message { mi := &file_state_v1_execution_proto_msgTypes[11] 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 RecordUsageResponse.ProtoReflect.Descriptor instead. func (*RecordUsageResponse) Descriptor() ([]byte, []int) { return file_state_v1_execution_proto_rawDescGZIP(), []int{11} } var File_state_v1_execution_proto protoreflect.FileDescriptor const file_state_v1_execution_proto_rawDesc = "" + "\n" + "\x18state/v1/execution.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14state/v1/types.proto\"\xc4\x01\n" + "\x10StartStepRequest\x12!\n" + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x18\n" + "\aattempt\x18\x02 \x01(\x03R\aattempt\x12\x1b\n" + "\tparent_id\x18\x03 \x01(\x03R\bparentId\x12\x12\n" + "\x04kind\x18\x04 \x01(\tR\x04kind\x12\x12\n" + "\x04name\x18\x05 \x01(\tR\x04name\x12.\n" + "\x13called_execution_id\x18\x06 \x01(\x03R\x11calledExecutionId\"S\n" + "\x11StartStepResponse\x12\x17\n" + "\astep_id\x18\x01 \x01(\x03R\x06stepId\x12%\n" + "\x05event\x18\x02 \x01(\v2\x0f.state.v1.EventR\x05event\"\xc6\x01\n" + "\x11FinishStepRequest\x12!\n" + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x17\n" + "\astep_id\x18\x02 \x01(\x03R\x06stepId\x12\x12\n" + "\x04from\x18\x03 \x01(\tR\x04from\x12\x0e\n" + "\x02to\x18\x04 \x01(\tR\x02to\x12\x16\n" + "\x06detail\x18\x05 \x01(\tR\x06detail\x12\x1f\n" + "\vtokens_used\x18\x06 \x01(\x03R\n" + "tokensUsed\x12\x18\n" + "\aresults\x18\a \x01(\fR\aresults\";\n" + "\x12FinishStepResponse\x12%\n" + "\x05event\x18\x01 \x01(\v2\x0f.state.v1.EventR\x05event\"Y\n" + "\x16CancelExecutionRequest\x12\x17\n" + "\atask_id\x18\x01 \x01(\x03R\x06taskId\x12\x16\n" + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x0e\n" + "\x02to\x18\x03 \x01(\tR\x02to\"e\n" + "\x17CancelExecutionResponse\x120\n" + "\x14cancelled_callee_ids\x18\x02 \x03(\x03R\x12cancelledCalleeIdsJ\x04\b\x01\x10\x02R\x12cancelled_step_ids\"\xb0\x03\n" + "\rStepExecution\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12!\n" + "\fexecution_id\x18\x02 \x01(\x03R\vexecutionId\x12\x18\n" + "\aattempt\x18\x03 \x01(\x03R\aattempt\x12\x1b\n" + "\tparent_id\x18\x04 \x01(\x03R\bparentId\x12\x14\n" + "\x05depth\x18\x05 \x01(\x05R\x05depth\x12\x12\n" + "\x04kind\x18\x06 \x01(\tR\x04kind\x12\x12\n" + "\x04name\x18\a \x01(\tR\x04name\x12\x16\n" + "\x06status\x18\b \x01(\tR\x06status\x12\x16\n" + "\x06detail\x18\t \x01(\tR\x06detail\x12\x1f\n" + "\vtokens_used\x18\n" + " \x01(\x03R\n" + "tokensUsed\x129\n" + "\n" + "started_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n" + "\vfinished_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\n" + "finishedAt\x12.\n" + "\x13called_execution_id\x18\r \x01(\x03R\x11calledExecutionId\"O\n" + "\x10ListStepsRequest\x12!\n" + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x18\n" + "\aattempt\x18\x02 \x01(\x03R\aattempt\"B\n" + "\x11ListStepsResponse\x12-\n" + "\x05steps\x18\x01 \x03(\v2\x17.state.v1.StepExecutionR\x05steps\"\xf7\x02\n" + "\vUsageRecord\x12\x16\n" + "\x06source\x18\x02 \x01(\tR\x06source\x12\x17\n" + "\atask_id\x18\x03 \x01(\x03R\x06taskId\x12\x18\n" + "\aattempt\x18\x04 \x01(\x03R\aattempt\x12\x1a\n" + "\bworkflow\x18\x05 \x01(\tR\bworkflow\x12\x12\n" + "\x04step\x18\x06 \x01(\tR\x04step\x12\x14\n" + "\x05alias\x18\a \x01(\tR\x05alias\x12\x1a\n" + "\bprovider\x18\b \x01(\tR\bprovider\x12\x14\n" + "\x05model\x18\t \x01(\tR\x05model\x12!\n" + "\finput_tokens\x18\n" + " \x01(\x03R\vinputTokens\x12#\n" + "\routput_tokens\x18\v \x01(\x03R\foutputTokens\x12#\n" + "\rcached_tokens\x18\f \x01(\x03R\fcachedTokens\x12*\n" + "\x02at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\x02atJ\x04\b\x01\x10\x02R\x06org_id\"C\n" + "\x12RecordUsageRequest\x12-\n" + "\x06record\x18\x01 \x01(\v2\x15.state.v1.UsageRecordR\x06record\"\x15\n" + "\x13RecordUsageResponse2\x8b\x03\n" + "\x10ExecutionService\x12D\n" + "\tStartStep\x12\x1a.state.v1.StartStepRequest\x1a\x1b.state.v1.StartStepResponse\x12J\n" + "\vRecordUsage\x12\x1c.state.v1.RecordUsageRequest\x1a\x1d.state.v1.RecordUsageResponse\x12G\n" + "\n" + "FinishStep\x12\x1b.state.v1.FinishStepRequest\x1a\x1c.state.v1.FinishStepResponse\x12V\n" + "\x0fCancelExecution\x12 .state.v1.CancelExecutionRequest\x1a!.state.v1.CancelExecutionResponse\x12D\n" + "\tListSteps\x12\x1a.state.v1.ListStepsRequest\x1a\x1b.state.v1.ListStepsResponseB\xa8\x01\n" + "\fcom.state.v1B\x0eExecutionProtoP\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_execution_proto_rawDescOnce sync.Once file_state_v1_execution_proto_rawDescData []byte ) func file_state_v1_execution_proto_rawDescGZIP() []byte { file_state_v1_execution_proto_rawDescOnce.Do(func() { file_state_v1_execution_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_execution_proto_rawDesc), len(file_state_v1_execution_proto_rawDesc))) }) return file_state_v1_execution_proto_rawDescData } var file_state_v1_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_state_v1_execution_proto_goTypes = []any{ (*StartStepRequest)(nil), // 0: state.v1.StartStepRequest (*StartStepResponse)(nil), // 1: state.v1.StartStepResponse (*FinishStepRequest)(nil), // 2: state.v1.FinishStepRequest (*FinishStepResponse)(nil), // 3: state.v1.FinishStepResponse (*CancelExecutionRequest)(nil), // 4: state.v1.CancelExecutionRequest (*CancelExecutionResponse)(nil), // 5: state.v1.CancelExecutionResponse (*StepExecution)(nil), // 6: state.v1.StepExecution (*ListStepsRequest)(nil), // 7: state.v1.ListStepsRequest (*ListStepsResponse)(nil), // 8: state.v1.ListStepsResponse (*UsageRecord)(nil), // 9: state.v1.UsageRecord (*RecordUsageRequest)(nil), // 10: state.v1.RecordUsageRequest (*RecordUsageResponse)(nil), // 11: state.v1.RecordUsageResponse (*Event)(nil), // 12: state.v1.Event (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp } var file_state_v1_execution_proto_depIdxs = []int32{ 12, // 0: state.v1.StartStepResponse.event:type_name -> state.v1.Event 12, // 1: state.v1.FinishStepResponse.event:type_name -> state.v1.Event 13, // 2: state.v1.StepExecution.started_at:type_name -> google.protobuf.Timestamp 13, // 3: state.v1.StepExecution.finished_at:type_name -> google.protobuf.Timestamp 6, // 4: state.v1.ListStepsResponse.steps:type_name -> state.v1.StepExecution 13, // 5: state.v1.UsageRecord.at:type_name -> google.protobuf.Timestamp 9, // 6: state.v1.RecordUsageRequest.record:type_name -> state.v1.UsageRecord 0, // 7: state.v1.ExecutionService.StartStep:input_type -> state.v1.StartStepRequest 10, // 8: state.v1.ExecutionService.RecordUsage:input_type -> state.v1.RecordUsageRequest 2, // 9: state.v1.ExecutionService.FinishStep:input_type -> state.v1.FinishStepRequest 4, // 10: state.v1.ExecutionService.CancelExecution:input_type -> state.v1.CancelExecutionRequest 7, // 11: state.v1.ExecutionService.ListSteps:input_type -> state.v1.ListStepsRequest 1, // 12: state.v1.ExecutionService.StartStep:output_type -> state.v1.StartStepResponse 11, // 13: state.v1.ExecutionService.RecordUsage:output_type -> state.v1.RecordUsageResponse 3, // 14: state.v1.ExecutionService.FinishStep:output_type -> state.v1.FinishStepResponse 5, // 15: state.v1.ExecutionService.CancelExecution:output_type -> state.v1.CancelExecutionResponse 8, // 16: state.v1.ExecutionService.ListSteps:output_type -> state.v1.ListStepsResponse 12, // [12:17] is the sub-list for method output_type 7, // [7:12] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_state_v1_execution_proto_init() } func file_state_v1_execution_proto_init() { if File_state_v1_execution_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_execution_proto_rawDesc), len(file_state_v1_execution_proto_rawDesc)), NumEnums: 0, NumMessages: 12, NumExtensions: 0, NumServices: 1, }, GoTypes: file_state_v1_execution_proto_goTypes, DependencyIndexes: file_state_v1_execution_proto_depIdxs, MessageInfos: file_state_v1_execution_proto_msgTypes, }.Build() File_state_v1_execution_proto = out.File file_state_v1_execution_proto_goTypes = nil file_state_v1_execution_proto_depIdxs = nil }