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

Function logPending

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

Source from the content-addressed store, hash-verified

166}
167
168func logPending(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error {
169 return el.AppendExec(ctx, &proto.ExecutionEvent{
170 Timestamp: timestamppb.Now(),
171 ExecId: execID,
172 AgentId: start.AgentId,
173 AgentConfig: start.AgentConfig,
174 Inputs: start.Messages,
175 State: proto.State_STATE_PENDING,
176 })
177}
178
179func logFailed(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error {
180 return el.AppendExec(ctx, &proto.ExecutionEvent{

Callers 1

execMethod · 0.85

Calls 1

AppendExecMethod · 0.65

Tested by

no test coverage detected