ClearStateMarker writes a final state marker indicating no active task.
(conversationID string, o agent.OutputHandler)
| 421 | |
| 422 | // ClearStateMarker writes a final state marker indicating no active task. |
| 423 | func 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. |
no test coverage detected