Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Initial introduction of Event proto (#7)

Jaana Dogan304fde0d6fc0
diff --git a/README.md b/README.md
index 7a34762..4b1631f 100644
--- a/README.md
+++ b/README.md
@@ -219,17 +219,7 @@ gar trigger --session session123 \
### Event Log Format
-Event logs use JSON Lines format (one JSON object per line). Each entry includes the session ID, a monotonic sequence number, and checkpoint ID (for content events) for traceability:
-
-```json
-{"type": "CONTENT", "timestamp": "2026-01-02T10:30:00Z", "seq": 0, "checkpoint_id": "550e8400-e29b-41d4-a716-446655440000", "data": {...}}
-{"type": "CONTENT", "timestamp": "2026-01-02T10:30:01Z", "seq": 1,"checkpoint_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "data": {...}}
-{"type": "SESSION_FAILED", "timestamp": "2026-01-02T10:30:02Z", "seq": 2, "data": {...}}
-```
-
-**Event Types:**
-- `CONTENT`: Incoming or outgoing content from user or agent (optionally includes `checkpoint_id`).
-- `SESSION_FAILED`: Session state has failed and session is not resumable.
+Event logs use the `Event` message available in the protobuf.
## Building Custom Agents
diff --git a/agent/agent.go b/agent/agent.go
index 97c6aed..be05645 100644
--- a/agent/agent.go
+++ b/agent/agent.go
@@ -26,6 +26,8 @@ import (
// It is called for each piece of content the agent generates.
type OutputHandler func(content *proto.Content) error
+// TODO(jbd): Allow OutputHandler to provide an awaitingMore as a boolean.
+
// Agent defines the common interface for both local and remote agents.
// Agents process content using callback handlers.
type Agent interface {
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 36b5fcd..fe24c02 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -128,14 +128,7 @@ func (d *Controller) TriggerSession(ctx context.Context, sessionID string, input
return fmt.Errorf("session has failed and cannot continue")
}
- // Write input content to session
- for _, content := range inputs {
- if _, err := sess.WriteContentIn(ctx, "", content); err != nil {
- return fmt.Errorf("failed to write input content: %w", err)
- }
- }
-
- if err := d.loopExecutor.Execute(ctx, sess, handler); err != nil {
+ if err := d.loopExecutor.Execute(ctx, sess, inputs, handler); err != nil {
return fmt.Errorf("loop execution failed: %w", err)
}
return nil
diff --git a/internal/controller/loop.go b/internal/controller/loop.go
index 2670027..22c6692 100644
--- a/internal/controller/loop.go
+++ b/internal/controller/loop.go
@@ -81,15 +81,29 @@ func NewLoopExecutor(ctx context.Context, config LoopConfig) (*LoopExecutor, err
}
// Execute starts a new agentic loop execution for the given session.
-func (e *LoopExecutor) Execute(ctx context.Context, session *Session, handler agent.OutputHandler) error {
- return e.runLoop(ctx, session, handler)
+func (e *LoopExecutor) Execute(ctx context.Context, session *Session, inputs []*proto.Content, handler agent.OutputHandler) error {
+ return e.runLoop(ctx, session, inputs, handler)
}
// runLoop executes the main agentic loop.
// It runs up to maxSteps iterations per trigger/resume invocation.
-func (e *LoopExecutor) runLoop(ctx context.Context, session *Session, handler agent.OutputHandler) error {
+func (e *LoopExecutor) runLoop(ctx context.Context, session *Session, inputs []*proto.Content, handler agent.OutputHandler) error {
steps := 0
+ for _, agentID := range session.WaitingAgents() {
+ buffer := session.WaitingBuffer(agentID)
+ _ = buffer
+ // TODO(jbd): Run the agent with session history and buffer as input.
+ return fmt.Errorf("resuming waiting agents is not yet supported")
+ }
+
+ // Write the new inputs to the event log.
+ for _, content := range inputs {
+ if err := session.WriteContent(ctx, "", content); err != nil {
+ return fmt.Errorf("failed to write input content: %w", err)
+ }
+ }
+
for steps < e.maxSteps {
// Check context cancellation
select {
@@ -128,27 +142,18 @@ func (e *LoopExecutor) runLoop(ctx context.Context, session *Session, handler ag
func (e *LoopExecutor) runTask(ctx context.Context, session *Session, task *Task, handler agent.OutputHandler) error {
// TODO(jbd): Log task start and task end to allow resuming dangling tasks.
taskOutputHandler := func(content *proto.Content) error {
- if _, err := session.WriteContentOut(ctx, task.AgentID, content); err != nil {
+ if err := session.WriteContent(ctx, task.AgentID, content); err != nil {
return fmt.Errorf("failed to write output content: %w", err)
}
- if err := handler(content); err != nil {
- return fmt.Errorf("output handler error: %w", err)
- }
- return nil
+ return handler(content)
}
- return e.executeTask(ctx, session.ID(), task, taskOutputHandler)
-}
-// executeTask sends input to an agent and collects output.
-func (e *LoopExecutor) executeTask(ctx context.Context, sessionID string, task *Task, handler agent.OutputHandler) error {
- // Get the agent from registry
ag, err := e.registry.Get(task.AgentID)
if err != nil {
return fmt.Errorf("failed to get agent: %w", err)
}
- // Process inputs with the agent
- if err := ag.Process(ctx, sessionID, task.Inputs, handler); err != nil {
+ if err := ag.Process(ctx, session.ID(), task.Inputs, taskOutputHandler); err != nil {
return fmt.Errorf("agent process failed: %w", err)
}
return nil
diff --git a/internal/controller/session.go b/internal/controller/session.go
index 739a8bc..5432bc3 100644
--- a/internal/controller/session.go
+++ b/internal/controller/session.go
@@ -18,11 +18,10 @@ import (
"context"
"fmt"
"sync"
- "time"
"github.com/google/gar/internal/eventlog"
"github.com/google/gar/proto"
- "github.com/google/uuid"
+ "google.golang.org/protobuf/types/known/timestamppb"
)
// Session represents an agentic loop execution session.
@@ -32,14 +31,10 @@ type Session struct {
mu sync.RWMutex
eventLog eventlog.EventLog
- currentStep int
state proto.State
- activeAgents []string
messageHistory []*proto.Content
- checkpointIDs []string // Ordered list of checkpoint UUIDs
-
- createdAt time.Time
- updatedAt time.Time
+ waitingAgents map[string][]*proto.Content // by agent ID
+ checkpointIDs map[string]struct{} // checkpoint UUIDs
}
// SessionManager manages multiple sessions.
@@ -73,16 +68,12 @@ func (sm *SessionManager) NewSession(sessionID string) (*Session, error) {
return nil, fmt.Errorf("failed to create event log: %w", err)
}
- now := time.Now()
session := &Session{
id: sessionID,
state: proto.State_STATE_UNSPECIFIED,
- currentStep: 0,
- activeAgents: []string{},
messageHistory: []*proto.Content{},
- checkpointIDs: []string{},
- createdAt: now,
- updatedAt: now,
+ waitingAgents: make(map[string][]*proto.Content),
+ checkpointIDs: make(map[string]struct{}),
eventLog: el,
}
@@ -106,13 +97,12 @@ func (sm *SessionManager) LoadSessionFromCheckpoint(ctx context.Context, session
delete(sm.sessions, sessionID)
// Open event log for replay using the factory
- replayLog, err := sm.eventLogFactory(sessionID)
+ el, err := sm.eventLogFactory(sessionID)
if err != nil {
return nil, fmt.Errorf("failed to open event log for replay: %w", err)
}
- defer replayLog.Close()
- entries, state, err := replayLog.Load(ctx, checkpointID)
+ events, state, err := el.LoadEvents(ctx, checkpointID)
if err != nil {
return nil, fmt.Errorf("failed to get event log entries: %w", err)
}
@@ -121,41 +111,49 @@ func (sm *SessionManager) LoadSessionFromCheckpoint(ctx context.Context, session
session := &Session{
id: sessionID,
state: state,
- currentStep: 0,
- activeAgents: []string{},
+ eventLog: el,
+ waitingAgents: make(map[string][]*proto.Content),
messageHistory: []*proto.Content{},
- checkpointIDs: []string{},
- createdAt: time.Now(),
- updatedAt: time.Now(),
+ checkpointIDs: make(map[string]struct{}),
}
// Replay entries to rebuild state
- for _, entry := range entries {
- switch entry.Type {
- case eventlog.EventTypeContent:
- content := &proto.Content{
- Role: getStringFromData(entry.Data, "role"),
- Type: getStringFromData(entry.Data, "type"),
- Mimetype: getStringFromData(entry.Data, "mimetype"),
- Data: getStringFromData(entry.Data, "data"),
- }
- session.messageHistory = append(session.messageHistory, content)
-
- // Track checkpoint ID if present
- if entry.CheckpointID != "" {
- session.checkpointIDs = append(session.checkpointIDs, entry.CheckpointID)
+ for _, e := range events {
+ switch x := e.Kind.(type) {
+ case *proto.Event_AgentCallEvent:
+ event := x.AgentCallEvent
+ if event.AwaitingMore {
+ session.waitingAgents[event.Sender] = append(
+ session.waitingAgents[event.Sender], event.Contents...)
+ } else {
+ // If buffer already exists, append it to the history first.
+ // Then merge the new contents to the message history.
+ // Once we don't wait for new contents from an agent,
+ // we don't care about the origin of the contents anymore.
+ if len(session.waitingAgents[event.Sender]) > 0 {
+ session.messageHistory = append(
+ session.messageHistory, session.waitingAgents[event.Sender]...)
+ }
+ session.messageHistory = append(
+ session.messageHistory, event.Contents...)
+
+ // Cleanup the waiting buffer, it's now a part of the overall history.
+ delete(session.waitingAgents, event.Sender)
}
+ case *proto.Event_SessionStateEvent:
+ session.state = x.SessionStateEvent.State
+ case *proto.Event_HandoffEvent:
+ return nil, fmt.Errorf("HandoffEvent is not yet supported")
+ case *proto.Event_ContentEvent:
+ session.messageHistory = append(session.messageHistory, x.ContentEvent.Contents...)
+ default:
+ return nil, fmt.Errorf("unknown event kind: %v", e.Kind)
}
- session.updatedAt = entry.Timestamp
- }
-
- // Reopen event log for appending using the factory
- el, err := sm.eventLogFactory(sessionID)
- if err != nil {
- return nil, fmt.Errorf("failed to reopen event log: %w", err)
+ if e.CheckpointId != "" {
+ session.checkpointIDs[e.CheckpointId] = struct{}{}
+ }
}
- session.eventLog = el
sm.sessions[sessionID] = session
return session, nil
@@ -206,9 +204,9 @@ func (sm *SessionManager) CloseAll() {
}
}
-// WriteContentIn appends an incoming content message to the session.
+// WriteContent appends an incoming content message to the session.
// Creates a checkpoint only if checkpoint_id is provided in the content.
-func (s *Session) WriteContentIn(ctx context.Context, agentID string, content *proto.Content) (string, error) {
+func (s *Session) WriteContent(ctx context.Context, sender string, content *proto.Content) error {
s.mu.Lock()
defer s.mu.Unlock()
@@ -216,42 +214,33 @@ func (s *Session) WriteContentIn(ctx context.Context, agentID string, content *p
checkpointID := content.CheckpointId
if checkpointID != "" {
- // TODO(jbd): Optimize the lookup.
- for _, existingID := range s.checkpointIDs {
- if existingID == checkpointID {
- return "", fmt.Errorf("checkpoint %s already exists", checkpointID)
- }
+ if _, ok := s.checkpointIDs[checkpointID]; ok {
+ return fmt.Errorf("checkpoint %s already exists", checkpointID)
}
}
- if err := s.eventLog.AppendContent(ctx, checkpointID, agentID, content); err != nil {
- return "", err
+ if err := s.eventLog.AppendEvent(ctx, &proto.Event{
+ SessionId: s.id,
+ CheckpointId: checkpointID,
+ SenderId: sender,
+ Timestamp: timestamppb.Now(),
+ ControllerTimestamp: timestamppb.Now(),
+ Kind: &proto.Event_ContentEvent{
+ ContentEvent: &proto.ContentEvent{
+ Contents: []*proto.Content{
+ content,
+ },
+ },
+ },
+ }); err != nil {
+ return err
}
s.messageHistory = append(s.messageHistory, content)
if checkpointID != "" {
- s.checkpointIDs = append(s.checkpointIDs, checkpointID)
+ s.checkpointIDs[checkpointID] = struct{}{}
}
- s.updatedAt = time.Now()
- return checkpointID, nil
-}
-
-// WriteContentOut appends an outgoing content message to the session with a new checkpoint.
-func (s *Session) WriteContentOut(ctx context.Context, agentID string, content *proto.Content) (string, error) {
- s.mu.Lock()
- defer s.mu.Unlock()
-
- // Generate a new checkpoint UUID
- checkpointID := uuid.New().String()
-
- if err := s.eventLog.AppendContent(ctx, checkpointID, agentID, content); err != nil {
- return "", err
- }
-
- s.messageHistory = append(s.messageHistory, content)
- s.checkpointIDs = append(s.checkpointIDs, checkpointID)
- s.updatedAt = time.Now()
- return checkpointID, nil
+ return nil
}
// SetState updates the session state.
@@ -259,67 +248,69 @@ func (s *Session) SetState(ctx context.Context, state proto.State) error {
s.mu.Lock()
defer s.mu.Unlock()
- if err := s.eventLog.AppendState(ctx, state); err != nil {
- return fmt.Errorf("failed to append state: %w", err)
+ if err := s.eventLog.AppendEvent(ctx, &proto.Event{
+ SessionId: s.id,
+ Timestamp: timestamppb.Now(),
+ ControllerTimestamp: timestamppb.Now(),
+ Kind: &proto.Event_SessionStateEvent{
+ SessionStateEvent: &proto.SessionStateEvent{
+ State: state,
+ },
+ },
+ }); err != nil {
+ return err
}
s.state = state
- s.updatedAt = time.Now()
return nil
}
-func (s *Session) ID() string {
- return s.id
-}
-
-func (s *Session) State() proto.State {
+func (s *Session) WaitingAgents() []string {
s.mu.RLock()
defer s.mu.RUnlock()
- return s.state
+ var agents []string
+ for agentID := range s.waitingAgents {
+ agents = append(agents, agentID)
+ }
+ return agents
}
-func (s *Session) ActiveAgents() []string {
+func (s *Session) WaitingBuffer(agentID string) []*proto.Content {
s.mu.RLock()
defer s.mu.RUnlock()
- return s.activeAgents
+ return s.waitingAgents[agentID]
}
-func (s *Session) History() []*proto.Content {
- s.mu.RLock()
- defer s.mu.RUnlock()
-
- return s.messageHistory
+func (s *Session) ID() string {
+ return s.id
}
-func (s *Session) CheckpointIDs() []string {
+func (s *Session) State() proto.State {
s.mu.RLock()
defer s.mu.RUnlock()
- return s.checkpointIDs
+ return s.state
}
-func (s *Session) CreatedAt() time.Time {
+func (s *Session) History() []*proto.Content {
s.mu.RLock()
defer s.mu.RUnlock()
- return s.createdAt
+ return s.messageHistory
}
-func (s *Session) UpdatedAt() time.Time {
+func (s *Session) CheckpointIDs() []string {
s.mu.RLock()
defer s.mu.RUnlock()
- return s.updatedAt
-}
+ // TODO(jbd): Not ordered, but is still useful
+ // for introspection capabilities.
-// Helper function to extract string from map[string]any
-func getStringFromData(data map[string]any, key string) string {
- if val, ok := data[key]; ok {
- if str, ok := val.(string); ok {
- return str
- }
+ var checkpointIDs []string
+ for checkpointID := range s.checkpointIDs {
+ checkpointIDs = append(checkpointIDs, checkpointID)
}
- return ""
+ return checkpointIDs
}
diff --git a/internal/eventlog/eventlog.go b/internal/eventlog/eventlog.go
index f807235..9996b66 100644
--- a/internal/eventlog/eventlog.go
+++ b/internal/eventlog/eventlog.go
@@ -18,43 +18,19 @@ package eventlog
import (
"context"
- "time"
"github.com/google/gar/proto"
)
-// EventType represents the type of event stored in the event log.
-type EventType string
-
-const (
- EventTypeContent EventType = "CONTENT"
- EventTypeSessionFailed EventType = "SESSION_FAILED" // cannot resume
- // TODO(jbd): Add EventTypeCompaction.
- // TODO(jbd): Events for agent call lifecycle.
-)
-
-// Entry represents a single entry in the event log.
-type Entry struct {
- Type EventType `json:"type"`
- CheckpointID string `json:"checkpoint_id,omitempty"` // UUID for checkpoint tracking
- AgentID string `json:"agent_id,omitempty"` // Associated agent ID, could be empty
- Sequence int64 `json:"seq"` // Monotonic sequence number
- Timestamp time.Time `json:"timestamp"`
- Data map[string]any `json:"data"`
-}
-
// EventLog is the interface that all event log implementations must satisfy.
// It provides methods for appending events, reading entries, and managing the log lifecycle.
type EventLog interface {
- // AppendContent appends a content message to the event log with a checkpoint UUID.
- AppendContent(ctx context.Context, checkpointID string, agentID string, content *proto.Content) error
-
- // AppendState appends a state to the event log.
- AppendState(ctx context.Context, s proto.State) error
+ // AppendEvent appends an event to the log.
+ AppendEvent(ctx context.Context, e *proto.Event) error
- // Load returns all entries from the event log in order.
- // If checkpointID is provided, returns entries up to and including that checkpoint.
- Load(ctx context.Context, checkpointID string) ([]Entry, proto.State, error)
+ // LoadEvents loads all events up to the checkpoint.
+ // If no checkpoint is provided, it returns all events recorded.
+ LoadEvents(ctx context.Context, checkpointID string) ([]*proto.Event, proto.State, error)
// Close closes the event log and releases any resources.
Close() error
diff --git a/internal/eventlog/file.go b/internal/eventlog/file.go
index 03beff4..771c9fd 100644
--- a/internal/eventlog/file.go
+++ b/internal/eventlog/file.go
@@ -17,15 +17,13 @@ package eventlog
import (
"bufio"
"context"
- "encoding/json"
- "errors"
"fmt"
"os"
"path/filepath"
"sync"
- "time"
"github.com/google/gar/proto"
+ "google.golang.org/protobuf/encoding/protojson"
)
// FileEventLog represents a file-based event log for a single session.
@@ -36,7 +34,6 @@ type FileEventLog struct {
filePath string
file *os.File
writer *bufio.Writer
- sequence int64 // Monotonic sequence counter
}
// FileConfig configures a FileEventLog instance.
@@ -68,32 +65,11 @@ func NewFileEventLog(config FileConfig) (*FileEventLog, error) {
return nil, fmt.Errorf("failed to open event log file: %w", err)
}
- // Read existing entries to determine the current sequence number
- var sequence int64
- if fileInfo, err := os.Stat(filePath); err == nil && fileInfo.Size() > 0 {
- readFile, err := os.Open(filePath)
- if err != nil {
- file.Close()
- return nil, fmt.Errorf("failed to read existing log for sequence: %w", err)
- }
- scanner := bufio.NewScanner(readFile)
- for scanner.Scan() {
- var entry Entry
- if err := json.Unmarshal(scanner.Bytes(), &entry); err == nil {
- if entry.Sequence > sequence {
- sequence = entry.Sequence
- }
- }
- }
- readFile.Close()
- }
-
return &FileEventLog{
sessionID: config.SessionID,
filePath: filePath,
file: file,
writer: bufio.NewWriter(file),
- sequence: sequence,
}, nil
}
@@ -104,25 +80,11 @@ func NewFileConfig(config FileConfig) (EventLog, error) {
return NewFileEventLog(config)
}
-// append writes an entry to the event log.
-// Entries are written in JSON Lines format with atomic appends.
-func (e *FileEventLog) append(checkpointID string, agentID string, entryType EventType, data map[string]any) error {
+func (e *FileEventLog) AppendEvent(ctx context.Context, event *proto.Event) error {
e.mu.Lock()
defer e.mu.Unlock()
- entry := Entry{
- Timestamp: time.Now(),
- Sequence: e.sequence,
- Type: entryType,
- CheckpointID: checkpointID,
- AgentID: agentID,
- Data: data,
- }
-
- // Increment sequence for next entry
- e.sequence++
-
- jsonData, err := json.Marshal(entry)
+ jsonData, err := protojson.Marshal(event)
if err != nil {
return fmt.Errorf("failed to marshal entry: %w", err)
}
@@ -143,115 +105,74 @@ func (e *FileEventLog) append(checkpointID string, agentID string, entryType Eve
return nil
}
-// AppendContent writes a content message to the event log with a checkpoint UUID.
-func (e *FileEventLog) AppendContent(ctx context.Context, checkpointID string, agentID string, content *proto.Content) error {
- data := map[string]any{
- "role": content.Role,
- "type": content.Type,
- "mimetype": content.Mimetype,
- "data": content.Data,
- }
- return e.append(checkpointID, agentID, EventTypeContent, data)
-}
-
-func (e *FileEventLog) AppendState(ctx context.Context, state proto.State) error {
- switch state {
- case proto.State_STATE_FAILED:
- return e.append("", "", EventTypeSessionFailed, nil)
- }
- return errors.New("only COMPLETED and FAILED states are supported")
-}
-
-// Close closes the event log file.
-func (e *FileEventLog) Close() error {
- e.mu.Lock()
- defer e.mu.Unlock()
-
- if err := e.writer.Flush(); err != nil {
- return fmt.Errorf("failed to flush on close: %w", err)
- }
- if err := e.file.Close(); err != nil {
- return fmt.Errorf("failed to close file: %w", err)
- }
- return nil
-}
-
-// FilePath returns the path to the event log file.
-// This method is specific to FileEventLog and not part of the EventLog interface.
-func (e *FileEventLog) FilePath() string {
- return e.filePath
-}
-
-// SessionID returns the session ID for this event log.
-func (e *FileEventLog) SessionID() string {
- return e.sessionID
-}
-
-// Load reads and returns all entries from the event log file.
-// If checkpointID is provided, returns entries up to and including that checkpoint.
-// Returns entries in order.
-func (e *FileEventLog) Load(ctx context.Context, checkpointID string) ([]Entry, proto.State, error) {
+func (e *FileEventLog) LoadEvents(ctx context.Context, checkpointID string) ([]*proto.Event, proto.State, error) {
e.mu.Lock()
defer e.mu.Unlock()
var state proto.State
-
- // Flush any pending writes first
if err := e.writer.Flush(); err != nil {
return nil, 0, fmt.Errorf("failed to flush before reading: %w", err)
}
- // Check if file exists
- if _, err := os.Stat(e.filePath); os.IsNotExist(err) {
- return nil, 0, fmt.Errorf("event log file does not exist")
- }
-
- // Open file for reading
- readFile, err := os.Open(e.filePath)
+ f, err := os.Open(e.filePath)
if err != nil {
return nil, 0, fmt.Errorf("failed to open event log file for reading: %w", err)
}
- defer readFile.Close()
+ defer f.Close()
- var entries []Entry
- scanner := bufio.NewScanner(readFile)
-
- lineNum := 0
- var expectedSequence int64 = 0
+ var events []*proto.Event
+ scanner := bufio.NewScanner(f)
checkpointFound := false
for scanner.Scan() {
- lineNum++
line := scanner.Bytes()
- var entry Entry
- if err := json.Unmarshal(line, &entry); err != nil {
- return nil, 0, fmt.Errorf("failed to unmarshal entry at line %d: %w", lineNum, err)
+ var e proto.Event
+ if err := protojson.Unmarshal(line, &e); err != nil {
+ return nil, 0, fmt.Errorf("failed to unmarshal event: %w", err)
}
- // Validate sequence number
- if entry.Sequence != expectedSequence {
- return nil, 0, fmt.Errorf("sequence number mismatch at line %d: expected %d, got %d", lineNum, expectedSequence, entry.Sequence)
+ switch x := e.Kind.(type) {
+ case *proto.Event_SessionStateEvent:
+ state = x.SessionStateEvent.State
}
-
- expectedSequence++
- entries = append(entries, entry)
-
- // Check if this entry matches the target checkpoint
- if checkpointID != "" && entry.CheckpointID == checkpointID {
+ events = append(events, &e)
+ if checkpointID != "" && e.CheckpointId == checkpointID {
checkpointFound = true
break
}
}
-
if err := scanner.Err(); err != nil {
return nil, 0, fmt.Errorf("error reading event log file: %w", err)
}
-
- // Validate checkpoint was found if specified
if checkpointID != "" && !checkpointFound {
return nil, 0, fmt.Errorf("checkpoint ID %s not found in event log", checkpointID)
}
- return entries, state, nil
+ return events, state, nil
+}
+
+// Close closes the event log file.
+func (e *FileEventLog) Close() error {
+ e.mu.Lock()
+ defer e.mu.Unlock()
+
+ if err := e.writer.Flush(); err != nil {
+ return fmt.Errorf("failed to flush on close: %w", err)
+ }
+ if err := e.file.Close(); err != nil {
+ return fmt.Errorf("failed to close file: %w", err)
+ }
+ return nil
+}
+
+// FilePath returns the path to the event log file.
+// This method is specific to FileEventLog and not part of the EventLog interface.
+func (e *FileEventLog) FilePath() string {
+ return e.filePath
+}
+
+// SessionID returns the session ID for this event log.
+func (e *FileEventLog) SessionID() string {
+ return e.sessionID
}
diff --git a/internal/server/server.go b/internal/server/server.go
index 5501d7b..09427b6 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -22,7 +22,6 @@ import (
"net"
"google.golang.org/grpc"
- "google.golang.org/protobuf/types/known/timestamppb"
"github.com/google/gar/agent"
"github.com/google/gar/internal/config"
@@ -92,9 +91,6 @@ func (s *Server) GetSession(ctx context.Context, req *proto.GetSessionRequest) (
return &proto.GetSessionResponse{
Session: &proto.SessionInfo{
State: session.State(),
- ActiveAgents: session.ActiveAgents(),
- CreatedAt: timestamppb.New(session.CreatedAt()),
- UpdatedAt: timestamppb.New(session.UpdatedAt()),
CheckpointIds: session.CheckpointIDs(),
},
}, nil
diff --git a/proto/gar.pb.go b/proto/gar.pb.go
index ce5dfaa..0e4e0d3 100644
--- a/proto/gar.pb.go
+++ b/proto/gar.pb.go
@@ -14,8 +14,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.36.11
-// protoc v3.21.9
+// protoc-gen-go v1.35.1
+// protoc v5.28.2
// source: proto/gar.proto
package proto
@@ -26,7 +26,6 @@ import (
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
- unsafe "unsafe"
)
const (
@@ -91,14 +90,15 @@ func (State) EnumDescriptor() ([]byte, []int) {
// Content represents a message with role, type, mimetype, and data fields
type Content struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Optional: Checkpoint ID for this content
- Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // The role of the content (e.g., "user", "assistant", "system")
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // The type of content (e.g., "text", "image")
- Mimetype string `protobuf:"bytes,4,opt,name=mimetype,proto3" json:"mimetype,omitempty"` // MIME type of the data (e.g., "text/plain", "image/png")
- Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // The actual content data
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Optional: Checkpoint ID for this content
+ Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // The role of the content (e.g., "user", "assistant", "system")
+ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // The type of content (e.g., "text", "image")
+ Mimetype string `protobuf:"bytes,4,opt,name=mimetype,proto3" json:"mimetype,omitempty"` // MIME type of the data (e.g., "text/plain", "image/png")
+ Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // The actual content data
}
func (x *Content) Reset() {
@@ -166,16 +166,384 @@ func (x *Content) GetData() string {
return ""
}
+type SessionStateEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ State State `protobuf:"varint,1,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`
+}
+
+func (x *SessionStateEvent) Reset() {
+ *x = SessionStateEvent{}
+ mi := &file_proto_gar_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *SessionStateEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SessionStateEvent) ProtoMessage() {}
+
+func (x *SessionStateEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_gar_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 SessionStateEvent.ProtoReflect.Descriptor instead.
+func (*SessionStateEvent) Descriptor() ([]byte, []int) {
+ return file_proto_gar_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *SessionStateEvent) GetState() State {
+ if x != nil {
+ return x.State
+ }
+ return State_STATE_UNSPECIFIED
+}
+
+type AgentCallEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
+ Contents []*Content `protobuf:"bytes,4,rep,name=contents,proto3" json:"contents,omitempty"`
+ // Whether the caller is awaiting additional AgentCallEvents.
+ AwaitingMore bool `protobuf:"varint,5,opt,name=awaiting_more,json=awaitingMore,proto3" json:"awaiting_more,omitempty"`
+}
+
+func (x *AgentCallEvent) Reset() {
+ *x = AgentCallEvent{}
+ mi := &file_proto_gar_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *AgentCallEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AgentCallEvent) ProtoMessage() {}
+
+func (x *AgentCallEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_gar_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 AgentCallEvent.ProtoReflect.Descriptor instead.
+func (*AgentCallEvent) Descriptor() ([]byte, []int) {
+ return file_proto_gar_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *AgentCallEvent) GetSender() string {
+ if x != nil {
+ return x.Sender
+ }
+ return ""
+}
+
+func (x *AgentCallEvent) GetContents() []*Content {
+ if x != nil {
+ return x.Contents
+ }
+ return nil
+}
+
+func (x *AgentCallEvent) GetAwaitingMore() bool {
+ if x != nil {
+ return x.AwaitingMore
+ }
+ return false
+}
+
+type HandoffEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SourceAgentId string `protobuf:"bytes,3,opt,name=source_agent_id,json=sourceAgentId,proto3" json:"source_agent_id,omitempty"`
+ TargetAgentId string `protobuf:"bytes,4,opt,name=target_agent_id,json=targetAgentId,proto3" json:"target_agent_id,omitempty"`
+ Contents []*Content `protobuf:"bytes,5,rep,name=contents,proto3" json:"contents,omitempty"`
+}
+
+func (x *HandoffEvent) Reset() {
+ *x = HandoffEvent{}
+ mi := &file_proto_gar_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *HandoffEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*HandoffEvent) ProtoMessage() {}
+
+func (x *HandoffEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_gar_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 HandoffEvent.ProtoReflect.Descriptor instead.
+func (*HandoffEvent) Descriptor() ([]byte, []int) {
+ return file_proto_gar_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *HandoffEvent) GetSourceAgentId() string {
+ if x != nil {
+ return x.SourceAgentId
+ }
+ return ""
+}
+
+func (x *HandoffEvent) GetTargetAgentId() string {
+ if x != nil {
+ return x.TargetAgentId
+ }
+ return ""
+}
+
+func (x *HandoffEvent) GetContents() []*Content {
+ if x != nil {
+ return x.Contents
+ }
+ return nil
+}
+
+type ContentEvent struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Contents []*Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
+}
+
+func (x *ContentEvent) Reset() {
+ *x = ContentEvent{}
+ mi := &file_proto_gar_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ContentEvent) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ContentEvent) ProtoMessage() {}
+
+func (x *ContentEvent) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_gar_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 ContentEvent.ProtoReflect.Descriptor instead.
+func (*ContentEvent) Descriptor() ([]byte, []int) {
+ return file_proto_gar_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *ContentEvent) GetContents() []*Content {
+ if x != nil {
+ return x.Contents
+ }
+ return nil
+}
+
+type Event struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
+ CheckpointId string `protobuf:"bytes,2,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`
+ SenderName string `protobuf:"bytes,3,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"`
+ SenderId string `protobuf:"bytes,4,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
+ Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
+ ControllerTimestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=controller_timestamp,json=controllerTimestamp,proto3" json:"controller_timestamp,omitempty"`
+ // Types that are assignable to Kind:
+ //
+ // *Event_SessionStateEvent
+ // *Event_AgentCallEvent
+ // *Event_HandoffEvent
+ // *Event_ContentEvent
+ Kind isEvent_Kind `protobuf_oneof:"kind"`
+}
+
+func (x *Event) Reset() {
+ *x = Event{}
+ mi := &file_proto_gar_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *Event) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Event) ProtoMessage() {}
+
+func (x *Event) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_gar_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 Event.ProtoReflect.Descriptor instead.
+func (*Event) Descriptor() ([]byte, []int) {
+ return file_proto_gar_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *Event) GetSessionId() string {
+ if x != nil {
+ return x.SessionId
+ }
+ return ""
+}
+
+func (x *Event) GetCheckpointId() string {
+ if x != nil {
+ return x.CheckpointId
+ }
+ return ""
+}
+
+func (x *Event) GetSenderName() string {
+ if x != nil {
+ return x.SenderName
+ }
+ return ""
+}
+
+func (x *Event) GetSenderId() string {
+ if x != nil {
+ return x.SenderId
+ }
+ return ""
+}
+
+func (x *Event) GetTimestamp() *timestamppb.Timestamp {
+ if x != nil {
+ return x.Timestamp
+ }
+ return nil
+}
+
+func (x *Event) GetControllerTimestamp() *timestamppb.Timestamp {
+ if x != nil {
+ return x.ControllerTimestamp
+ }
+ return nil
+}
+
+func (m *Event) GetKind() isEvent_Kind {
+ if m != nil {
+ return m.Kind
+ }
+ return nil
+}
+
+func (x *Event) GetSessionStateEvent() *SessionStateEvent {
+ if x, ok := x.GetKind().(*Event_SessionStateEvent); ok {
+ return x.SessionStateEvent
+ }
+ return nil
+}
+
+func (x *Event) GetAgentCallEvent() *AgentCallEvent {
+ if x, ok := x.GetKind().(*Event_AgentCallEvent); ok {
+ return x.AgentCallEvent
+ }
+ return nil
+}
+
+func (x *Event) GetHandoffEvent() *HandoffEvent {
+ if x, ok := x.GetKind().(*Event_HandoffEvent); ok {
+ return x.HandoffEvent
+ }
+ return nil
+}
+
+func (x *Event) GetContentEvent() *ContentEvent {
+ if x, ok := x.GetKind().(*Event_ContentEvent); ok {
+ return x.ContentEvent
+ }
+ return nil
+}
+
+type isEvent_Kind interface {
+ isEvent_Kind()
+}
+
+type Event_SessionStateEvent struct {
+ SessionStateEvent *SessionStateEvent `protobuf:"bytes,7,opt,name=session_state_event,json=sessionStateEvent,proto3,oneof"`
+}
+
+type Event_AgentCallEvent struct {
+ AgentCallEvent *AgentCallEvent `protobuf:"bytes,8,opt,name=agent_call_event,json=agentCallEvent,proto3,oneof"`
+}
+
+type Event_HandoffEvent struct {
+ HandoffEvent *HandoffEvent `protobuf:"bytes,9,opt,name=handoff_event,json=handoffEvent,proto3,oneof"`
+}
+
+type Event_ContentEvent struct {
+ ContentEvent *ContentEvent `protobuf:"bytes,10,opt,name=content_event,json=contentEvent,proto3,oneof"`
+}
+
+func (*Event_SessionStateEvent) isEvent_Kind() {}
+
+func (*Event_AgentCallEvent) isEvent_Kind() {}
+
+func (*Event_HandoffEvent) isEvent_Kind() {}
+
+func (*Event_ContentEvent) isEvent_Kind() {}
+
// HealthCheckRequest for agent health checks
type HealthCheckRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
func (x *HealthCheckRequest) Reset() {
*x = HealthCheckRequest{}
- mi := &file_proto_gar_proto_msgTypes[1]
+ mi := &file_proto_gar_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -187,7 +555,7 @@ func (x *HealthCheckRequest) String() string {
func (*HealthCheckRequest) ProtoMessage() {}
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[1]
+ mi := &file_proto_gar_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -200,21 +568,22 @@ func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{1}
+ return file_proto_gar_proto_rawDescGZIP(), []int{6}
}
// HealthCheckResponse contains agent health status
type HealthCheckResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}
func (x *HealthCheckResponse) Reset() {
*x = HealthCheckResponse{}
- mi := &file_proto_gar_proto_msgTypes[2]
+ mi := &file_proto_gar_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -226,7 +595,7 @@ func (x *HealthCheckResponse) String() string {
func (*HealthCheckResponse) ProtoMessage() {}
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[2]
+ mi := &file_proto_gar_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -239,7 +608,7 @@ func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{2}
+ return file_proto_gar_proto_rawDescGZIP(), []int{7}
}
func (x *HealthCheckResponse) GetHealthy() bool {
@@ -258,17 +627,18 @@ func (x *HealthCheckResponse) GetMessage() string {
// TriggerSessionRequest for triggering a new session
type TriggerSessionRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Unique session identifier
- CheckpointId string `protobuf:"bytes,2,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Optional: Resume from specific checkpoint UUID (empty for latest)
- Inputs []*Content `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` // Input content to process
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Unique session identifier
+ CheckpointId string `protobuf:"bytes,2,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Optional: Resume from specific checkpoint UUID (empty for latest)
+ Inputs []*Content `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` // Input content to process
}
func (x *TriggerSessionRequest) Reset() {
*x = TriggerSessionRequest{}
- mi := &file_proto_gar_proto_msgTypes[3]
+ mi := &file_proto_gar_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -280,7 +650,7 @@ func (x *TriggerSessionRequest) String() string {
func (*TriggerSessionRequest) ProtoMessage() {}
func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[3]
+ mi := &file_proto_gar_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -293,7 +663,7 @@ func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use TriggerSessionRequest.ProtoReflect.Descriptor instead.
func (*TriggerSessionRequest) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{3}
+ return file_proto_gar_proto_rawDescGZIP(), []int{8}
}
func (x *TriggerSessionRequest) GetSessionId() string {
@@ -319,17 +689,18 @@ func (x *TriggerSessionRequest) GetInputs() []*Content {
// TriggerSessionResponse contains the result of triggering a session
type TriggerSessionResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session ID (in case it was generated or modified by server)
- State State `protobuf:"varint,2,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state
- Output *Content `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // Output content
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session ID (in case it was generated or modified by server)
+ State State `protobuf:"varint,2,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state
+ Output *Content `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // Output content
}
func (x *TriggerSessionResponse) Reset() {
*x = TriggerSessionResponse{}
- mi := &file_proto_gar_proto_msgTypes[4]
+ mi := &file_proto_gar_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -341,7 +712,7 @@ func (x *TriggerSessionResponse) String() string {
func (*TriggerSessionResponse) ProtoMessage() {}
func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[4]
+ mi := &file_proto_gar_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -354,7 +725,7 @@ func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use TriggerSessionResponse.ProtoReflect.Descriptor instead.
func (*TriggerSessionResponse) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{4}
+ return file_proto_gar_proto_rawDescGZIP(), []int{9}
}
func (x *TriggerSessionResponse) GetSessionId() string {
@@ -380,15 +751,16 @@ func (x *TriggerSessionResponse) GetOutput() *Content {
// GetSessionRequest for retrieving session details
type GetSessionRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
}
func (x *GetSessionRequest) Reset() {
*x = GetSessionRequest{}
- mi := &file_proto_gar_proto_msgTypes[5]
+ mi := &file_proto_gar_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -400,7 +772,7 @@ func (x *GetSessionRequest) String() string {
func (*GetSessionRequest) ProtoMessage() {}
func (x *GetSessionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[5]
+ mi := &file_proto_gar_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -413,7 +785,7 @@ func (x *GetSessionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.
func (*GetSessionRequest) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{5}
+ return file_proto_gar_proto_rawDescGZIP(), []int{10}
}
func (x *GetSessionRequest) GetSessionId() string {
@@ -425,19 +797,20 @@ func (x *GetSessionRequest) GetSessionId() string {
// SessionInfo contains session details
type SessionInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
State State `protobuf:"varint,1,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`
ActiveAgents []string `protobuf:"bytes,2,rep,name=active_agents,json=activeAgents,proto3" json:"active_agents,omitempty"`
CheckpointIds []string `protobuf:"bytes,3,rep,name=checkpoint_ids,json=checkpointIds,proto3" json:"checkpoint_ids,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Session creation time
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Last update time
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
}
func (x *SessionInfo) Reset() {
*x = SessionInfo{}
- mi := &file_proto_gar_proto_msgTypes[6]
+ mi := &file_proto_gar_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -449,7 +822,7 @@ func (x *SessionInfo) String() string {
func (*SessionInfo) ProtoMessage() {}
func (x *SessionInfo) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[6]
+ mi := &file_proto_gar_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -462,7 +835,7 @@ func (x *SessionInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.
func (*SessionInfo) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{6}
+ return file_proto_gar_proto_rawDescGZIP(), []int{11}
}
func (x *SessionInfo) GetState() State {
@@ -502,15 +875,16 @@ func (x *SessionInfo) GetUpdatedAt() *timestamppb.Timestamp {
// GetSessionResponse contains session information
type GetSessionResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Session *SessionInfo `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Session *SessionInfo `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
}
func (x *GetSessionResponse) Reset() {
*x = GetSessionResponse{}
- mi := &file_proto_gar_proto_msgTypes[7]
+ mi := &file_proto_gar_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -522,7 +896,7 @@ func (x *GetSessionResponse) String() string {
func (*GetSessionResponse) ProtoMessage() {}
func (x *GetSessionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[7]
+ mi := &file_proto_gar_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -535,7 +909,7 @@ func (x *GetSessionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSessionResponse.ProtoReflect.Descriptor instead.
func (*GetSessionResponse) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{7}
+ return file_proto_gar_proto_rawDescGZIP(), []int{12}
}
func (x *GetSessionResponse) GetSession() *SessionInfo {
@@ -547,19 +921,20 @@ func (x *GetSessionResponse) GetSession() *SessionInfo {
// RegisterAgentRequest for registering an agent
type RegisterAgentRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name for the agent
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Description of agent capabilities
- Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // gRPC address for remote agents
- Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name for the agent
+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Description of agent capabilities
+ Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // gRPC address for remote agents
+ Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *RegisterAgentRequest) Reset() {
*x = RegisterAgentRequest{}
- mi := &file_proto_gar_proto_msgTypes[8]
+ mi := &file_proto_gar_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -571,7 +946,7 @@ func (x *RegisterAgentRequest) String() string {
func (*RegisterAgentRequest) ProtoMessage() {}
func (x *RegisterAgentRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[8]
+ mi := &file_proto_gar_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -584,7 +959,7 @@ func (x *RegisterAgentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegisterAgentRequest.ProtoReflect.Descriptor instead.
func (*RegisterAgentRequest) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{8}
+ return file_proto_gar_proto_rawDescGZIP(), []int{13}
}
func (x *RegisterAgentRequest) GetAgentId() string {
@@ -624,14 +999,14 @@ func (x *RegisterAgentRequest) GetMetadata() map[string]string {
// RegisterAgentResponse contains registration result
type RegisterAgentResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
func (x *RegisterAgentResponse) Reset() {
*x = RegisterAgentResponse{}
- mi := &file_proto_gar_proto_msgTypes[9]
+ mi := &file_proto_gar_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -643,7 +1018,7 @@ func (x *RegisterAgentResponse) String() string {
func (*RegisterAgentResponse) ProtoMessage() {}
func (x *RegisterAgentResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[9]
+ mi := &file_proto_gar_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -656,20 +1031,21 @@ func (x *RegisterAgentResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegisterAgentResponse.ProtoReflect.Descriptor instead.
func (*RegisterAgentResponse) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{9}
+ return file_proto_gar_proto_rawDescGZIP(), []int{14}
}
// UnregisterAgentRequest for unregistering an agent
type UnregisterAgentRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
}
func (x *UnregisterAgentRequest) Reset() {
*x = UnregisterAgentRequest{}
- mi := &file_proto_gar_proto_msgTypes[10]
+ mi := &file_proto_gar_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -681,7 +1057,7 @@ func (x *UnregisterAgentRequest) String() string {
func (*UnregisterAgentRequest) ProtoMessage() {}
func (x *UnregisterAgentRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[10]
+ mi := &file_proto_gar_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -694,7 +1070,7 @@ func (x *UnregisterAgentRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnregisterAgentRequest.ProtoReflect.Descriptor instead.
func (*UnregisterAgentRequest) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{10}
+ return file_proto_gar_proto_rawDescGZIP(), []int{15}
}
func (x *UnregisterAgentRequest) GetAgentId() string {
@@ -706,14 +1082,14 @@ func (x *UnregisterAgentRequest) GetAgentId() string {
// UnregisterAgentResponse contains unregistration result
type UnregisterAgentResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
+ state protoimpl.MessageState
sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
}
func (x *UnregisterAgentResponse) Reset() {
*x = UnregisterAgentResponse{}
- mi := &file_proto_gar_proto_msgTypes[11]
+ mi := &file_proto_gar_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -725,7 +1101,7 @@ func (x *UnregisterAgentResponse) String() string {
func (*UnregisterAgentResponse) ProtoMessage() {}
func (x *UnregisterAgentResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_gar_proto_msgTypes[11]
+ mi := &file_proto_gar_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -738,133 +1114,263 @@ func (x *UnregisterAgentResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnregisterAgentResponse.ProtoReflect.Descriptor instead.
func (*UnregisterAgentResponse) Descriptor() ([]byte, []int) {
- return file_proto_gar_proto_rawDescGZIP(), []int{11}
+ return file_proto_gar_proto_rawDescGZIP(), []int{16}
}
var File_proto_gar_proto protoreflect.FileDescriptor
-const file_proto_gar_proto_rawDesc = "" +
- "\n" +
- "\x0fproto/gar.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x01\n" +
- "\aContent\x12#\n" +
- "\rcheckpoint_id\x18\x01 \x01(\tR\fcheckpointId\x12\x12\n" +
- "\x04role\x18\x02 \x01(\tR\x04role\x12\x12\n" +
- "\x04type\x18\x03 \x01(\tR\x04type\x12\x1a\n" +
- "\bmimetype\x18\x04 \x01(\tR\bmimetype\x12\x12\n" +
- "\x04data\x18\x05 \x01(\tR\x04data\"\x14\n" +
- "\x12HealthCheckRequest\"I\n" +
- "\x13HealthCheckResponse\x12\x18\n" +
- "\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" +
- "\amessage\x18\x02 \x01(\tR\amessage\"\x83\x01\n" +
- "\x15TriggerSessionRequest\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\x12#\n" +
- "\rcheckpoint_id\x18\x02 \x01(\tR\fcheckpointId\x12&\n" +
- "\x06inputs\x18\x03 \x03(\v2\x0e.proto.ContentR\x06inputs\"\x83\x01\n" +
- "\x16TriggerSessionResponse\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\x12\"\n" +
- "\x05state\x18\x02 \x01(\x0e2\f.proto.StateR\x05state\x12&\n" +
- "\x06output\x18\x03 \x01(\v2\x0e.proto.ContentR\x06output\"2\n" +
- "\x11GetSessionRequest\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\"\xf3\x01\n" +
- "\vSessionInfo\x12\"\n" +
- "\x05state\x18\x01 \x01(\x0e2\f.proto.StateR\x05state\x12#\n" +
- "\ractive_agents\x18\x02 \x03(\tR\factiveAgents\x12%\n" +
- "\x0echeckpoint_ids\x18\x03 \x03(\tR\rcheckpointIds\x129\n" +
- "\n" +
- "created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
- "\n" +
- "updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"B\n" +
- "\x12GetSessionResponse\x12,\n" +
- "\asession\x18\x01 \x01(\v2\x12.proto.SessionInfoR\asession\"\x85\x02\n" +
- "\x14RegisterAgentRequest\x12\x19\n" +
- "\bagent_id\x18\x01 \x01(\tR\aagentId\x12\x12\n" +
- "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
- "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x18\n" +
- "\aaddress\x18\x04 \x01(\tR\aaddress\x12E\n" +
- "\bmetadata\x18\x05 \x03(\v2).proto.RegisterAgentRequest.MetadataEntryR\bmetadata\x1a;\n" +
- "\rMetadataEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x17\n" +
- "\x15RegisterAgentResponse\"3\n" +
- "\x16UnregisterAgentRequest\x12\x19\n" +
- "\bagent_id\x18\x01 \x01(\tR\aagentId\"\x19\n" +
- "\x17UnregisterAgentResponse*X\n" +
- "\x05State\x12\x15\n" +
- "\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n" +
- "\rSTATE_RUNNING\x10\x01\x12\x10\n" +
- "\fSTATE_FAILED\x10\x02\x12\x13\n" +
- "\x0fSTATE_COMPLETED\x10\x032\x83\x01\n" +
- "\fAgentService\x12-\n" +
- "\aProcess\x12\x0e.proto.Content\x1a\x0e.proto.Content(\x010\x01\x12D\n" +
- "\vHealthCheck\x12\x19.proto.HealthCheckRequest\x1a\x1a.proto.HealthCheckResponse2\xbe\x02\n" +
- "\n" +
- "GARService\x12O\n" +
- "\x0eTriggerSession\x12\x1c.proto.TriggerSessionRequest\x1a\x1d.proto.TriggerSessionResponse0\x01\x12A\n" +
- "\n" +
- "GetSession\x12\x18.proto.GetSessionRequest\x1a\x19.proto.GetSessionResponse\x12J\n" +
- "\rRegisterAgent\x12\x1b.proto.RegisterAgentRequest\x1a\x1c.proto.RegisterAgentResponse\x12P\n" +
- "\x0fUnregisterAgent\x12\x1d.proto.UnregisterAgentRequest\x1a\x1e.proto.UnregisterAgentResponseB\x1dZ\x1bgithub.com/google/gar/protob\x06proto3"
+var file_proto_gar_proto_rawDesc = []byte{
+ 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
+ 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x07, 0x43, 0x6f,
+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f,
+ 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68,
+ 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f,
+ 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x12,
+ 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
+ 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12,
+ 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61,
+ 0x74, 0x61, 0x22, 0x37, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
+ 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53,
+ 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0e,
+ 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16,
+ 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+ 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d,
+ 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x77, 0x61, 0x69, 0x74,
+ 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x72, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08,
+ 0x02, 0x10, 0x03, 0x22, 0x96, 0x01, 0x0a, 0x0c, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61,
+ 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x67, 0x65,
+ 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,
+ 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43,
+ 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,
+ 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x3a, 0x0a, 0x0c,
+ 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x08,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08,
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa1, 0x04, 0x0a, 0x05, 0x45, 0x76, 0x65,
+ 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49,
+ 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f,
+ 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
+ 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72,
+ 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e,
+ 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65,
+ 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64,
+ 0x65, 0x72, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
+ 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
+ 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4d,
+ 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d,
+ 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
+ 0x6c, 0x6c, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a,
+ 0x13, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x65,
+ 0x76, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53,
+ 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x10, 0x61, 0x67, 0x65,
+ 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x67, 0x65, 0x6e,
+ 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x67,
+ 0x65, 0x6e, 0x74, 0x43, 0x61, 0x6c, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d,
+ 0x68, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x61, 0x6e, 0x64,
+ 0x6f, 0x66, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x61, 0x6e, 0x64,
+ 0x6f, 0x66, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74,
+ 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12,
+ 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x22, 0x49, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
+ 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x61,
+ 0x6c, 0x74, 0x68, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c,
+ 0x74, 0x68, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x83, 0x01,
+ 0x0a, 0x15, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
+ 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
+ 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x69,
+ 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70,
+ 0x75, 0x74, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x16, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x22, 0x0a,
+ 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
+ 0x65, 0x12, 0x26, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
+ 0x74, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x32, 0x0a, 0x11, 0x47, 0x65, 0x74,
+ 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d,
+ 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xf3, 0x01,
+ 0x0a, 0x0b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x0a,
+ 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
+ 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x61, 0x67, 0x65, 0x6e,
+ 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65,
+ 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
+ 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d,
+ 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x73, 0x12, 0x39, 0x0a,
+ 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x64, 0x41, 0x74, 0x22, 0x42, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
+ 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x73, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07,
+ 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x02, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69,
+ 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x6d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67,
+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e,
+ 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
+ 0x17, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x16, 0x55, 0x6e, 0x72, 0x65,
+ 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x19, 0x0a,
+ 0x17, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74,
+ 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54,
+ 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53,
+ 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a,
+ 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44,
+ 0x10, 0x03, 0x32, 0x83, 0x01, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76,
+ 0x69, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x0e,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x28, 0x01,
+ 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
+ 0x6b, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x02, 0x0a, 0x0a, 0x47, 0x41, 0x52,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x54, 0x72, 0x69, 0x67, 0x67,
+ 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
+ 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x41, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53,
+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47,
+ 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x52,
+ 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65,
+ 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x55, 0x6e, 0x72, 0x65, 0x67,
+ 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65,
+ 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e,
+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1d, 0x5a, 0x1b, 0x67, 0x69, 0x74,
+ 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67,
+ 0x61, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
var (
file_proto_gar_proto_rawDescOnce sync.Once
- file_proto_gar_proto_rawDescData []byte
+ file_proto_gar_proto_rawDescData = file_proto_gar_proto_rawDesc
)
func file_proto_gar_proto_rawDescGZIP() []byte {
file_proto_gar_proto_rawDescOnce.Do(func() {
- file_proto_gar_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_gar_proto_rawDesc), len(file_proto_gar_proto_rawDesc)))
+ file_proto_gar_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_gar_proto_rawDescData)
})
return file_proto_gar_proto_rawDescData
}
var file_proto_gar_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_proto_gar_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
+var file_proto_gar_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_proto_gar_proto_goTypes = []any{
(State)(0), // 0: proto.State
(*Content)(nil), // 1: proto.Content
- (*HealthCheckRequest)(nil), // 2: proto.HealthCheckRequest
- (*HealthCheckResponse)(nil), // 3: proto.HealthCheckResponse
- (*TriggerSessionRequest)(nil), // 4: proto.TriggerSessionRequest
- (*TriggerSessionResponse)(nil), // 5: proto.TriggerSessionResponse
- (*GetSessionRequest)(nil), // 6: proto.GetSessionRequest
- (*SessionInfo)(nil), // 7: proto.SessionInfo
- (*GetSessionResponse)(nil), // 8: proto.GetSessionResponse
- (*RegisterAgentRequest)(nil), // 9: proto.RegisterAgentRequest
- (*RegisterAgentResponse)(nil), // 10: proto.RegisterAgentResponse
- (*UnregisterAgentRequest)(nil), // 11: proto.UnregisterAgentRequest
- (*UnregisterAgentResponse)(nil), // 12: proto.UnregisterAgentResponse
- nil, // 13: proto.RegisterAgentRequest.MetadataEntry
- (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
+ (*SessionStateEvent)(nil), // 2: proto.SessionStateEvent
+ (*AgentCallEvent)(nil), // 3: proto.AgentCallEvent
+ (*HandoffEvent)(nil), // 4: proto.HandoffEvent
+ (*ContentEvent)(nil), // 5: proto.ContentEvent
+ (*Event)(nil), // 6: proto.Event
+ (*HealthCheckRequest)(nil), // 7: proto.HealthCheckRequest
+ (*HealthCheckResponse)(nil), // 8: proto.HealthCheckResponse
+ (*TriggerSessionRequest)(nil), // 9: proto.TriggerSessionRequest
+ (*TriggerSessionResponse)(nil), // 10: proto.TriggerSessionResponse
+ (*GetSessionRequest)(nil), // 11: proto.GetSessionRequest
+ (*SessionInfo)(nil), // 12: proto.SessionInfo
+ (*GetSessionResponse)(nil), // 13: proto.GetSessionResponse
+ (*RegisterAgentRequest)(nil), // 14: proto.RegisterAgentRequest
+ (*RegisterAgentResponse)(nil), // 15: proto.RegisterAgentResponse
+ (*UnregisterAgentRequest)(nil), // 16: proto.UnregisterAgentRequest
+ (*UnregisterAgentResponse)(nil), // 17: proto.UnregisterAgentResponse
+ nil, // 18: proto.RegisterAgentRequest.MetadataEntry
+ (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp
}
var file_proto_gar_proto_depIdxs = []int32{
- 1, // 0: proto.TriggerSessionRequest.inputs:type_name -> proto.Content
- 0, // 1: proto.TriggerSessionResponse.state:type_name -> proto.State
- 1, // 2: proto.TriggerSessionResponse.output:type_name -> proto.Content
- 0, // 3: proto.SessionInfo.state:type_name -> proto.State
- 14, // 4: proto.SessionInfo.created_at:type_name -> google.protobuf.Timestamp
- 14, // 5: proto.SessionInfo.updated_at:type_name -> google.protobuf.Timestamp
- 7, // 6: proto.GetSessionResponse.session:type_name -> proto.SessionInfo
- 13, // 7: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry
- 1, // 8: proto.AgentService.Process:input_type -> proto.Content
- 2, // 9: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest
- 4, // 10: proto.GARService.TriggerSession:input_type -> proto.TriggerSessionRequest
- 6, // 11: proto.GARService.GetSession:input_type -> proto.GetSessionRequest
- 9, // 12: proto.GARService.RegisterAgent:input_type -> proto.RegisterAgentRequest
- 11, // 13: proto.GARService.UnregisterAgent:input_type -> proto.UnregisterAgentRequest
- 1, // 14: proto.AgentService.Process:output_type -> proto.Content
- 3, // 15: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse
- 5, // 16: proto.GARService.TriggerSession:output_type -> proto.TriggerSessionResponse
- 8, // 17: proto.GARService.GetSession:output_type -> proto.GetSessionResponse
- 10, // 18: proto.GARService.RegisterAgent:output_type -> proto.RegisterAgentResponse
- 12, // 19: proto.GARService.UnregisterAgent:output_type -> proto.UnregisterAgentResponse
- 14, // [14:20] is the sub-list for method output_type
- 8, // [8:14] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
+ 0, // 0: proto.SessionStateEvent.state:type_name -> proto.State
+ 1, // 1: proto.AgentCallEvent.contents:type_name -> proto.Content
+ 1, // 2: proto.HandoffEvent.contents:type_name -> proto.Content
+ 1, // 3: proto.ContentEvent.contents:type_name -> proto.Content
+ 19, // 4: proto.Event.timestamp:type_name -> google.protobuf.Timestamp
+ 19, // 5: proto.Event.controller_timestamp:type_name -> google.protobuf.Timestamp
+ 2, // 6: proto.Event.session_state_event:type_name -> proto.SessionStateEvent
+ 3, // 7: proto.Event.agent_call_event:type_name -> proto.AgentCallEvent
+ 4, // 8: proto.Event.handoff_event:type_name -> proto.HandoffEvent
+ 5, // 9: proto.Event.content_event:type_name -> proto.ContentEvent
+ 1, // 10: proto.TriggerSessionRequest.inputs:type_name -> proto.Content
+ 0, // 11: proto.TriggerSessionResponse.state:type_name -> proto.State
+ 1, // 12: proto.TriggerSessionResponse.output:type_name -> proto.Content
+ 0, // 13: proto.SessionInfo.state:type_name -> proto.State
+ 19, // 14: proto.SessionInfo.created_at:type_name -> google.protobuf.Timestamp
+ 19, // 15: proto.SessionInfo.updated_at:type_name -> google.protobuf.Timestamp
+ 12, // 16: proto.GetSessionResponse.session:type_name -> proto.SessionInfo
+ 18, // 17: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry
+ 1, // 18: proto.AgentService.Process:input_type -> proto.Content
+ 7, // 19: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest
+ 9, // 20: proto.GARService.TriggerSession:input_type -> proto.TriggerSessionRequest
+ 11, // 21: proto.GARService.GetSession:input_type -> proto.GetSessionRequest
+ 14, // 22: proto.GARService.RegisterAgent:input_type -> proto.RegisterAgentRequest
+ 16, // 23: proto.GARService.UnregisterAgent:input_type -> proto.UnregisterAgentRequest
+ 1, // 24: proto.AgentService.Process:output_type -> proto.Content
+ 8, // 25: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse
+ 10, // 26: proto.GARService.TriggerSession:output_type -> proto.TriggerSessionResponse
+ 13, // 27: proto.GARService.GetSession:output_type -> proto.GetSessionResponse
+ 15, // 28: proto.GARService.RegisterAgent:output_type -> proto.RegisterAgentResponse
+ 17, // 29: proto.GARService.UnregisterAgent:output_type -> proto.UnregisterAgentResponse
+ 24, // [24:30] is the sub-list for method output_type
+ 18, // [18:24] is the sub-list for method input_type
+ 18, // [18:18] is the sub-list for extension type_name
+ 18, // [18:18] is the sub-list for extension extendee
+ 0, // [0:18] is the sub-list for field type_name
}
func init() { file_proto_gar_proto_init() }
@@ -872,13 +1378,19 @@ func file_proto_gar_proto_init() {
if File_proto_gar_proto != nil {
return
}
+ file_proto_gar_proto_msgTypes[5].OneofWrappers = []any{
+ (*Event_SessionStateEvent)(nil),
+ (*Event_AgentCallEvent)(nil),
+ (*Event_HandoffEvent)(nil),
+ (*Event_ContentEvent)(nil),
+ }
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_gar_proto_rawDesc), len(file_proto_gar_proto_rawDesc)),
+ RawDescriptor: file_proto_gar_proto_rawDesc,
NumEnums: 1,
- NumMessages: 13,
+ NumMessages: 18,
NumExtensions: 0,
NumServices: 2,
},
@@ -888,6 +1400,7 @@ func file_proto_gar_proto_init() {
MessageInfos: file_proto_gar_proto_msgTypes,
}.Build()
File_proto_gar_proto = out.File
+ file_proto_gar_proto_rawDesc = nil
file_proto_gar_proto_goTypes = nil
file_proto_gar_proto_depIdxs = nil
}
diff --git a/proto/gar.proto b/proto/gar.proto
index 7583510..c8f4ea8 100644
--- a/proto/gar.proto
+++ b/proto/gar.proto
@@ -31,6 +31,55 @@ message Content {
// TODO: Replace Content with Interactions Content.
}
+message SessionStateEvent {
+ State state = 1;
+}
+
+message AgentCallEvent {
+ reserved 1, 2;
+
+ string sender = 3;
+
+ repeated Content contents = 4;
+
+ // Whether the caller is awaiting additional AgentCallEvents.
+ bool awaiting_more = 5;
+
+ // TODO(jbd): Support pauses and async calls.
+}
+
+message HandoffEvent {
+ reserved 1, 2;
+
+ string source_agent_id = 3;
+
+ string target_agent_id = 4;
+
+ repeated Content contents = 5;
+}
+
+message ContentEvent {
+ repeated Content contents = 1;
+}
+
+message Event {
+ string session_id = 1;
+ string checkpoint_id = 2;
+
+ string sender_name = 3;
+ string sender_id = 4;
+
+ google.protobuf.Timestamp timestamp = 5;
+ google.protobuf.Timestamp controller_timestamp = 6;
+
+ oneof kind {
+ SessionStateEvent session_state_event = 7;
+ AgentCallEvent agent_call_event = 8;
+ HandoffEvent handoff_event = 9;
+ ContentEvent content_event = 10;
+ }
+}
+
// HealthCheckRequest for agent health checks
message HealthCheckRequest {}
diff --git a/proto/gar_grpc.pb.go b/proto/gar_grpc.pb.go
index 84695ec..cce6401 100644
--- a/proto/gar_grpc.pb.go
+++ b/proto/gar_grpc.pb.go
@@ -14,8 +14,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.6.0
-// - protoc v3.21.9
+// - protoc-gen-go-grpc v1.5.1
+// - protoc v5.28.2
// source: proto/gar.proto
package proto
@@ -101,10 +101,10 @@ type AgentServiceServer interface {
type UnimplementedAgentServiceServer struct{}
func (UnimplementedAgentServiceServer) Process(grpc.BidiStreamingServer[Content, Content]) error {
- return status.Error(codes.Unimplemented, "method Process not implemented")
+ return status.Errorf(codes.Unimplemented, "method Process not implemented")
}
func (UnimplementedAgentServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented")
+ return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")
}
func (UnimplementedAgentServiceServer) mustEmbedUnimplementedAgentServiceServer() {}
func (UnimplementedAgentServiceServer) testEmbeddedByValue() {}
@@ -117,7 +117,7 @@ type UnsafeAgentServiceServer interface {
}
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) {
- // If the following call panics, it indicates UnimplementedAgentServiceServer was
+ // If the following call pancis, it indicates UnimplementedAgentServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -282,16 +282,16 @@ type GARServiceServer interface {
type UnimplementedGARServiceServer struct{}
func (UnimplementedGARServiceServer) TriggerSession(*TriggerSessionRequest, grpc.ServerStreamingServer[TriggerSessionResponse]) error {
- return status.Error(codes.Unimplemented, "method TriggerSession not implemented")
+ return status.Errorf(codes.Unimplemented, "method TriggerSession not implemented")
}
func (UnimplementedGARServiceServer) GetSession(context.Context, *GetSessionRequest) (*GetSessionResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method GetSession not implemented")
+ return nil, status.Errorf(codes.Unimplemented, "method GetSession not implemented")
}
func (UnimplementedGARServiceServer) RegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method RegisterAgent not implemented")
+ return nil, status.Errorf(codes.Unimplemented, "method RegisterAgent not implemented")
}
func (UnimplementedGARServiceServer) UnregisterAgent(context.Context, *UnregisterAgentRequest) (*UnregisterAgentResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method UnregisterAgent not implemented")
+ return nil, status.Errorf(codes.Unimplemented, "method UnregisterAgent not implemented")
}
func (UnimplementedGARServiceServer) mustEmbedUnimplementedGARServiceServer() {}
func (UnimplementedGARServiceServer) testEmbeddedByValue() {}
@@ -304,7 +304,7 @@ type UnsafeGARServiceServer interface {
}
func RegisterGARServiceServer(s grpc.ServiceRegistrar, srv GARServiceServer) {
- // If the following call panics, it indicates UnimplementedGARServiceServer was
+ // If the following call pancis, it indicates UnimplementedGARServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.