Skip to content

Return only published Agents in list agents endpoints #378

@Andrei-Strenkovskii

Description

@Andrei-Strenkovskii

There is an endpoint that returns a list of all agents:

The problem is that usually we want to return only published agents, and not all their versions
It would be nice to have additional parameters in the SDK with a filter by is_published

Something like that:

response = await self.client.agent.list(
    limit=list_agents_page_size,
    pagination_key=pagination_key,
    pagination_key_version=pagination_key_version,
    is_published=True
)

So we get only 1 Agent, which is published, and not all versions of the agent

There is an additional parameter in list agents endpoint

  • extra_query: Query | None = None,

When providing mapping inside it, I get an error
('Error code: 400 - {\'error_message\': "Unknown query parameter \'is_published\'"}',)

Is there a way to get only published agents from the list agents endpoint? If there is not, it would be nice to provide it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions