12 Commits

Author SHA1 Message Date
Shahin Saadati 772a0639d5 Add Kotlin snippet for token-threshold context compaction (#2107)
* Add Kotlin snippet for token-threshold context compaction

The compaction page had no Kotlin at all. EventsCompactionConfig gained
tokenThreshold and eventRetentionSize in adk-kotlin 0.6.0, so the Kotlin tab
shows that pair, matching the TypeScript tab's strategy.

Kotlin sits across the two groupings the prose already draws: the config
attaches to App, as in Python and Java, but supports the token-threshold pair
like TypeScript. Both parentheticals are updated to say so rather than adding
new prose.

The snippet notes that tokenThreshold and eventRetentionSize must be set
together. That is a runtime require, not a compile error, so it is easy to hit:
setting one alone throws "tokenThreshold and eventRetentionSize must be set
together or both null". The same rule applies to compactionInterval and
overlapSize, which Kotlin also supports.

Badged Kotlin v0.7.0 rather than 0.6.0, when the fields landed: appName is
"my-agent" to match the sibling tabs, and hyphens in app names were only
allowed from 0.7.0.

Inline to match the page's other tabs, so CI will not compile it. Extracted,
compiled and ran it against the 0.7.0 pin in a throwaway project:
OK app=my-agent tokenThreshold=1000 retention=1 paired=true.

* Note that Kotlin also supports the sliding-window pair

Self-review finding. The Kotlin tab shows tokenThreshold/eventRetentionSize
while Python and Java show compactionInterval/overlapSize, so a reader
comparing tabs could conclude the strategy is fixed per language. It is not:
EventsCompactionConfig accepts either pair, and exposes hasTokenThresholdConfig
and hasSlidingWindowConfig for each.
2026-08-17 15:13:28 -07:00
Zyan e2a4221461 Update compaction.md (#1816)
* Update compaction.md

Added the explanation for token compaction, and a header section for sliding window section, added the section: What is compaction?

* Update compaction.md

Worked on changes

* Update compaction.md

* Update compaction.md

worked on other 2 comments

* Update compaction.md
2026-06-12 15:33:09 -06:00
Toni Klopfenstein 6a2857b8a7 Adding Typescript snippets to context documentation (#1634)
* Updating Typescript context snippets

* Fixing models in snippets

* Cleaning up formatting on TS snippets

* Fixing model names

* Apply suggestions from code review

Comment streamlining

Co-authored-by: Kristopher Overholt <koverholt@google.com>

* Update docs/context/compaction.md

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-13 17:17:00 -05:00
Joe Fernandez f7ed80bbc6 docs: Update Gemini flash names (#1594)
* docs: home page

* updates based on feedback

* respond to review feedback

* docs: update gemini selector strings to "flash-latest"

* Update homepage.css
2026-04-09 16:14:27 -05:00
Kristopher Overholt 58f3aaebca Replace documentation URLs and paths for adk.dev migration (#1536)
* Replace google.github.io/adk-docs URLs and /adk-docs/ paths with adk.dev

Migrate all hardcoded documentation references to use the new custom
domain. Update root-relative links to remove the /adk-docs/ subpath
prefix since the site will be served from the root of adk.dev.

* Additional fixes
2026-04-01 12:48:27 -05:00
Shahin Saadati 9b48b74cbd Added the missing java samples to compaction.md (#1468)
* Added the missing java samples to compaction.md

* Added the Java supported tag
2026-03-24 08:47:27 -07:00
Didier Durand 5cf69c22c3 doc: fixing typos in various files (#1149)
* doc: fixing typos in various files

* Update llm-agents.md

* Update part4.md

* Update part4.md

* Update computer-use.md

reverting changes to moved file

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-02-27 10:55:55 -08:00
chizhang-g 2bc1b1d18b Doc: fix typo in context compression (#1316) 2026-02-17 08:47:06 -08:00
Sangyeon Cho 15b6222670 docs: rename 'compactor' to 'summarizer' in documentation (#1007)
* Rename 'compactor' to 'summarizer' in documentation

Updated documentation to replace 'compactor' with 'summarizer' and adjusted references accordingly.

* Formatting

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2025-12-02 09:40:37 -06:00
Yasir Modak 99d70b11bb replace the outdated SlidingWindowCompactor with the correct LlmEventSummarizer (#956)
I have rewritten the documentation to replace the outdated `SlidingWindowCompactor` with the correct `LlmEventSummarizer`, and I've updated the code example and explanatory text to match.

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-11-19 12:49:23 -08:00
Joe Fernandez f12068a4bb docs: add language support tags to pages (#850)
* docs: add language support tags to pages

- replace img.shield tags
- add language support tags where missing

* update Agents page with general tags

* update language and version tagging

- response to review comments
- rename css styles to avoid style name conflicts

* add tags to api-server page
2025-11-03 16:07:35 -08:00
Joe Fernandez ab549957fe docs: Add Context compaction docs (#840)
* docs: Add documentation for context_window_compression in RunConfig

* docs: add Context Compaction feature docs

* revert adk-bot changes

* revert changes

* updated based on review input

* final changes

---------

Co-authored-by: adk-bot <adk-bot@google.com>
2025-10-31 12:34:33 -07:00