POST
/
rest
/
api
/
v1
/
agents
/
runs
/
stream
from glean import Glean
import os


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

    res = g_client.client.agents.run_stream()

    # Handle response
    print(res)
"<string>"

Authorizations

Authorization
string
header
required

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

Body

application/json

Payload for creating a run.

Response

200
text/event-stream

Success

The server will send a stream of events in SSE format. Example event: id: 1 event: message data: {}