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

Function logCompleted

internal/controller/executor/executor.go:188–195  ·  view source on GitHub ↗
(ctx context.Context, el EventLog, execID string, start *proto.AgentStart)

Source from the content-addressed store, hash-verified

186}
187
188func logCompleted(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error {
189 return el.AppendExec(ctx, &proto.ExecutionEvent{
190 Timestamp: timestamppb.Now(),
191 ExecId: execID,
192 AgentId: start.AgentId,
193 State: proto.State_STATE_COMPLETED,
194 })
195}
196
197func logOutputs(ctx context.Context, el EventLog, execID string, start *proto.AgentStart, outputs []*proto.Message) error {
198 return el.AppendExec(ctx, &proto.ExecutionEvent{

Callers 1

execMethod · 0.85

Calls 1

AppendExecMethod · 0.65

Tested by

no test coverage detected