Retrieve one saved configuration version.
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/agt_example/configs/cfg_example", cast_to=dict[str, object]
)
print(response)
{
"id": "cfg_example",
"object": "config",
"agent_id": "agt_example",
"external_id": "1",
"name": "Parse v1",
"is_default": true,
"steps": [
{
"id": "step_example",
"name": "Parse",
"type": "document-parse",
"data": {
"model": "default"
},
"is_first": true,
"next_steps": [],
"node_id": null
}
],
"created_at": 1794873600,
"updated_at": 1794873600
}