MCPcopy
hub / github.com/google/ax / Events

Method Events

internal/controller/executor/executortest/eventlog.go:59–70  ·  view source on GitHub ↗
(_ context.Context, conversationID string)

Source from the content-addressed store, hash-verified

57}
58
59func (m *MemoryEventLog) Events(_ context.Context, conversationID string) ([]*proto.ConversationEvent, error) {
60 m.mu.Lock()
61 defer m.mu.Unlock()
62
63 out := make([]*proto.ConversationEvent, 0)
64 for _, ev := range m.AllEvents {
65 if ev.ConversationId == conversationID {
66 out = append(out, ev)
67 }
68 }
69 return out, nil
70}
71
72func (m *MemoryEventLog) ExecEvents(_ context.Context, execID string) ([]*proto.ExecutionEvent, error) {
73 m.mu.Lock()

Callers 3

TestController_ForkFunction · 0.95
TestServer_ForkFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestController_ForkFunction · 0.76
TestServer_ForkFunction · 0.76