Repository navigation
feat(agentstudio): add conversations commands via official SDK - #288
Open
cmarguta-alg wants to merge 1 commit into
Open
cmarguta-alg wants to merge 1 commit into
cmarguta-alg wants to merge 1 commit into
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 58 |
| Duplication | 37 |
TIP This summary will be updated as you push new changes.
…fficial SDK Sibling module under agentstudio: list, get, export, delete, and a date-bounded purge. Co-authored-by: Cursor <cursoragent@cursor.com>
cmarguta-alg
force-pushed
the
lw-oct-agent-studio-2
branch
from
October 15, 2026 14:28
b744e49 to
f450880
Compare
Contributor
Author
|
Status: 🟢 pass · 🔴 fail · 🟡 inconclusive (unable to test full functionality due to missing required data) Personal QA Agent — retest of #288 with a real conversationVerdict: merge-ready. Previously 🟡 Scenario 1/2 (no conversations, no provider) are now 🟢. Retested the conversations command surface (from the stacked Results
The seeded conversation was deleted as part of Scenario 2. The QA agent was deleted afterward. Provider left in place. Non-blocking nits
— Personal QA Agent |
This was referenced Oct 15, 2026
LorrisSaintGenez
approved these changes
Oct 16, 2026
cmarguta-alg
added this pull request to stack #292
October 16, 2026 18:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 What
Adds
algolia agentstudio conversationsso you can list, get, export, delete, and purge Agent Studio conversations through the official Go SDK.🤷 Why
#289 shipped the Agents resource. Conversations is the next sibling module under
agentstudio(not nested underagents), using the same SDK client.🔍 How
algolia agentstudio conversationswith list/get/export/delete/purge calling the matching SDK methods.deleteandpurgerequire--confirmoff TTY.purgealso requires--start-dateand/or--end-dateso the delete is bounded.list/get/exportprint JSON. Dates areYYYY-MM-DD. IDs in examples are UUID-shaped. No file reads or writes.🧪 Testing
Stacked on #289. Merge that first, or check out this branch which includes it.
Reads and deletes need an API key with
logs(admin keys skip the CLI ACL check). Replace<APP_ID>and<agent-id>with an Agent Studio app that already has conversations. Agent and conversation IDs are UUIDs. Pass--application-idif the selected profile app does not resolve.Quick checks
task build go test ./pkg/cmd/conversations/... ./pkg/cmd/agentstudio ./pkg/cmd/root -count=1 ./algolia agentstudio conversations --help ./algolia agentstudio conversations list --help ./algolia agentstudio conversations purge --helpExpect tests green,
conversationsbesideagentsunderagentstudio, and subcommandslist,get,export,delete,purge.purge --helpstates a date bound is required.Scenario 1 — list, get, export
Action: list conversations, get one, export a date range.
Expectation:
listreturnsdata[]andpagination.getreturns that conversation with amessagesarray.exportprints a JSON array of full conversations.Scenario 2 — delete confirmation (failure mode)
Action: delete without
--confirmin a non-TTY, then with--confirm.Expectation: the first command errors with
--confirm required when non-interactive shell is detectedand the conversation still exists. The second exits 0.getthen fails because the conversation is gone.Scenario 3 — purge requires a date bound (failure mode)
Action: purge without a date, then with
--end-dateand--confirm.Expectation: the first command errors with
`--start-date` or `--end-date` is requiredand does not call the API. The second exits 0 (may delete nothing if no conversations match).lw-oct-agent-studio-1).logsACL.Made with Cursor