google / google/adk-go

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

Open
#85 2 comments 0 reactions 0 assignees View on GitHub
api breaking change enhancement
Dominant language
Go
Stars
8.8k
Forks
1k
Avg merge
3d 14h
Merged PRs (30d)
93

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.