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.
List Agent Configs
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){
"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"
}Returns Examples
{
"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"
}