[PR #921] [MERGED] Refactor agent fields in llama_cloud_services #959

Closed
opened 2026-02-16 00:19:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/llama_cloud_services/pull/921
Author: @adrianlyjak
Created: 9/16/2025
Status: Merged
Merged: 9/17/2025
Merged by: @adrianlyjak

Base: mainHead: cursor/LI-3577-refactor-agent-fields-in-llama-cloud-services-1796


📝 Commits (6)

  • eb86075 Refactor: Rename agent_url_id to deployment_name
  • c9a8d83 update gen sdk
  • 7355ca2 hmm, maybe shouldnt be checking formats here
  • 288b38e Update client sdk better
  • 19a9046 Add minimal constructor compatibility
  • 0059900 version bumps

📊 Changes

15 files changed (+7498 additions, -4182 deletions)

View changed files

📝 py/llama_cloud_services/beta/agent_data/client.py (+14 -13)
📝 py/llama_cloud_services/beta/agent_data/schema.py (+6 -6)
📝 py/llama_parse/pyproject.toml (+2 -2)
📝 py/pyproject.toml (+2 -2)
📝 py/tests/beta/agent_data/test_agent_data_client.py (+1 -1)
📝 py/unit_tests/beta/agent/test_agent_data_schema.py (+3 -3)
📝 py/uv.lock (+5 -5)
📝 ts/llama_cloud_services/openapi.json (+813 -242)
📝 ts/llama_cloud_services/package.json (+1 -1)
📝 ts/llama_cloud_services/src/beta/agent/client.ts (+22 -15)
📝 ts/llama_cloud_services/src/beta/agent/types.ts (+2 -2)
📝 ts/llama_cloud_services/src/client/schemas.gen.ts (+3071 -1800)
📝 ts/llama_cloud_services/src/client/sdk.gen.ts (+939 -882)
📝 ts/llama_cloud_services/src/client/types.gen.ts (+2049 -866)
📝 ts/llama_cloud_services/src/client/zod.gen.ts (+568 -342)

📄 Description

Refactor agent_slug/agentSlug, and agentUrlId/agentUrlId to just deployment_name/deploymentName across Python and TypeScript SDKs.

This change aligns the SDKs with the updated platform API schema, which has removed agent_slug from its models.

This also regenerates the ts sdk, which turned out to be a lot of things. This process could still use some improvements


Linear Issue: LI-3577

Open in Cursor Open in Web

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/llama_cloud_services/pull/921 **Author:** [@adrianlyjak](https://github.com/adrianlyjak) **Created:** 9/16/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@adrianlyjak](https://github.com/adrianlyjak) **Base:** `main` ← **Head:** `cursor/LI-3577-refactor-agent-fields-in-llama-cloud-services-1796` --- ### 📝 Commits (6) - [`eb86075`](https://github.com/run-llama/llama_cloud_services/commit/eb860753ef434a0586f72e38ea94445d4f1b4bd2) Refactor: Rename agent_url_id to deployment_name - [`c9a8d83`](https://github.com/run-llama/llama_cloud_services/commit/c9a8d83ab3e85ba5c7fc98203c57c218463c7748) update gen sdk - [`7355ca2`](https://github.com/run-llama/llama_cloud_services/commit/7355ca2b76dc16a648200524bbe1381eb7fd6557) hmm, maybe shouldnt be checking formats here - [`288b38e`](https://github.com/run-llama/llama_cloud_services/commit/288b38ec2001f8fce1b7e02d1484e3d3bf0fe342) Update client sdk better - [`19a9046`](https://github.com/run-llama/llama_cloud_services/commit/19a90464ad156b7e1ed398f93ad3854a8fc57aa1) Add minimal constructor compatibility - [`0059900`](https://github.com/run-llama/llama_cloud_services/commit/0059900267bf554f89af818c8ea5d4e783679611) version bumps ### 📊 Changes **15 files changed** (+7498 additions, -4182 deletions) <details> <summary>View changed files</summary> 📝 `py/llama_cloud_services/beta/agent_data/client.py` (+14 -13) 📝 `py/llama_cloud_services/beta/agent_data/schema.py` (+6 -6) 📝 `py/llama_parse/pyproject.toml` (+2 -2) 📝 `py/pyproject.toml` (+2 -2) 📝 `py/tests/beta/agent_data/test_agent_data_client.py` (+1 -1) 📝 `py/unit_tests/beta/agent/test_agent_data_schema.py` (+3 -3) 📝 `py/uv.lock` (+5 -5) 📝 `ts/llama_cloud_services/openapi.json` (+813 -242) 📝 `ts/llama_cloud_services/package.json` (+1 -1) 📝 `ts/llama_cloud_services/src/beta/agent/client.ts` (+22 -15) 📝 `ts/llama_cloud_services/src/beta/agent/types.ts` (+2 -2) 📝 `ts/llama_cloud_services/src/client/schemas.gen.ts` (+3071 -1800) 📝 `ts/llama_cloud_services/src/client/sdk.gen.ts` (+939 -882) 📝 `ts/llama_cloud_services/src/client/types.gen.ts` (+2049 -866) 📝 `ts/llama_cloud_services/src/client/zod.gen.ts` (+568 -342) </details> ### 📄 Description Refactor `agent_slug`/`agentSlug`, and `agentUrlId`/`agentUrlId` to just `deployment_name`/`deploymentName` across Python and TypeScript SDKs. This change aligns the SDKs with the updated platform API schema, which has removed `agent_slug` from its models. This also regenerates the ts sdk, which turned out to be a lot of things. This process could still use some improvements --- Linear Issue: [LI-3577](https://linear.app/llamaindex/issue/LI-3577/refactor-agent-slug-and-agenturlid-out-of-llama-cloud-services) <a href="https://cursor.com/background-agent?bcId=bc-d8505ef3-ca32-433b-8985-b9e42fe99d4b"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-d8505ef3-ca32-433b-8985-b9e42fe99d4b"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 00:19:40 -05:00
yindo closed this issue 2026-02-16 00:19:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#959