Skip to content

feat: subagent as task#2508

Merged
tusharmath merged 34 commits intomainfrom
task_tool_final
Apr 7, 2026
Merged

feat: subagent as task#2508
tusharmath merged 34 commits intomainfrom
task_tool_final

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

  • feat(task): add task tool for agent delegation with session resumption
  • feat(task): capitalize task tool name and prevent self-delegation in task tool
  • style(tests): reformat function call arguments to comply with line width limits

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Mar 9, 2026
@amitksingh1490 amitksingh1490 marked this pull request as draft March 9, 2026 15:24
@github-actions
Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Mar 15, 2026
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Mar 17, 2026
@github-actions
Copy link
Copy Markdown

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Mar 24, 2026
@amitksingh1490 amitksingh1490 marked this pull request as ready for review March 25, 2026 09:45
@amitksingh1490 amitksingh1490 removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Mar 25, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 2, 2026
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 5, 2026
@lcpichette
Copy link
Copy Markdown

lcpichette commented Apr 5, 2026

CleanShot 2026-04-05 at 05 45 44@2x Confirmed:
  1. Correct subagents are used
  2. You can run parallel subagents/tasks

.into_iter()
.zip(task_calls.iter())
.map(|(result, tc)| ((*tc).clone(), result))
.collect();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Toolcall should simply offload the call to the toolexecutor. We are doing too much work here to process and prepare the toolcall params.

agent_id: AgentId,
task: String,
ctx: &ToolCallContext,
conversation_id: Option<String>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
conversation_id: Option<String>,
conversation_id: Option<ConversationId>,

Can use ConversationId directly instead.

@tusharmath tusharmath enabled auto-merge (squash) April 7, 2026 06:04
@tusharmath tusharmath merged commit 9d5094f into main Apr 7, 2026
8 checks passed
@tusharmath tusharmath deleted the task_tool_final branch April 7, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants