851 lines
43 KiB
Go
851 lines
43 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// version: proto synapse v1.0.0
|
|
// This file contains manually created stubs matching proto/synapse.proto
|
|
|
|
package grpcapi
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
anypb "google.golang.org/protobuf/types/known/anypb"
|
|
timestamp "google.golang.org/protobuf/types/known/timestamppb"
|
|
)
|
|
|
|
// TransportMode represents the transport mode
|
|
type TransportMode int32
|
|
|
|
const (
|
|
TransportMode_TRANSPORT_MODE_UNSPECIFIED TransportMode = 0
|
|
TransportMode_TRANSPORT_MODE_CALLBACK TransportMode = 1
|
|
TransportMode_TRANSPORT_MODE_POLLING TransportMode = 2
|
|
TransportMode_TRANSPORT_MODE_SYNC TransportMode = 3
|
|
TransportMode_TRANSPORT_MODE_HYBRID TransportMode = 4
|
|
)
|
|
|
|
var TransportMode_name = map[int32]string{
|
|
0: "TRANSPORT_MODE_UNSPECIFIED",
|
|
1: "TRANSPORT_MODE_CALLBACK",
|
|
2: "TRANSPORT_MODE_POLLING",
|
|
3: "TRANSPORT_MODE_SYNC",
|
|
4: "TRANSPORT_MODE_HYBRID",
|
|
}
|
|
|
|
var TransportMode_value = map[string]int32{
|
|
"TRANSPORT_MODE_UNSPECIFIED": 0,
|
|
"TRANSPORT_MODE_CALLBACK": 1,
|
|
"TRANSPORT_MODE_POLLING": 2,
|
|
"TRANSPORT_MODE_SYNC": 3,
|
|
"TRANSPORT_MODE_HYBRID": 4,
|
|
}
|
|
|
|
// MessageType represents the type of Synapse message
|
|
type MessageType int32
|
|
|
|
const (
|
|
MessageType_MESSAGE_TYPE_UNSPECIFIED MessageType = 0
|
|
MessageType_MESSAGE_TYPE_P2P_TASK_REQUEST MessageType = 1
|
|
MessageType_MESSAGE_TYPE_P2P_TASK_COMPLETE MessageType = 2
|
|
MessageType_MESSAGE_TYPE_P2P_TASK_FAILED MessageType = 3
|
|
MessageType_MESSAGE_TYPE_P2P_STATUS_UPDATE MessageType = 4
|
|
MessageType_MESSAGE_TYPE_P2P_INFO_MISSING MessageType = 5
|
|
MessageType_MESSAGE_TYPE_P2P_ACK MessageType = 6
|
|
MessageType_MESSAGE_TYPE_P2P_NACK MessageType = 7
|
|
MessageType_MESSAGE_TYPE_GROUP_INVITE MessageType = 8
|
|
MessageType_MESSAGE_TYPE_GROUP_JOIN MessageType = 9
|
|
MessageType_MESSAGE_TYPE_GROUP_LEAVE MessageType = 10
|
|
MessageType_MESSAGE_TYPE_GROUP_TASK_SPLIT MessageType = 11
|
|
MessageType_MESSAGE_TYPE_GROUP_SUBTASK_RESULT MessageType = 12
|
|
MessageType_MESSAGE_TYPE_GROUP_RESULT_MERGE MessageType = 13
|
|
MessageType_MESSAGE_TYPE_GROUP_VOTE_INITIATE MessageType = 14
|
|
MessageType_MESSAGE_TYPE_GROUP_VOTE_SUBMIT MessageType = 15
|
|
MessageType_MESSAGE_TYPE_GROUP_VOTE_RESULT MessageType = 16
|
|
MessageType_MESSAGE_TYPE_HIL_DECISION_REQUEST MessageType = 17
|
|
MessageType_MESSAGE_TYPE_HIL_DECISION_RESPONSE MessageType = 18
|
|
MessageType_MESSAGE_TYPE_HEARTBEAT MessageType = 19
|
|
)
|
|
|
|
var MessageType_name = map[int32]string{
|
|
0: "MESSAGE_TYPE_UNSPECIFIED",
|
|
1: "MESSAGE_TYPE_P2P_TASK_REQUEST",
|
|
2: "MESSAGE_TYPE_P2P_TASK_COMPLETE",
|
|
3: "MESSAGE_TYPE_P2P_TASK_FAILED",
|
|
4: "MESSAGE_TYPE_P2P_STATUS_UPDATE",
|
|
5: "MESSAGE_TYPE_P2P_INFO_MISSING",
|
|
6: "MESSAGE_TYPE_P2P_ACK",
|
|
7: "MESSAGE_TYPE_P2P_NACK",
|
|
8: "MESSAGE_TYPE_GROUP_INVITE",
|
|
9: "MESSAGE_TYPE_GROUP_JOIN",
|
|
10: "MESSAGE_TYPE_GROUP_LEAVE",
|
|
11: "MESSAGE_TYPE_GROUP_TASK_SPLIT",
|
|
12: "MESSAGE_TYPE_GROUP_SUBTASK_RESULT",
|
|
13: "MESSAGE_TYPE_GROUP_RESULT_MERGE",
|
|
14: "MESSAGE_TYPE_GROUP_VOTE_INITIATE",
|
|
15: "MESSAGE_TYPE_GROUP_VOTE_SUBMIT",
|
|
16: "MESSAGE_TYPE_GROUP_VOTE_RESULT",
|
|
17: "MESSAGE_TYPE_HIL_DECISION_REQUEST",
|
|
18: "MESSAGE_TYPE_HIL_DECISION_RESPONSE",
|
|
19: "MESSAGE_TYPE_HEARTBEAT",
|
|
}
|
|
|
|
var MessageType_value = map[string]int32{
|
|
"MESSAGE_TYPE_UNSPECIFIED": 0,
|
|
"MESSAGE_TYPE_P2P_TASK_REQUEST": 1,
|
|
"MESSAGE_TYPE_P2P_TASK_COMPLETE": 2,
|
|
"MESSAGE_TYPE_P2P_TASK_FAILED": 3,
|
|
"MESSAGE_TYPE_P2P_STATUS_UPDATE": 4,
|
|
"MESSAGE_TYPE_P2P_INFO_MISSING": 5,
|
|
"MESSAGE_TYPE_P2P_ACK": 6,
|
|
"MESSAGE_TYPE_P2P_NACK": 7,
|
|
"MESSAGE_TYPE_GROUP_INVITE": 8,
|
|
"MESSAGE_TYPE_GROUP_JOIN": 9,
|
|
"MESSAGE_TYPE_GROUP_LEAVE": 10,
|
|
"MESSAGE_TYPE_GROUP_TASK_SPLIT": 11,
|
|
"MESSAGE_TYPE_GROUP_SUBTASK_RESULT": 12,
|
|
"MESSAGE_TYPE_GROUP_RESULT_MERGE": 13,
|
|
"MESSAGE_TYPE_GROUP_VOTE_INITIATE": 14,
|
|
"MESSAGE_TYPE_GROUP_VOTE_SUBMIT": 15,
|
|
"MESSAGE_TYPE_GROUP_VOTE_RESULT": 16,
|
|
"MESSAGE_TYPE_HIL_DECISION_REQUEST": 17,
|
|
"MESSAGE_TYPE_HIL_DECISION_RESPONSE": 18,
|
|
"MESSAGE_TYPE_HEARTBEAT": 19,
|
|
}
|
|
|
|
// TaskStatus represents the status of a task
|
|
type TaskStatus int32
|
|
|
|
const (
|
|
TaskStatus_TASK_STATUS_UNSPECIFIED TaskStatus = 0
|
|
TaskStatus_TASK_STATUS_RECEIVED TaskStatus = 1
|
|
TaskStatus_TASK_STATUS_PROCESSING TaskStatus = 2
|
|
TaskStatus_TASK_STATUS_COMPLETED TaskStatus = 3
|
|
TaskStatus_TASK_STATUS_FAILED TaskStatus = 4
|
|
TaskStatus_TASK_STATUS_CANCELLED TaskStatus = 5
|
|
TaskStatus_TASK_STATUS_REJECTED TaskStatus = 6
|
|
TaskStatus_TASK_STATUS_WAITING TaskStatus = 7
|
|
)
|
|
|
|
var TaskStatus_name = map[int32]string{
|
|
0: "TASK_STATUS_UNSPECIFIED",
|
|
1: "TASK_STATUS_RECEIVED",
|
|
2: "TASK_STATUS_PROCESSING",
|
|
3: "TASK_STATUS_COMPLETED",
|
|
4: "TASK_STATUS_FAILED",
|
|
5: "TASK_STATUS_CANCELLED",
|
|
6: "TASK_STATUS_REJECTED",
|
|
7: "TASK_STATUS_WAITING",
|
|
}
|
|
|
|
var TaskStatus_value = map[string]int32{
|
|
"TASK_STATUS_UNSPECIFIED": 0,
|
|
"TASK_STATUS_RECEIVED": 1,
|
|
"TASK_STATUS_PROCESSING": 2,
|
|
"TASK_STATUS_COMPLETED": 3,
|
|
"TASK_STATUS_FAILED": 4,
|
|
"TASK_STATUS_CANCELLED": 5,
|
|
"TASK_STATUS_REJECTED": 6,
|
|
"TASK_STATUS_WAITING": 7,
|
|
}
|
|
|
|
func (x TransportMode) String() string { return fmt.Sprintf("%v", x) }
|
|
func (x MessageType) String() string { return fmt.Sprintf("%v", x) }
|
|
func (x TaskStatus) String() string { return fmt.Sprintf("%v", x) }
|
|
|
|
func init() {
|
|
proto.RegisterEnum("a2a.TransportMode", TransportMode_name, TransportMode_value)
|
|
proto.RegisterEnum("a2a.MessageType", MessageType_name, MessageType_value)
|
|
proto.RegisterEnum("a2a.TaskStatus", TaskStatus_name, TaskStatus_value)
|
|
}
|
|
|
|
// AgentEndpoint represents an agent's endpoint
|
|
type AgentEndpoint struct {
|
|
AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName" json:"agent_name,omitempty"`
|
|
SystemId string `protobuf:"bytes,3,opt,name=system_id,json=systemId" json:"system_id,omitempty"`
|
|
Endpoint string `protobuf:"bytes,4,opt,name=endpoint" json:"endpoint,omitempty"`
|
|
Version string `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"`
|
|
}
|
|
|
|
func (m *AgentEndpoint) Reset() { *m = AgentEndpoint{} }
|
|
func (m *AgentEndpoint) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*AgentEndpoint) ProtoMessage() {}
|
|
|
|
func (m *AgentEndpoint) GetAgentId() string {
|
|
if m != nil {
|
|
return m.AgentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// A2AMessage represents a complete Synapse message
|
|
type A2AMessage struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
|
|
Type MessageType `protobuf:"varint,3,opt,name=type,enum=a2a.MessageType" json:"type,omitempty"`
|
|
Sender *AgentEndpoint `protobuf:"bytes,4,opt,name=sender" json:"sender,omitempty"`
|
|
Receiver *AgentEndpoint `protobuf:"bytes,5,opt,name=receiver" json:"receiver,omitempty"`
|
|
CorrelationId string `protobuf:"bytes,6,opt,name=correlation_id,json=correlationId" json:"correlation_id,omitempty"`
|
|
ReplyTo string `protobuf:"bytes,7,opt,name=reply_to,json=replyTo" json:"reply_to,omitempty"`
|
|
GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
Timestamp *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp" json:"timestamp,omitempty"`
|
|
Payload *anypb.Any `protobuf:"bytes,10,opt,name=payload" json:"payload,omitempty"`
|
|
Signature string `protobuf:"bytes,11,opt,name=signature" json:"signature,omitempty"`
|
|
}
|
|
|
|
func (m *A2AMessage) Reset() { *m = A2AMessage{} }
|
|
func (m *A2AMessage) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*A2AMessage) ProtoMessage() {}
|
|
|
|
// TaskPayload represents task submission payload
|
|
type TaskPayload struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
TaskType string `protobuf:"bytes,2,opt,name=task_type,json=taskType" json:"task_type,omitempty"`
|
|
Payload *anypb.Any `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
|
|
ExternalTaskId string `protobuf:"bytes,4,opt,name=external_task_id,json=externalTaskId" json:"external_task_id,omitempty"`
|
|
}
|
|
|
|
func (m *TaskPayload) Reset() { *m = TaskPayload{} }
|
|
func (m *TaskPayload) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskPayload) ProtoMessage() {}
|
|
|
|
// TaskResult represents task result
|
|
type TaskResult struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
|
|
Result *anypb.Any `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"`
|
|
Summary string `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
|
|
}
|
|
|
|
func (m *TaskResult) Reset() { *m = TaskResult{} }
|
|
func (m *TaskResult) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskResult) ProtoMessage() {}
|
|
|
|
// TaskStatusUpdate represents task status update
|
|
type TaskStatusUpdate struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
Status TaskStatus `protobuf:"varint,2,opt,name=status,enum=a2a.TaskStatus" json:"status,omitempty"`
|
|
Progress int32 `protobuf:"varint,3,opt,name=progress" json:"progress,omitempty"`
|
|
Message string `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"`
|
|
Details *anypb.Any `protobuf:"bytes,5,opt,name=details" json:"details,omitempty"`
|
|
}
|
|
|
|
func (m *TaskStatusUpdate) Reset() { *m = TaskStatusUpdate{} }
|
|
func (m *TaskStatusUpdate) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskStatusUpdate) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Task Service Messages
|
|
// =============================================================================
|
|
|
|
// SubmitTaskRequest is the request for submitting a task
|
|
type SubmitTaskRequest struct {
|
|
TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType" json:"task_type,omitempty"`
|
|
Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
|
|
ExternalTaskId string `protobuf:"bytes,3,opt,name=external_task_id,json=externalTaskId" json:"external_task_id,omitempty"`
|
|
Priority string `protobuf:"bytes,4,opt,name=priority" json:"priority,omitempty"`
|
|
CallbackUrl string `protobuf:"bytes,5,opt,name=callback_url,json=callbackUrl" json:"callback_url,omitempty"`
|
|
CallbackToken string `protobuf:"bytes,6,opt,name=callback_token,json=callbackToken" json:"callback_token,omitempty"`
|
|
PreferredTransport TransportMode `protobuf:"varint,7,opt,name=preferred_transport,json=preferredTransport" json:"preferred_transport,omitempty"`
|
|
}
|
|
|
|
func (m *SubmitTaskRequest) Reset() { *m = SubmitTaskRequest{} }
|
|
func (m *SubmitTaskRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubmitTaskRequest) ProtoMessage() {}
|
|
|
|
func (m *SubmitTaskRequest) GetTaskType() string {
|
|
if m != nil {
|
|
return m.TaskType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// SubmitTaskResponse is the response for task submission
|
|
type SubmitTaskResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
Status TaskStatus `protobuf:"varint,3,opt,name=status,enum=a2a.TaskStatus" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"`
|
|
ErrorCode string `protobuf:"bytes,5,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
|
|
}
|
|
|
|
func (m *SubmitTaskResponse) Reset() { *m = SubmitTaskResponse{} }
|
|
func (m *SubmitTaskResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubmitTaskResponse) ProtoMessage() {}
|
|
|
|
// SubmitTaskWithFilesRequest is the request for submitting a task with files
|
|
type SubmitTaskWithFilesRequest struct {
|
|
Request *SubmitTaskRequest `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"`
|
|
Files []*FileUpload `protobuf:"bytes,2,rep,name=files" json:"files,omitempty"`
|
|
}
|
|
|
|
func (m *SubmitTaskWithFilesRequest) Reset() { *m = SubmitTaskWithFilesRequest{} }
|
|
func (m *SubmitTaskWithFilesRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubmitTaskWithFilesRequest) ProtoMessage() {}
|
|
|
|
// FileUpload represents an uploaded file
|
|
type FileUpload struct {
|
|
FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"`
|
|
Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
|
|
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"`
|
|
Data []byte `protobuf:"bytes,4,opt,name=data" json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *FileUpload) Reset() { *m = FileUpload{} }
|
|
func (m *FileUpload) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*FileUpload) ProtoMessage() {}
|
|
|
|
// GetTaskRequest is the request for getting task details
|
|
type GetTaskRequest struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
}
|
|
|
|
func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
|
|
func (m *GetTaskRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*GetTaskRequest) ProtoMessage() {}
|
|
|
|
// TaskStatusResponse is the response for task status query
|
|
type TaskStatusResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Task *TaskInfo `protobuf:"bytes,2,opt,name=task" json:"task,omitempty"`
|
|
ErrorCode string `protobuf:"bytes,3,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
|
|
ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
|
|
}
|
|
|
|
func (m *TaskStatusResponse) Reset() { *m = TaskStatusResponse{} }
|
|
func (m *TaskStatusResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskStatusResponse) ProtoMessage() {}
|
|
|
|
// TaskInfo represents task information
|
|
type TaskInfo struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
|
|
Status TaskStatus `protobuf:"varint,3,opt,name=status,enum=a2a.TaskStatus" json:"status,omitempty"`
|
|
Progress int32 `protobuf:"varint,4,opt,name=progress" json:"progress,omitempty"`
|
|
Message string `protobuf:"bytes,5,opt,name=message" json:"message,omitempty"`
|
|
CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
|
|
CompletedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=completed_at,json=completedAt" json:"completed_at,omitempty"`
|
|
ETA *timestamp.Timestamp `protobuf:"bytes,9,opt,name=e_t_a,json=eta" json:"eta,omitempty"`
|
|
Result *anypb.Any `protobuf:"bytes,10,opt,name=result" json:"result,omitempty"`
|
|
Error *TaskError `protobuf:"bytes,11,opt,name=error" json:"error,omitempty"`
|
|
ExternalTaskId string `protobuf:"bytes,12,opt,name=external_task_id,json=externalTaskId" json:"external_task_id,omitempty"`
|
|
}
|
|
|
|
func (m *TaskInfo) Reset() { *m = TaskInfo{} }
|
|
func (m *TaskInfo) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskInfo) ProtoMessage() {}
|
|
|
|
// TaskError represents a task error
|
|
type TaskError struct {
|
|
Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
|
}
|
|
|
|
func (m *TaskError) Reset() { *m = TaskError{} }
|
|
func (m *TaskError) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskError) ProtoMessage() {}
|
|
|
|
// ListTasksRequest is the request for listing tasks
|
|
type ListTasksRequest struct {
|
|
Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
|
|
Limit int32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
|
|
Offset int32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
|
|
}
|
|
|
|
func (m *ListTasksRequest) Reset() { *m = ListTasksRequest{} }
|
|
func (m *ListTasksRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*ListTasksRequest) ProtoMessage() {}
|
|
|
|
// ListTasksResponse is the response for listing tasks
|
|
type ListTasksResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Tasks []*TaskInfo `protobuf:"bytes,2,rep,name=tasks" json:"tasks,omitempty"`
|
|
Total int32 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
|
|
Limit int32 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"`
|
|
Offset int32 `protobuf:"varint,5,opt,name=offset" json:"offset,omitempty"`
|
|
HasMore bool `protobuf:"varint,6,opt,name=has_more,json=hasMore" json:"has_more,omitempty"`
|
|
}
|
|
|
|
func (m *ListTasksResponse) Reset() { *m = ListTasksResponse{} }
|
|
func (m *ListTasksResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*ListTasksResponse) ProtoMessage() {}
|
|
|
|
// CancelTaskRequest is the request for cancelling a task
|
|
type CancelTaskRequest struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
}
|
|
|
|
func (m *CancelTaskRequest) Reset() { *m = CancelTaskRequest{} }
|
|
func (m *CancelTaskRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*CancelTaskRequest) ProtoMessage() {}
|
|
|
|
// CancelTaskResponse is the response for cancelling a task
|
|
type CancelTaskResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
Status TaskStatus `protobuf:"varint,3,opt,name=status,enum=a2a.TaskStatus" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"`
|
|
}
|
|
|
|
func (m *CancelTaskResponse) Reset() { *m = CancelTaskResponse{} }
|
|
func (m *CancelTaskResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*CancelTaskResponse) ProtoMessage() {}
|
|
|
|
// TaskStatusStreamRequest is the request for streaming task status
|
|
type TaskStatusStreamRequest struct {
|
|
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
Subscribe bool `protobuf:"varint,2,opt,name=subscribe" json:"subscribe,omitempty"`
|
|
}
|
|
|
|
func (m *TaskStatusStreamRequest) Reset() { *m = TaskStatusStreamRequest{} }
|
|
func (m *TaskStatusStreamRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*TaskStatusStreamRequest) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Synapse Message Service Messages
|
|
// =============================================================================
|
|
|
|
// SendMessageRequest is the request for sending an Synapse message
|
|
type SendMessageRequest struct {
|
|
Message *A2AMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
|
|
}
|
|
|
|
func (m *SendMessageRequest) Reset() { *m = SendMessageRequest{} }
|
|
func (m *SendMessageRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SendMessageRequest) ProtoMessage() {}
|
|
|
|
// SendMessageResponse is the response for sending an Synapse message
|
|
type SendMessageResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId" json:"message_id,omitempty"`
|
|
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *SendMessageResponse) Reset() { *m = SendMessageResponse{} }
|
|
func (m *SendMessageResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SendMessageResponse) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Capabilities Service Messages
|
|
// =============================================================================
|
|
|
|
// CapabilitiesResponse is the response for capabilities query
|
|
type CapabilitiesResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Capabilities *AgentCapabilities `protobuf:"bytes,2,opt,name=capabilities" json:"capabilities,omitempty"`
|
|
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *CapabilitiesResponse) Reset() { *m = CapabilitiesResponse{} }
|
|
func (m *CapabilitiesResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*CapabilitiesResponse) ProtoMessage() {}
|
|
|
|
// AgentCapabilities represents agent capabilities
|
|
type AgentCapabilities struct {
|
|
AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName" json:"agent_name,omitempty"`
|
|
SystemId string `protobuf:"bytes,3,opt,name=system_id,json=systemId" json:"system_id,omitempty"`
|
|
ProtocolVersion string `protobuf:"bytes,4,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"`
|
|
SupportedTaskTypes []*SupportedTaskType `protobuf:"bytes,5,rep,name=supported_task_types,json=supportedTaskTypes" json:"supported_task_types,omitempty"`
|
|
SupportedContentTypes []string `protobuf:"bytes,6,rep,name=supported_content_types,json=supportedContentTypes" json:"supported_content_types,omitempty"`
|
|
SupportedTransportModes []TransportMode `protobuf:"varint,7,rep,name=supported_transport_modes,json=supportedTransportModes" json:"supported_transport_modes,omitempty"`
|
|
MaxFileSize int64 `protobuf:"varint,8,opt,name=max_file_size,json=maxFileSize" json:"max_file_size,omitempty"`
|
|
MaxConcurrentTasks int32 `protobuf:"varint,9,opt,name=max_concurrent_tasks,json=maxConcurrentTasks" json:"max_concurrent_tasks,omitempty"`
|
|
MaxTaskDurationSeconds int32 `protobuf:"varint,10,opt,name=max_task_duration_seconds,json=maxTaskDurationSeconds" json:"max_task_duration_seconds,omitempty"`
|
|
SupportProgressUpdates bool `protobuf:"varint,11,opt,name=support_progress_updates,json=supportProgressUpdates" json:"support_progress_updates,omitempty"`
|
|
SupportStreaming bool `protobuf:"varint,12,opt,name=support_streaming,json=supportStreaming" json:"support_streaming,omitempty"`
|
|
SupportHil bool `protobuf:"varint,13,opt,name=support_hil,json=supportHil" json:"support_hil,omitempty"`
|
|
SupportGroups bool `protobuf:"varint,14,opt,name=support_groups,json=supportGroups" json:"support_groups,omitempty"`
|
|
}
|
|
|
|
func (m *AgentCapabilities) Reset() { *m = AgentCapabilities{} }
|
|
func (m *AgentCapabilities) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*AgentCapabilities) ProtoMessage() {}
|
|
|
|
// SupportedTaskType represents a supported task type
|
|
type SupportedTaskType struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
|
EstimatedTime string `protobuf:"bytes,4,opt,name=estimated_time,json=estimatedTime" json:"estimated_time,omitempty"`
|
|
InputSchema string `protobuf:"bytes,5,opt,name=input_schema,json=inputSchema" json:"input_schema,omitempty"`
|
|
OutputSchema string `protobuf:"bytes,6,opt,name=output_schema,json=outputSchema" json:"output_schema,omitempty"`
|
|
Capabilities []string `protobuf:"bytes,7,rep,name=capabilities" json:"capabilities,omitempty"`
|
|
}
|
|
|
|
func (m *SupportedTaskType) Reset() { *m = SupportedTaskType{} }
|
|
func (m *SupportedTaskType) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SupportedTaskType) ProtoMessage() {}
|
|
|
|
// QueryAgentRequest is the request for querying an agent
|
|
type QueryAgentRequest struct {
|
|
AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAgentRequest) Reset() { *m = QueryAgentRequest{} }
|
|
func (m *QueryAgentRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*QueryAgentRequest) ProtoMessage() {}
|
|
|
|
// ListAgentsResponse is the response for listing agents
|
|
type ListAgentsResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Agents []*AgentInfo `protobuf:"bytes,2,rep,name=agents" json:"agents,omitempty"`
|
|
Total int32 `protobuf:"varint,3,opt,name=total" json:"total,omitempty"`
|
|
}
|
|
|
|
func (m *ListAgentsResponse) Reset() { *m = ListAgentsResponse{} }
|
|
func (m *ListAgentsResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*ListAgentsResponse) ProtoMessage() {}
|
|
|
|
// AgentInfo represents agent information
|
|
type AgentInfo struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
AgentName string `protobuf:"bytes,3,opt,name=agent_name,json=agentName" json:"agent_name,omitempty"`
|
|
SystemId string `protobuf:"bytes,4,opt,name=system_id,json=systemId" json:"system_id,omitempty"`
|
|
Endpoint string `protobuf:"bytes,5,opt,name=endpoint" json:"endpoint,omitempty"`
|
|
IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive" json:"is_active,omitempty"`
|
|
TrustLevel int32 `protobuf:"varint,7,opt,name=trust_level,json=trustLevel" json:"trust_level,omitempty"`
|
|
}
|
|
|
|
func (m *AgentInfo) Reset() { *m = AgentInfo{} }
|
|
func (m *AgentInfo) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*AgentInfo) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Group Service Messages
|
|
// =============================================================================
|
|
|
|
// CreateGroupRequest is the request for creating a group
|
|
type CreateGroupRequest struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
|
|
CoordinatorId string `protobuf:"bytes,3,opt,name=coordinator_id,json=coordinatorId" json:"coordinator_id,omitempty"`
|
|
InitialMembers []string `protobuf:"bytes,4,rep,name=initial_members,json=initialMembers" json:"initial_members,omitempty"`
|
|
}
|
|
|
|
func (m *CreateGroupRequest) Reset() { *m = CreateGroupRequest{} }
|
|
func (m *CreateGroupRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*CreateGroupRequest) ProtoMessage() {}
|
|
|
|
// CreateGroupResponse is the response for creating a group
|
|
type CreateGroupResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
Group *GroupInfo `protobuf:"bytes,3,opt,name=group" json:"group,omitempty"`
|
|
Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *CreateGroupResponse) Reset() { *m = CreateGroupResponse{} }
|
|
func (m *CreateGroupResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*CreateGroupResponse) ProtoMessage() {}
|
|
|
|
// GroupInfo represents group information
|
|
type GroupInfo struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
|
CoordinatorId string `protobuf:"bytes,4,opt,name=coordinator_id,json=coordinatorId" json:"coordinator_id,omitempty"`
|
|
Status string `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
|
|
CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
|
|
}
|
|
|
|
func (m *GroupInfo) Reset() { *m = GroupInfo{} }
|
|
func (m *GroupInfo) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*GroupInfo) ProtoMessage() {}
|
|
|
|
// JoinGroupRequest is the request for joining a group
|
|
type JoinGroupRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
Agent *AgentEndpoint `protobuf:"bytes,2,opt,name=agent" json:"agent,omitempty"`
|
|
}
|
|
|
|
func (m *JoinGroupRequest) Reset() { *m = JoinGroupRequest{} }
|
|
func (m *JoinGroupRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*JoinGroupRequest) ProtoMessage() {}
|
|
|
|
// JoinGroupResponse is the response for joining a group
|
|
type JoinGroupResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *JoinGroupResponse) Reset() { *m = JoinGroupResponse{} }
|
|
func (m *JoinGroupResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*JoinGroupResponse) ProtoMessage() {}
|
|
|
|
// LeaveGroupRequest is the request for leaving a group
|
|
type LeaveGroupRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
}
|
|
|
|
func (m *LeaveGroupRequest) Reset() { *m = LeaveGroupRequest{} }
|
|
func (m *LeaveGroupRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*LeaveGroupRequest) ProtoMessage() {}
|
|
|
|
// LeaveGroupResponse is the response for leaving a group
|
|
type LeaveGroupResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *LeaveGroupResponse) Reset() { *m = LeaveGroupResponse{} }
|
|
func (m *LeaveGroupResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*LeaveGroupResponse) ProtoMessage() {}
|
|
|
|
// DisbandGroupRequest is the request for disbanding a group
|
|
type DisbandGroupRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
}
|
|
|
|
func (m *DisbandGroupRequest) Reset() { *m = DisbandGroupRequest{} }
|
|
func (m *DisbandGroupRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*DisbandGroupRequest) ProtoMessage() {}
|
|
|
|
// DisbandGroupResponse is the response for disbanding a group
|
|
type DisbandGroupResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *DisbandGroupResponse) Reset() { *m = DisbandGroupResponse{} }
|
|
func (m *DisbandGroupResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*DisbandGroupResponse) ProtoMessage() {}
|
|
|
|
// ListGroupMembersRequest is the request for listing group members
|
|
type ListGroupMembersRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
}
|
|
|
|
func (m *ListGroupMembersRequest) Reset() { *m = ListGroupMembersRequest{} }
|
|
func (m *ListGroupMembersRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*ListGroupMembersRequest) ProtoMessage() {}
|
|
|
|
// ListGroupMembersResponse is the response for listing group members
|
|
type ListGroupMembersResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Members []*GroupMember `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"`
|
|
}
|
|
|
|
func (m *ListGroupMembersResponse) Reset() { *m = ListGroupMembersResponse{} }
|
|
func (m *ListGroupMembersResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*ListGroupMembersResponse) ProtoMessage() {}
|
|
|
|
// GroupMember represents a group member
|
|
type GroupMember struct {
|
|
AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName" json:"agent_name,omitempty"`
|
|
Role string `protobuf:"bytes,3,opt,name=role" json:"role,omitempty"`
|
|
Status string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
|
|
JoinedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt" json:"joined_at,omitempty"`
|
|
}
|
|
|
|
func (m *GroupMember) Reset() { *m = GroupMember{} }
|
|
func (m *GroupMember) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*GroupMember) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Group Voting Messages (NEW!)
|
|
// =============================================================================
|
|
|
|
// VoteRequest is the request for initiating a vote
|
|
type VoteRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
InitiatorId string `protobuf:"bytes,2,opt,name=initiator_id,json=initiatorId" json:"initiator_id,omitempty"`
|
|
Question string `protobuf:"bytes,3,opt,name=question" json:"question,omitempty"`
|
|
Options []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"`
|
|
Threshold float64 `protobuf:"fixed64,5,opt,name=threshold" json:"threshold,omitempty"`
|
|
TimeoutSeconds int32 `protobuf:"varint,6,opt,name=timeout_seconds,json=timeoutSeconds" json:"timeout_seconds,omitempty"`
|
|
}
|
|
|
|
func (m *VoteRequest) Reset() { *m = VoteRequest{} }
|
|
func (m *VoteRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*VoteRequest) ProtoMessage() {}
|
|
|
|
// VoteResponse is the response for initiating a vote
|
|
type VoteResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
VoteId string `protobuf:"bytes,2,opt,name=vote_id,json=voteId" json:"vote_id,omitempty"`
|
|
Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *VoteResponse) Reset() { *m = VoteResponse{} }
|
|
func (m *VoteResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*VoteResponse) ProtoMessage() {}
|
|
|
|
// SubmitVoteRequest is the request for submitting a vote
|
|
type SubmitVoteRequest struct {
|
|
VoteId string `protobuf:"bytes,1,opt,name=vote_id,json=voteId" json:"vote_id,omitempty"`
|
|
AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId" json:"agent_id,omitempty"`
|
|
Option string `protobuf:"bytes,3,opt,name=option" json:"option,omitempty"`
|
|
Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"`
|
|
}
|
|
|
|
func (m *SubmitVoteRequest) Reset() { *m = SubmitVoteRequest{} }
|
|
func (m *SubmitVoteRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubmitVoteRequest) ProtoMessage() {}
|
|
|
|
// SubmitVoteResponse is the response for submitting a vote
|
|
type SubmitVoteResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *SubmitVoteResponse) Reset() { *m = SubmitVoteResponse{} }
|
|
func (m *SubmitVoteResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubmitVoteResponse) ProtoMessage() {}
|
|
|
|
// GetVoteStatusRequest is the request for getting vote status
|
|
type GetVoteStatusRequest struct {
|
|
VoteId string `protobuf:"bytes,1,opt,name=vote_id,json=voteId" json:"vote_id,omitempty"`
|
|
}
|
|
|
|
func (m *GetVoteStatusRequest) Reset() { *m = GetVoteStatusRequest{} }
|
|
func (m *GetVoteStatusRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*GetVoteStatusRequest) ProtoMessage() {}
|
|
|
|
// VoteStatusResponse is the response for vote status
|
|
type VoteStatusResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
VoteId string `protobuf:"bytes,2,opt,name=vote_id,json=voteId" json:"vote_id,omitempty"`
|
|
Status string `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` // open, decided, expired
|
|
Question string `protobuf:"bytes,4,opt,name=question" json:"question,omitempty"`
|
|
TotalVotes int32 `protobuf:"varint,5,opt,name=total_votes,json=totalVotes" json:"total_votes,omitempty"`
|
|
RequiredVotes int32 `protobuf:"varint,6,opt,name=required_votes,json=requiredVotes" json:"required_votes,omitempty"`
|
|
WinningOption string `protobuf:"bytes,7,opt,name=winning_option,json=winningOption" json:"winning_option,omitempty"`
|
|
Error string `protobuf:"bytes,8,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *VoteStatusResponse) Reset() { *m = VoteStatusResponse{} }
|
|
func (m *VoteStatusResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*VoteStatusResponse) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Task Split Messages (NEW!)
|
|
// =============================================================================
|
|
|
|
// SplitTaskRequest is the request for splitting a task
|
|
type SplitTaskRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId" json:"task_id,omitempty"`
|
|
TaskType string `protobuf:"bytes,3,opt,name=task_type,json=taskType" json:"task_type,omitempty"`
|
|
Requirements string `protobuf:"bytes,4,opt,name=requirements" json:"requirements,omitempty"`
|
|
Strategy SplitStrategy `protobuf:"varint,5,opt,name=strategy,enum=a2a.SplitStrategy" json:"strategy,omitempty"`
|
|
}
|
|
|
|
func (m *SplitTaskRequest) Reset() { *m = SplitTaskRequest{} }
|
|
func (m *SplitTaskRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SplitTaskRequest) ProtoMessage() {}
|
|
|
|
type SplitStrategy int32
|
|
|
|
const (
|
|
SplitStrategy_SPLIT_BY_TYPE SplitStrategy = 0
|
|
SplitStrategy_SPLIT_BY_DATA SplitStrategy = 1
|
|
SplitStrategy_SPLIT_BY_REGION SplitStrategy = 2
|
|
SplitStrategy_SPLIT_BY_ROUNDROBIN SplitStrategy = 3
|
|
)
|
|
|
|
// SplitTaskResponse is the response for splitting a task
|
|
type SplitTaskResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
ParentTaskId string `protobuf:"bytes,3,opt,name=parent_task_id,json=parentTaskId" json:"parent_task_id,omitempty"`
|
|
Subtasks []*SubtaskInfo `protobuf:"bytes,4,rep,name=subtasks" json:"subtasks,omitempty"`
|
|
Error string `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *SplitTaskResponse) Reset() { *m = SplitTaskResponse{} }
|
|
func (m *SplitTaskResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SplitTaskResponse) ProtoMessage() {}
|
|
|
|
type SubtaskInfo struct {
|
|
SubtaskId string `protobuf:"bytes,1,opt,name=subtask_id,json=subtaskId" json:"subtask_id,omitempty"`
|
|
Assignee string `protobuf:"bytes,2,opt,name=assignee" json:"assignee,omitempty"`
|
|
Scope string `protobuf:"bytes,3,opt,name=scope" json:"scope,omitempty"`
|
|
Dependencies []string `protobuf:"bytes,4,rep,name=dependencies" json:"dependencies,omitempty"`
|
|
}
|
|
|
|
func (m *SubtaskInfo) Reset() { *m = SubtaskInfo{} }
|
|
func (m *SubtaskInfo) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*SubtaskInfo) ProtoMessage() {}
|
|
|
|
// MergeResultsRequest is the request for merging results
|
|
type MergeResultsRequest struct {
|
|
GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId" json:"group_id,omitempty"`
|
|
ParentTaskId string `protobuf:"bytes,2,opt,name=parent_task_id,json=parentTaskId" json:"parent_task_id,omitempty"`
|
|
Strategy MergeStrategy `protobuf:"varint,3,opt,name=strategy,enum=a2a.MergeStrategy" json:"strategy,omitempty"`
|
|
}
|
|
|
|
func (m *MergeResultsRequest) Reset() { *m = MergeResultsRequest{} }
|
|
func (m *MergeResultsRequest) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*MergeResultsRequest) ProtoMessage() {}
|
|
|
|
type MergeStrategy int32
|
|
|
|
const (
|
|
MergeStrategy_MERGE_ALL MergeStrategy = 0
|
|
MergeStrategy_MERGE_BEST MergeStrategy = 1
|
|
MergeStrategy_MERGE_CONSENSUS MergeStrategy = 2
|
|
MergeStrategy_MERGE_AGGREGATE MergeStrategy = 3
|
|
)
|
|
|
|
// MergeResultsResponse is the response for merging results
|
|
type MergeResultsResponse struct {
|
|
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
|
|
ParentTaskId string `protobuf:"bytes,2,opt,name=parent_task_id,json=parentTaskId" json:"parent_task_id,omitempty"`
|
|
MergedResult *anypb.Any `protobuf:"bytes,3,opt,name=merged_result,json=mergedResult" json:"merged_result,omitempty"`
|
|
Summary string `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
|
|
Error string `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *MergeResultsResponse) Reset() { *m = MergeResultsResponse{} }
|
|
func (m *MergeResultsResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*MergeResultsResponse) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Health Service Messages
|
|
// =============================================================================
|
|
|
|
// HealthCheckResponse is the response for health check
|
|
type HealthCheckResponse struct {
|
|
Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
|
|
UptimeSeconds int64 `protobuf:"varint,3,opt,name=uptime_seconds,json=uptimeSeconds" json:"uptime_seconds,omitempty"`
|
|
ActiveTasks int32 `protobuf:"varint,4,opt,name=active_tasks,json=activeTasks" json:"active_tasks,omitempty"`
|
|
}
|
|
|
|
func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} }
|
|
func (m *HealthCheckResponse) String() string { return fmt.Sprintf("%+v", m) }
|
|
func (*HealthCheckResponse) ProtoMessage() {}
|
|
|
|
// =============================================================================
|
|
// Unimplemented types for proto compatibility
|
|
// =============================================================================
|
|
|
|
// Ensure proto compatibility
|
|
var _ proto.Message = (*AgentEndpoint)(nil)
|
|
var _ proto.Message = (*A2AMessage)(nil)
|
|
var _ proto.Message = (*SubmitTaskRequest)(nil)
|
|
var _ proto.Message = (*SubmitTaskResponse)(nil)
|
|
var _ proto.Message = (*GetTaskRequest)(nil)
|
|
var _ proto.Message = (*TaskStatusResponse)(nil)
|
|
var _ proto.Message = (*ListTasksRequest)(nil)
|
|
var _ proto.Message = (*ListTasksResponse)(nil)
|
|
var _ proto.Message = (*CancelTaskRequest)(nil)
|
|
var _ proto.Message = (*CancelTaskResponse)(nil)
|
|
var _ proto.Message = (*SendMessageRequest)(nil)
|
|
var _ proto.Message = (*SendMessageResponse)(nil)
|
|
var _ proto.Message = (*CapabilitiesResponse)(nil)
|
|
var _ proto.Message = (*CreateGroupRequest)(nil)
|
|
var _ proto.Message = (*CreateGroupResponse)(nil)
|
|
var _ proto.Message = (*JoinGroupRequest)(nil)
|
|
var _ proto.Message = (*JoinGroupResponse)(nil)
|
|
var _ proto.Message = (*LeaveGroupRequest)(nil)
|
|
var _ proto.Message = (*LeaveGroupResponse)(nil)
|
|
var _ proto.Message = (*DisbandGroupRequest)(nil)
|
|
var _ proto.Message = (*DisbandGroupResponse)(nil)
|
|
var _ proto.Message = (*ListGroupMembersRequest)(nil)
|
|
var _ proto.Message = (*ListGroupMembersResponse)(nil)
|
|
var _ proto.Message = (*HealthCheckResponse)(nil)
|