## List Agent Configs

`agent_configs.list(AgentConfigListParams**kwargs)  -> SyncCursorPage[AgentConfigListResponse]`

**get** `/v5/agent_configs`

List agent configurations visible to the caller, with cursor-based pagination.

A user caller sees only the configs they created unless fine-grained access
control (FGAC) grants them access to others; a service-account caller sees
every config under the account. This returns the stored config records as-is —
use `{agent_config_id}/resolve` instead when you need a config projected into
the params a task would run with. Because deleting a config removes it outright
rather than archiving it, there are no archived configs to page through here.

### Parameters

- `ending_before: Optional[str]`

- `limit: Optional[int]`

- `sort_by: Optional[str]`

- `sort_order: Optional[SortOrder]`

  - `"asc"`

  - `"desc"`

- `starting_after: Optional[str]`

### Returns

- `class AgentConfigListResponse: …`

  - `id: str`

  - `allowed_tools: List[str]`

  - `created_at: datetime`

  - `harness: str`

  - `model: str`

  - `name: str`

  - `system_prompt: str`

  - `updated_at: datetime`

  - `description: Optional[str]`

  - `object: Optional[Literal["agent_config"]]`

    - `"agent_config"`

  - `persistent_workspace: Optional[bool]`

  - `repos: Optional[List[RepoSpec]]`

    - `url: str`

    - `depth: Optional[int]`

    - `path: Optional[str]`

### Example

```python
import os
from scale_gp_beta import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
page = client.agent_configs.list()
page = page.items[0]
print(page.id)
```

#### Response

```json
{
  "has_more": true,
  "items": [
    {
      "id": "id",
      "allowed_tools": [
        "string"
      ],
      "created_at": "2019-12-27T18:11:19.117Z",
      "harness": "harness",
      "model": "model",
      "name": "name",
      "system_prompt": "system_prompt",
      "updated_at": "2019-12-27T18:11:19.117Z",
      "description": "description",
      "object": "agent_config",
      "persistent_workspace": true,
      "repos": [
        {
          "url": "x",
          "depth": 1,
          "path": "path"
        }
      ]
    }
  ],
  "total": 0,
  "limit": 0,
  "object": "list"
}
```
