Skip to content

Conversation

@Insomniac2904
Copy link

adds feature for #1173.

example use case:

apiVersion: kagent.dev/v1alpha2
kind: Agent
metadata:
  name: storage-agent
spec:
  declarative:
    context:
      cache:
        enabled: true
        cacheIntervals: 5
        minTokens: 200
        ttlSeconds: 3600

      compression:
        enabled: true
        compactionInterval: 10
        overlapSize: 50
        summarizer:
          type: llm
          model: gpt-4o-mini

      windowCompression:
        enabled: true
        maxLength: 4096

Signed-off-by: insomniac2904 <adarshkumar7478@gmail.com>
@peterj
Copy link
Collaborator

peterj commented Jan 11, 2026

this only adds the configuration options to the resources - are the features actually implemented in the ADK library too?

Signed-off-by: insomniac2904 <adarshkumar7478@gmail.com>
@Insomniac2904 Insomniac2904 requested a review from peterj as a code owner January 14, 2026 17:48
Signed-off-by: Adarsh Kumar <109868197+Insomniac2904@users.noreply.github.com>
@Insomniac2904
Copy link
Author

this only adds the configuration options to the resources - are the features actually implemented in the ADK library too?

Hey @peterj you were right. I could not find the context config for golang, only for python. I have revert back the original changes and made the changes to types.py and _a2a.py files. Also i am not sure for the imports that needs to me made for windowCompression and thus i have not implemented it as of now. Also could you please point me to the right test file, so that i can check my changes.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants