Skip to content

fix: remove stale delegates parameter from Agent documentation#1241

Merged
zzstoatzz merged 1 commit into
mainfrom
fix-stale-delegates-docs
Nov 6, 2025
Merged

fix: remove stale delegates parameter from Agent documentation#1241
zzstoatzz merged 1 commit into
mainfrom
fix-stale-delegates-docs

Conversation

@zzstoatzz
Copy link
Copy Markdown
Collaborator

summary

removes the stale delegates parameter documentation from the Agent class

problem

issue #1239 reported that the documentation shows Agent(delegates=[...]) as a valid parameter, but this causes a runtime error because the delegates field doesn't exist on the Agent class.

investigating the git history revealed:

  • jan 23, 2025 (commit 52c123e): jeremiah added docs including the delegates section
  • jan 29, 2025 (commit 34c33fa): delegates field was removed from Agent during refactor
  • documentation was never updated to reflect the removal

solution

removed the "delegates" section from docs/concepts/agents.mdx that documented a non-existent parameter

note: the delegates concept still exists on the deprecated Team classes, but not on Agent

test plan

  • confirmed Agent(delegates=[...]) raises TypeError
  • verified actual Agent parameters don't include delegates
  • removed stale documentation section

fixes #1239

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings November 6, 2025 00:10
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 6, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@zzstoatzz zzstoatzz merged commit 930eb5b into main Nov 6, 2025
9 checks passed
@zzstoatzz zzstoatzz deleted the fix-stale-delegates-docs branch November 6, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent.__init__() delegates parameter is missing

2 participants