e071084ebe
govulncheck / govulncheck (push) Waiting to run
Harness (E2E) / Harnesses (mock LLM) (push) Waiting to run
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Run Tests / Unit Tests (push) Waiting to run
Run Tests / Etcd Integration Tests (push) Waiting to run
298 lines
8.6 KiB
Go
298 lines
8.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: agent/proto/agent.proto
|
|
|
|
package agent
|
|
|
|
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 ChatRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
// parent_id correlates this chat with the workflow or agent run that dispatched it.
|
|
ParentId string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatRequest) Reset() {
|
|
*x = ChatRequest{}
|
|
mi := &file_agent_proto_agent_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatRequest) ProtoMessage() {}
|
|
|
|
func (x *ChatRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_proto_agent_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 ChatRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChatRequest) Descriptor() ([]byte, []int) {
|
|
return file_agent_proto_agent_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ChatRequest) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatRequest) GetParentId() string {
|
|
if x != nil {
|
|
return x.ParentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChatResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"`
|
|
Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"`
|
|
ToolCalls []*ToolCall `protobuf:"bytes,3,rep,name=tool_calls,json=toolCalls,proto3" json:"tool_calls,omitempty"`
|
|
// run_id correlates this chat response with tool calls, traces, and run history.
|
|
RunId string `protobuf:"bytes,4,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
// parent_id is set when this response belongs to a delegated sub-agent run.
|
|
ParentId string `protobuf:"bytes,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatResponse) Reset() {
|
|
*x = ChatResponse{}
|
|
mi := &file_agent_proto_agent_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatResponse) ProtoMessage() {}
|
|
|
|
func (x *ChatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_proto_agent_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 ChatResponse.ProtoReflect.Descriptor instead.
|
|
func (*ChatResponse) Descriptor() ([]byte, []int) {
|
|
return file_agent_proto_agent_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ChatResponse) GetReply() string {
|
|
if x != nil {
|
|
return x.Reply
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetAgent() string {
|
|
if x != nil {
|
|
return x.Agent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetToolCalls() []*ToolCall {
|
|
if x != nil {
|
|
return x.ToolCalls
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChatResponse) GetRunId() string {
|
|
if x != nil {
|
|
return x.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetParentId() string {
|
|
if x != nil {
|
|
return x.ParentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ToolCall struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
|
|
Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ToolCall) Reset() {
|
|
*x = ToolCall{}
|
|
mi := &file_agent_proto_agent_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ToolCall) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ToolCall) ProtoMessage() {}
|
|
|
|
func (x *ToolCall) ProtoReflect() protoreflect.Message {
|
|
mi := &file_agent_proto_agent_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 ToolCall.ProtoReflect.Descriptor instead.
|
|
func (*ToolCall) Descriptor() ([]byte, []int) {
|
|
return file_agent_proto_agent_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ToolCall) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToolCall) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToolCall) GetInput() string {
|
|
if x != nil {
|
|
return x.Input
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ToolCall) GetResult() string {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_agent_proto_agent_proto protoreflect.FileDescriptor
|
|
|
|
const file_agent_proto_agent_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17agent/proto/agent.proto\x12\x05agent\"D\n" +
|
|
"\vChatRequest\x12\x18\n" +
|
|
"\amessage\x18\x01 \x01(\tR\amessage\x12\x1b\n" +
|
|
"\tparent_id\x18\x02 \x01(\tR\bparentId\"\x9e\x01\n" +
|
|
"\fChatResponse\x12\x14\n" +
|
|
"\x05reply\x18\x01 \x01(\tR\x05reply\x12\x14\n" +
|
|
"\x05agent\x18\x02 \x01(\tR\x05agent\x12.\n" +
|
|
"\n" +
|
|
"tool_calls\x18\x03 \x03(\v2\x0f.agent.ToolCallR\ttoolCalls\x12\x15\n" +
|
|
"\x06run_id\x18\x04 \x01(\tR\x05runId\x12\x1b\n" +
|
|
"\tparent_id\x18\x05 \x01(\tR\bparentId\"\\\n" +
|
|
"\bToolCall\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05input\x18\x03 \x01(\tR\x05input\x12\x16\n" +
|
|
"\x06result\x18\x04 \x01(\tR\x06result2:\n" +
|
|
"\x05Agent\x121\n" +
|
|
"\x04Chat\x12\x12.agent.ChatRequest\x1a\x13.agent.ChatResponse\"\x00B\x0fZ\r./proto;agentb\x06proto3"
|
|
|
|
var (
|
|
file_agent_proto_agent_proto_rawDescOnce sync.Once
|
|
file_agent_proto_agent_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_agent_proto_agent_proto_rawDescGZIP() []byte {
|
|
file_agent_proto_agent_proto_rawDescOnce.Do(func() {
|
|
file_agent_proto_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agent_proto_agent_proto_rawDesc), len(file_agent_proto_agent_proto_rawDesc)))
|
|
})
|
|
return file_agent_proto_agent_proto_rawDescData
|
|
}
|
|
|
|
var file_agent_proto_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_agent_proto_agent_proto_goTypes = []any{
|
|
(*ChatRequest)(nil), // 0: agent.ChatRequest
|
|
(*ChatResponse)(nil), // 1: agent.ChatResponse
|
|
(*ToolCall)(nil), // 2: agent.ToolCall
|
|
}
|
|
var file_agent_proto_agent_proto_depIdxs = []int32{
|
|
2, // 0: agent.ChatResponse.tool_calls:type_name -> agent.ToolCall
|
|
0, // 1: agent.Agent.Chat:input_type -> agent.ChatRequest
|
|
1, // 2: agent.Agent.Chat:output_type -> agent.ChatResponse
|
|
2, // [2:3] is the sub-list for method output_type
|
|
1, // [1:2] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_agent_proto_agent_proto_init() }
|
|
func file_agent_proto_agent_proto_init() {
|
|
if File_agent_proto_agent_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_agent_proto_agent_proto_rawDesc), len(file_agent_proto_agent_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_agent_proto_agent_proto_goTypes,
|
|
DependencyIndexes: file_agent_proto_agent_proto_depIdxs,
|
|
MessageInfos: file_agent_proto_agent_proto_msgTypes,
|
|
}.Build()
|
|
File_agent_proto_agent_proto = out.File
|
|
file_agent_proto_agent_proto_goTypes = nil
|
|
file_agent_proto_agent_proto_depIdxs = nil
|
|
}
|