Skip to content

Conversation

andeplane
Copy link
Contributor

@andeplane andeplane commented Sep 6, 2025

Closes AAA-3112

Description

This PR introduces a version configuration option for the QueryKnowledgeGraphAgentTool.

Why this change?
Users need the ability to specify which version of the QKG tool (v1 or v2) their agent deployment should use. This change allows for explicit selection while setting v2 as the default, aligning with the latest QKG tool capabilities.

What was changed?

  • Added a version: Literal["v1", "v2"] = "v2" field to QueryKnowledgeGraphAgentToolConfiguration.
  • Updated the _load and dump methods to handle the new version field, ensuring proper serialization and deserialization with v2 as the default.

Checklist:

  • Tests added/updated.
  • Documentation updated. Documentation is generated from docstrings - these must be updated according to your change.
    If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.
  • The PR title follows the Conventional Commit spec.

Open in Cursor Open in Web

Copy link

cursor bot commented Sep 6, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@andeplane andeplane marked this pull request as ready for review September 6, 2025 05:38
@andeplane andeplane requested review from a team as code owners September 6, 2025 05:38
cursoragent and others added 2 commits September 6, 2025 05:42
- Revert qkg_example to original format to avoid breaking existing tests
- Add separate qkg_example_with_v2 for version-specific testing
- Update configuration comparison logic to account for automatic version field addition
- Fix long test method name that was causing linting failure
@andeplane andeplane changed the title Update sdk for qkg agent version configuration feat: add query knowledge graph tool version configuration to agents Sep 6, 2025
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