GET
/
rest
/
api
/
v1
/
agents
/
{agent_id}
/
schemas
from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    res = g_client.client.agents.retrieve_schemas(agent_id="<id>")

    # Handle response
    print(res)
{
  "agent_id": "<string>",
  "input_schema": {},
  "output_schema": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

The ID of the agent.

Query Parameters

timezoneOffset
integer

The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.

Response

200
application/json

Success

Defines the structure and properties of an agent.