feat: add agent node type with tool calling#29
Open
benzend wants to merge 5 commits into
Open
Conversation
Introduces a new 'agent' workflow node that supports autonomous AI execution with configurable tools, temperature, and step limits. Agents can call existing integrations (email, Slack, HTTP, etc.) and custom API endpoints as tools during their execution loop. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…result) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace plain text node dropdown with categorized modal selector with search, icons, descriptions, and keyboard navigation - Add metadata (label, description, category, icon) to node registry - Use accent color for all selected nodes instead of success - Add Brain/Bot Lucide icons for AI/Agent nodes (canvas + sidebar) - Add editable account name in settings page with API endpoint - Fix session callback to read name from DB - Remove email from profile dropdown - Fix hydration mismatch in GetStarted MCP config - Add click-to-edit workflow renaming in builder header Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
output,tool_calls,last_tool_result) available to downstream nodes via{{agent_label.field}}New files
lib/agent-tools.ts— Bridges AgentToolConfig to Vercel AI SDK tool definitionslib/agent-executor.ts— Core agent loop usinggenerateText()+stopWhen(stepCountIs(N))components/reactflow-nodes/AgentNode.tsx— Canvas node with tool count badgecomponents/AgentToolPicker.tsx— Tool selection UIModified files
lib/workflow-types.ts— AgentNodeConfig/AgentToolConfig interfaceslib/node-registry.ts— Agent registry entry with defaultslib/node-outputs.ts— Agent output variablespages/api/workflow/[id]/execute.ts— Agent execution casecomponents/WorkflowBuilderReactFlow.tsx— Full agent sidebar config panellib/agentic-chat.ts,lib/workflow-parser.ts— Added agent to node type enumsTest plan
{{agent.output}}variables🤖 Generated with Claude Code