Skip to content

Conversation

@seedspirit
Copy link
Contributor

resolves #6979 (BA-3171)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Installer updates including:
    • Fixtures for db schema changes
    • New mandatory config options
  • Update of end-to-end CLI integration tests in ai.backend.test
  • API server-client counterparts (e.g., manager API -> client SDK)
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation
  • Documentation
    • Contents in the docs directory
    • docstrings in public interfaces and type annotations

@seedspirit seedspirit self-assigned this Nov 28, 2025
@github-actions github-actions bot added size:M 30~100 LoC comp:manager Related to Manager component labels Nov 28, 2025
Comment on lines +12 to +34
@strawberry.type(description="Resource-related information for an agent")
class AgentResourceInfo:
available_slots: JSON
occupied_slots: JSON
compute_plugins: JSON


@strawberry.type(description="Status and lifecycle information for an agent")
class AgentStatusInfo:
status: AgentStatus
status_changed: datetime
first_contact: datetime
lost_at: Optional[datetime]
schedulable: bool


@strawberry.type(description="System and configuration information for an agent")
class AgentSystemInfo:
architecture: str
version: str
auto_terminate_abusing_kernel: bool = strawberry.field(
description="Not used anymore, present for schema consistency."
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All field descriptions must be included.
Please try to write multi-line descriptions if possible.
Please include the applied version in the type description as well. (Added in 25.18.0)

Comment on lines +14 to +16
available_slots: JSON
occupied_slots: JSON
compute_plugins: JSON
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed before, we decided to unify the terminology as capacity = free + used, so please unify it while creating the new API.

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

Labels

comp:manager Related to Manager component size:M 30~100 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define new AgentV2 GQL class with Strawberry

3 participants