Agentic mode, autonomous AI with intelligent tools
📋 Table of contents
🎯 What is native tool calling?
Native tool calling (also agentic mode) lets AI models use tools on their own to solve complex tasks. This turns a standard chatbot into an intelligent, autonomous system.
🤖 Autonomous decisions
The model decides on its own when and which tools to use.
⚡ Higher efficiency
Native implementation is faster than prompt-based methods.
🔄 Multi-step workflows
Several tools can be chained one after another for complex research.
📚 Contextual understanding
Models can analyze previous results and choose better next steps.
🔀 Default mode vs. native mode
🟡 Default mode (prompt-based)
Nenna injects a prompt that guides the model to use tools.
✓ Compatibility: works with practically any model
✓ Flexibility: highly customizable via prompts
✗ Latency: medium to high due to extra tokens
✗ Reliability: limited for complex tool chaining
🟢 Native mode (agentic)
The model uses its native ability for tool support with structured JSON.
✓ Speed: low latency
✓ Reliability: higher accuracy with quality models
✓ Multi-step: excellent for complex workflows
✗ Model requirement: only quality models suited
✗ Compatibility: not all models supported
💡 Recommendation: Use native mode for production environments with high-quality models (Claude=4, Gemini=2.5, GPT5) or special models with agentic abilities.
⚙️ Activating native tool calling
Option 1: Global (admin panel)
1. Go to Admin Panel Settings Models
2. Select the model and scroll to Model Specific Settings
3. Under Advanced Parameters set Function Calling to Native
4. Save the settings
Option 2: Per chat (chat controls)
1. Open a chat
2. Click the ⚙️ Chat Controls icon
3. Navigate to Advanced Params
4. Set Function Calling to Native
✅ Success! Native mode is now activated and the model can perform autonomous tool calls.
🧰 Available native tools
Web & search
| Tool | Function | Requirement |
|---|---|---|
search_web | Searches the public web | ENABLE_WEB_SEARCH = True |
fetch_url | Extracts text from URLs | None |
Knowledge base
| Tool | Function |
|---|---|
list_knowledge_bases | Lists available knowledge bases |
query_knowledge_bases | Searches KB names and descriptions |
query_knowledge_files | Searches file contents with vector search |
view_knowledge_file | Shows the full contents of a file |
Memory & notes
| Tool | Function |
|---|---|
search_memories | Searches user memories |
add_memory | Stores new facts |
search_notes | Searches user notes |
write_note | Creates new notes |
Code & media
| Tool | Function |
|---|---|
execute_code | Runs Python code |
generate_image | Generates images |
edit_image | Edits existing images |
Time & system
| Tool | Function |
|---|---|
get_current_timestamp | Returns the current time |
calculate_timestamp | Calculates relative points in time |
📋 Requirements for models
🟢 Recommended models (quality tier)
These models work reliably with native mode, for example:
- OpenAI GPT-4o / GPT-5 / 5.2
- Claude 4.5 Haiku / Sonnet / Opus
- Gemini 2.5 Flash / 3.0 Flash / Pro
- Deepseek V3.2
- Moonshotai Kimi-K2-Instruct
⚠️ Warning: small or old models do not work reliably with native mode. They often produce faulty JSON or cannot carry out complex tool orchestration. For these models use default mode.
🎓 Best practices
1. Activate tools for the model
Go to Workspace Models and activate the desired tools in the Tools section.
2. Instruct the system prompt
Give the model clear instructions on how to use tools:
"When users ask questions:
Use list_knowledge_bases to see available KBs
Use query_knowledge_files to search for relevant information
Give a well-founded answer based on the results"
3. Use granular tool categories
| Category | Tools | Use case |
|---|---|---|
| Knowledge base | list, query, search, view | Document research |
| Memory | search, add, replace | Personalization |
| Web search | search_web, fetch_url | Current information |
| Code interpreter | execute_code | Data analysis, calculations |
4. Optimize the knowledge base workflow
Recommended sequence:
Model first searches with
list_knowledge_basesThen it uses
query_knowledge_fileswith a matching filterIf needed:
view_knowledge_filefor the complete content
5. Enable interleaved thinking
Quality models can follow a "think → act → think" pattern:
- Model analyzes the request
- Model calls a tool
- Model analyzes the result
- Model may call another tool
- Model gives the final answer
🔧 Troubleshooting
Problem: model doesn't use tools
Solution:
- ✓ Check that native mode is activated
- ✓ Confirm that the model is quality tier
- ✓ Activate the tools in the model editor
- ✓ Give clear system prompts with instructions
Problem: knowledge base tools return empty results
Debugging steps:
Model calls
list_knowledge_bases, can it see the KB?Uses
query_knowledge_fileswithout a filter, does it work?Is "full context" mode active? Turn it off (it doesn't use vector search)
Problem: too many tokens used
Optimization:
- ✓ Deactivate unneeded tool categories
- ✓ Use only the tools you actually need
- ✓ Limit tool categories per model in the editor
🔒 Security notes
⚠️ Important:
- Native tools allow models to take autonomous actions (web search, code execution)
- Limit tool access to trusted models
- Only trusted users should be able to create workspace tools
- The code interpreter is powerful, use it only with reliable models
