에이전트 함수

class ai.backend.client.agent.Agent[소스]

서버측 에이전트들에 관한 정보를 조회하기 위한 Admin.query() 함수의 단축 버전입니다.

참고

이 함수 클래스의 모든 메소드들은 사용 중인 API access key가 관리자 권한을 가지고 있어야 작동합니다.

session = None

이 함수 클래스가 사용할 클라이언트 세션 인스턴스

classmethod await list_with_limit(limit, offset, status='ALIVE', fields=None)[소스]

Fetches the list of agents with the given status with limit and offset for pagination.

매개변수
  • limit -- number of agents to get

  • offset -- offset index of agents to get

  • status (str) -- An upper-cased string constant representing agent status (one of 'ALIVE', 'TERMINATED', 'LOST', etc.)

  • fields (Optional[Iterable[str]]) -- Additional per-agent query fields to fetch.

반환 형식

Sequence[dict]

classmethod await detail(agent_id, fields=None)[소스]
반환 형식

Sequence[dict]