Closed mayureshagashe2105 closed 1 month ago
Change-Id: I694545243efda467d6fd599beded0dc6679b727d
===DO NOT SUBMIT===
*Inital prototype for explicit caching
*Add basic CURD support for caching
*Remove INPUT_ONLY marked fields from CachedContent dataclass
INPUT_ONLY
CachedContent
Rename files `cached_content->caching*`
->
*Update create method for explicit instantination of 'CachedContent'
create
*Add a factory method to instatinate model with CachedContent as its context
*blacken
*Add tests
*Rename get_cached_content -> get
get_cached_content
get
*Stroke out functional approach for CachedContent CURD ops
*Validate name checks for CachedContent creation
name
*Update repr for GenerativeModel to include information about the model's context
GenerativeModel
*Update docstrings
*Improve tests
Passing with the preview build.
Cool, Thnx!
This is passing unittests, and works in my end-to-end testing. Let's merge, and we can fix these comments in follow-on PRs.
Thanks for the review 🙌🏻
Change-Id: I694545243efda467d6fd599beded0dc6679b727d
===DO NOT SUBMIT===
*Inital prototype for explicit caching
*Add basic CURD support for caching
*Remove
INPUT_ONLY
marked fields fromCachedContent
dataclassRename files `cached_content
->
caching*`*Update
create
method for explicit instantination of 'CachedContent'*Add a factory method to instatinate model with
CachedContent
as its context*blacken
*Add tests
*Rename
get_cached_content
->get
*Stroke out functional approach for
CachedContent
CURD ops*Validate
name
checks forCachedContent
creation*Update repr for
GenerativeModel
to include information about the model's context*Update docstrings
*Improve tests