You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Agent node is the most fundamental node type in the DevAll platform, used to invoke Large Language Models (LLMs) for text generation, conversation, reasoning, and other tasks. It supports multiple model providers (OpenAI, Gemini, etc.) and can be configured with advanced features like tool calling, chain-of-thought, and memory.
Configuration
Field
Type
Required
Default
Description
provider
string
Yes
openai
Model provider name, e.g., openai, gemini
name
string
Yes
-
Model name, e.g., gpt-4o, gemini-2.0-flash-001
role
text
No
-
System prompt
base_url
string
No
Provider default
API endpoint URL, supports ${VAR} placeholders
api_key
string
No
-
API key, recommend using environment variable ${API_KEY}
Maximum number of attempts (including first attempt)
min_wait_seconds
float
1.0
Minimum backoff wait time
max_wait_seconds
float
6.0
Maximum backoff wait time
retry_on_status_codes
list[int]
[408,409,425,429,500,502,503,504]
HTTP status codes that trigger retry
When to Use
Text generation: Writing, translation, summarization, Q&A, etc.
Intelligent conversation: Multi-turn dialogue, customer service bots
Tool calling: Enable the model to call external APIs or execute functions
Complex reasoning: Use with thinking configuration for deep thought
Knowledge retrieval: Use with memories to implement RAG patterns
Examples
Basic Configuration
nodes:
- id: Writertype: agentconfig:
provider: openaibase_url: ${BASE_URL}api_key: ${API_KEY}name: gpt-4orole: | You are a professional technical documentation writer. Please answer questions in clear and concise language.params:
temperature: 0.7max_tokens: 2000
Configuring Tool Calling
nodes:
- id: Assistanttype: agentconfig:
provider: openainame: gpt-4oapi_key: ${API_KEY}tooling:
type: function # Tool type: function, mcp_remote, mcp_localconfig:
tools: # List of function tools from functions/function_calling/ directory
- name: describe_available_files
- name: load_filetimeout: 20# Optional: execution timeout (seconds)
nodes:
- id: Local MCP Agenttype: agentconfig:
provider: openainame: gpt-4oapi_key: ${API_KEY}tooling:
type: mcp_localconfig:
command: uvx # Launch commandargs: ["mcp-server-sqlite", "--db-path", "data.db"]cwd: ${WORKSPACE} # Optional, usually not neededenv: # Optional, usually not neededDEBUG: "true"startup_timeout: 10# Optional: startup timeout (seconds)
Gemini Multimodal Configuration
nodes:
- id: Vision Agenttype: agentconfig:
provider: geminibase_url: https://generativelanguage.googleapis.comapi_key: ${GEMINI_API_KEY}name: gemini-2.5-flash-imagerole: You need to generate corresponding image content based on user input.
Configuring Retry Strategy
nodes:
- id: Robust Agenttype: agentconfig:
provider: openainame: gpt-4oapi_key: ${API_KEY}retry: # Retry is enabled by default, you can customize itenabled: truemax_attempts: 3min_wait_seconds: 2.0max_wait_seconds: 10.0