fix: remove stale delegates parameter from Agent documentation#1241
Merged
Conversation
The Agent class never had a delegates parameter in the current codebase - it was removed on Jan 29, 2025 (commit 34c33fa) just 6 days after the docs were written. This caused confusion for users trying to use the documented API. The delegates concept only exists on the deprecated Team classes, not on Agent. Fixes #1239 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes the "Delegates" section from the agents documentation. The change appears to be cleaning up outdated or deprecated documentation about agent delegation functionality.
- Removed documentation section describing how agents can delegate work to other agents
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
summary
removes the stale
delegatesparameter documentation from the Agent classproblem
issue #1239 reported that the documentation shows
Agent(delegates=[...])as a valid parameter, but this causes a runtime error because thedelegatesfield doesn't exist on the Agent class.investigating the git history revealed:
solution
removed the "delegates" section from
docs/concepts/agents.mdxthat documented a non-existent parameternote: the
delegatesconcept still exists on the deprecated Team classes, but not on Agenttest plan
Agent(delegates=[...])raises TypeErrorfixes #1239
🤖 Generated with Claude Code