fix(agentstudio): multiagent, output file download feature support - #181
Merged
Conversation
…d_id - agents.create/update accept `multiagent` (coordinator roster); Agent responses hydrate it into MultiAgentConfig / MultiAgentRosterEntry. - files.download() returns FileContent, a bytes subclass with write_to_file(); sync and async. - sessions.create accepts vault_ids (create-only per the protocol; the update path does not take it). - Message declares the top-level thread_id the server sends on every thread_* event, so subagent thread ids no longer fall into `extra`. Verified against the pre-maas backend: roster create / update / clear, plus the four server-side rejections (two selfs, >20 entries, Anthropic's string shorthand, unknown entry type), and a live coordinator delegation run emitting 7 thread_* events with the subagent result returned to the coordinator. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Review feedback: `dict(multiagent)` raises TypeError when the caller passes the MultiAgentConfig read off a response, which breaks the natural read-modify-write flow (update already requires the version, so callers retrieve first). Use the file's existing `_to_mapping` helper, already used for the deployment agent/schedule/resources params: it tries to_dict() first, then Mapping. Also drop the async `_open_content` note claiming the service may answer 302 with a pre-signed URL and that redirects are followed. Both halves are wrong: the protocol says §6.3 returns the byte stream directly and does not hand out pre-signed URLs in P1, and the httpx clients are built without follow_redirects (default False), so a 302 would silently yield zero bytes. The two docstrings now match, and match the code. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
luk384090-cloud
self-requested a review
August 25, 2026 03:44
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.
multiagent(coordinator roster); Agent responses hydrate it into MultiAgentConfig / MultiAgentRosterEntry.extra.Verified against the pre-maas backend: roster create / update / clear, plus the four server-side rejections (two selfs, >20 entries, Anthropic's string shorthand, unknown entry type), and a live coordinator delegation run emitting 7 thread_* events with the subagent result returned to the coordinator.
Description
[Describe what this PR does and why]
Related Issue: Fixes #[issue_number] or Relates to #[issue_number]
Security Considerations: [Check if API keys or sensitive credentials are exposed in code/logs]
Type of Change
Component(s) Affected
Checklist
Testing
[How to test these changes]
Additional Notes
[Optional: any other context]