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

Function ClearStateMarker

internal/experimental/a2abridge/a2a_event_handler.go:423–429  ·  view source on GitHub ↗

ClearStateMarker writes a final state marker indicating no active task.

(conversationID string, o agent.OutputHandler)

Source from the content-addressed store, hash-verified

421
422// ClearStateMarker writes a final state marker indicating no active task.
423func ClearStateMarker(conversationID string, o agent.OutputHandler) error {
424 msg, err := marshalA2AState(conversationID, "", nil)
425 if err != nil {
426 return err
427 }
428 return o(&proto.AgentOutputs{Messages: []*proto.Message{msg}})
429}
430
431// FindConfirmationAnswer scans the history (most recent first) for a user
432// reply to the ConfirmationContent we emitted with the given confID.

Callers 3

resumeTaskMethod · 0.92
handleEventMethod · 0.85
PollUntilTerminalFunction · 0.85

Calls 1

marshalA2AStateFunction · 0.85

Tested by

no test coverage detected