POST
/
rest
/
api
/
v1
/
agents
/
search
from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
    instance=os.getenv("GLEAN_INSTANCE", ""),
) as glean:

    res = glean.client.agents.list(name="HR Policy Agent")

    # Handle response
    print(res)
{
  "agents": [
    {
      "agent_id": "mho4lwzylcozgoc2",
      "name": "HR Policy Agent",
      "description": "This agent answers questions about the current company HR policies.",
      "metadata": {},
      "capabilities": {
        "ap.io.messages": true,
        "ap.io.streaming": true
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Success

The response is of type object.