Skip to main content

class AgentRuns

service_api: 'ServiceApi',
entity: 'str',
project: 'str',
sweep_id: 'str',
agent_key: 'str', *,
total_runs: 'int',
order: 'str' = '+created_at',
per_page: 'int' = 50

Description

A lazy iterator of Run objects for a single sweep agent.

Args

  • service_api:
  • entity:
  • project:
  • sweep_id:
  • agent_key:
  • total_runs:
  • order:
  • per_page:

Properties

property more

Whether there are more pages to be fetched.

property cursor

The start cursor to use for the next fetched page.

Methods

method convert_objects

self
Convert the current GraphQL page into :class:Run instances for this agent.

method next

self
Return the next item from the iterator. When exhausted, raise StopIteration

method update_variables

self
Map paginator state to GetAgentRuns variables (after/first, not cursor/perPage).