adk-go icon indicating copy to clipboard operation
adk-go copied to clipboard

sessionservice: Introduce a well know "not exists" to sessionservice

Open rakyll opened this issue 4 months ago • 2 comments

Most of the methods in the Service interface can fail if the session doesn't already exist:

type Service interface {
	Get(context.Context, *GetRequest) (StoredSession, error)
	Delete(context.Context, *DeleteRequest) error
	AppendEvent(context.Context, StoredSession, *session.Event) error
}

Introduce a well known error from the package, e.g.ErrSessionNotFound, to let the clients handle this case easily.

rakyll avatar Aug 22 '25 20:08 rakyll

This has been open for a while now compared to the other tickets. Would it be possible if I could pick it up and close it? 😄

FamALouiz avatar Nov 14 '25 21:11 FamALouiz

@rishabhjain1712

rishabhjain1712 avatar Nov 16 '25 05:11 rishabhjain1712