이 문서는 영어 원문을 자동 번역한 것으로, 내용이 원문과 다를 수 있습니다.영어 원문 보기
API 키로 접근할 수 있는 워크플로우 목록을 조회합니다.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["UPSTAGE_API_KEY"],
base_url="https://api.upstage.ai/v2",
)
response = client.get(
"/agents",
cast_to=dict[str, object],
options={"params": {"limit": 20}},
)
print(response)
{
"object": "list",
"data": [
{
"id": "agt_example",
"object": "agent",
"name": "Invoice processing",
"visibility": "private",
"default_config_id": null,
"expires_after": null,
"created_at": 1794873600,
"updated_at": 1794873600
}
],
"first_id": "agt_example",
"last_id": "agt_example",
"has_more": false
}
has_more가 true이면 last_id를 다음 요청의 after에 넣으세요. 필터와 정렬 순서는 동일하게 유지합니다.