-
Notifications
You must be signed in to change notification settings - Fork 165
feat(BA-3173): Add kernels resolver to AgentV2 GQL type
#8080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jopemachine
wants to merge
9
commits into
feat/kernel-v2-types
Choose a base branch
from
feat/agent-v2-kernel-resolver
base: feat/kernel-v2-types
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kernels resolver to AgentV2 GQL type
3223c73 to
cb62df0
Compare
seedspirit
reviewed
Jan 16, 2026
d61149d to
b9d629b
Compare
34383b5 to
de2c03e
Compare
db70579 to
9ce6282
Compare
Add kernel resolver to AgentV2GQL for querying kernels running on an agent. Key changes: - Add fetch_kernels_by_agent fetcher function for querying kernels by agent - Add kernels field to AgentV2GQL with full pagination support: - Cursor-based pagination (before, after, first, last) - Offset-based pagination (limit, offset) - Filtering via KernelFilterGQL - Ordering via KernelOrderByGQL - resource_occupied_only filter for active kernels - Export fetch_kernels_by_agent from kernel package Co-Authored-By: Claude Opus 4.5 <[email protected]>
Co-authored-by: octodog <[email protected]>
- Add KernelConditions.by_agent_ids, by_cursor_forward, by_cursor_backward - Add search_kernels processor to SessionProcessors - Fix KernelGQL -> KernelV2GQL in fetcher.py Co-Authored-By: Claude Opus 4.5 <[email protected]>
Co-authored-by: octodog <[email protected]>
d22f488 to
1ae221f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #6981 (BA-3173)
Checklist: (if applicable)
ai.backend.testdocsdirectorySummary
fetch_kernels_by_agentfetcher function for querying kernels by agentkernelsfield toAgentV2GQLwith full pagination support:KernelFilterGQLKernelOrderByGQLresource_occupied_onlyfilter for active kernels onlyfetch_kernels_by_agentfrom kernel packageDependencies
This PR depends on #8079 (KernelV2 GraphQL types).
🤖 Generated with Claude Code
📚 Documentation preview 📚: https://sorna--8080.org.readthedocs.build/en/8080/
📚 Documentation preview 📚: https://sorna-ko--8080.org.readthedocs.build/ko/8080/