Repository navigation
Blender Agent Framework and Notebook - #58
Closed
kovtcharov wants to merge 15 commits into
Closed
kovtcharov wants to merge 15 commits into
kovtcharov wants to merge 15 commits into
Conversation
vgodsoe
reviewed
Jun 2, 2025
vgodsoe
left a comment
Collaborator
There was a problem hiding this comment.
This is stellar work! Nicely done.
Left a few suggestions to help with the new user going through the workflow.
Co-authored-by: Victoria Godsoe <[email protected]>
This pull request introduces a comprehensive **Blender Agent system** that enables natural language-driven 3D content creation using Local LLMs and Ryzen AI hardware. The implementation provides a complete framework for controlling Blender through conversational AI, making 3D modeling accessible to users without technical expertise. - **BlenderAgent**: Advanced agent with full tool registry and complex scene manipulation - **BlenderAgentSimple**: Streamlined agent for basic object creation with minimal parameters - **MCP Integration**: Message Control Protocol for seamless Blender communication - **LLM-Driven**: Support for both local LLMs and OpenAI API integration - Natural language to 3D object creation - Automated scene setup and management - Material and shader generation - **SceneManager**: Scene reset, clearing, and diagnostics - **ObjectManager**: Sphere creation, lighting, and texture loading - **MaterialManager**: Ground and atmosphere material generation - **RenderManager**: Volume rendering and color grading - **ViewManager**: Viewport settings and workspace management ``` ├── agent.py # Base agent class with tool registry ├── console.py # Rich console output and progress indicators ├── tools.py # Tool registration and decorator system └── __init__.py # Agent module exports ``` 🔄 Intelligent State Management - Execution States: PLANNING → EXECUTING_PLAN → COMPLETION with automatic transitions - Plan Enforcement: Forces LLM to create detailed plans before tool execution - Error Recovery: Built-in retry logic and graceful failure handling 🛠️ **Dynamic Tool Integration** - Auto-Discovery: Tools automatically registered and documented for LLM prompts - Parameter Validation: Automatic validation of required vs optional arguments - Safe Execution: Error handling with conversation context preservation 🧠 **Robust LLM Processing** - Multi-Provider Support: Local LLM servers and OpenAI API compatibility - Advanced JSON Parsing: Multiple extraction strategies with regex fallbacks - Streaming Support: Real-time response display with progress indicators 📋 **Multi-Step Execution** - Plan Creation: LLM generates detailed execution plans with tool sequences - Sequential Processing: Step-by-step execution with progress tracking - Context Management: Full conversation history with performance statistics ``` ├── agent.py # Main BlenderAgent implementation ├── agent_simple.py # Simplified BlenderAgentSimple ├── app.py # Demo and interactive applications ├── core/ │ ├── materials.py # MaterialManager for shaders │ ├── objects.py # ObjectManager for 3D operations │ ├── render.py # RenderManager for output │ ├── scene.py # SceneManager for environment │ └── view.py # ViewManager for viewport └── mcp_client.py # Blender MCP communication client ``` 🎯 **Specialized 3D Assistant** - Domain Expertise: Inherits robust Agent framework with Blender-specific tools and workflows - MCP Communication: Direct integration with Blender via Message Control Protocol - Natural Language Interface: Converts conversational requests into precise 3D operations 🛠️ **Core Tool Suite** - Scene Management: clear_scene(), get_scene_info(), diagnose_scene() - Object Operations: create_object(), modify_object(), delete_object(), get_object_info() - Material System: set_material_color() with RGBA support - Code Execution: execute_blender_code() for advanced operations 🧠 **Intelligent Workflow System** - Enforced Planning: Requires detailed plans before tool execution - Common Workflows: Pre-defined patterns for colored objects, scene clearing, object modification - Smart Object Tracking: Automatically tracks Blender-assigned object names and updates future plan steps - JSON Format Enforcement: Strict response validation with format reminders 📋 **Advanced Scene Creation** - Multi-Step Execution: Plans and executes complex scene compositions - Object Relationship Management: Handles dependencies between objects and materials - Interactive Scene Builder: create_interactive_scene() for complex multi-object scenes - Error Recovery: Graceful handling of Blender API failures ``` ├── interface/ │ └── mcp_blender_client.py # MCP server integration ├── llm/ │ └── llm_client.py # LLM communication layer ``` NOTE: MCP client-server implementation has been obtained from the following project found [here](https://github.com/ahujasid/blender-mcp). We thank the authors for the implementation. ```python from gaia.agents.Blender import BlenderAgentSimple agent = BlenderAgentSimple() response = agent.process_query("Create a red cube at position (2, 0, 0)") ``` ```python from gaia.agents.Blender import BlenderAgent agent = BlenderAgent() agent.process_query("Create a red cube, make sure to clear the scene first") ``` - **Unit Tests**: Individual component validation - **Integration Tests**: End-to-end MCP server communication - **Mocked Tests**: LLM response simulation ``` tests/ ├── conftest.py # Test configuration and fixtures ├── test_agent.py # BlenderAgent tests ├── test_agent_simple.py # BlenderAgentSimple tests └── test_mcp_client.py # MCP communication tests ``` ```bash pytest tests/ -m "not integration" pytest tests/ ``` - **Interactive Notebook**: Step-by-step LLM agent building - **Ryzen AI Integration**: Local hardware optimization guides - **MCP Server Setup**: Blender addon installation and configuration - Optimized for Ryzen AI hardware using the NPU/iGPU hybrid mode - Configurable model endpoints - Performance monitoring and statistics - Fallback to OpenAI API when needed - Supports Blender 3.6+ via MCP addon - Thread-safe command execution - Error handling and recovery - Scene state validation - Debug configuration for Blender agent - Custom terminal profiles for Windows - Notebook word wrap settings - **Updated**: Pydantic ≥ 2.9.2 for enhanced validation - **Added**: bpy package requirement for Blender integration - **New Agent**: Blender agent in setup.py configuration 1. **New Agent Type**: Introduction of Blender-specific agent requires updated imports 2. **MCP Dependency**: Requires MCP server addon installation in Blender 3. **Logging Changes**: Default log levels changed from DEBUG to INFO for reduced verbosity This implementation successfully demonstrates: - ✅ Natural language to 3D object conversion - ✅ Modular and extensible architecture - ✅ Comprehensive testing and documentation - ✅ Local LLM optimization for Ryzen AI - ✅ Error handling and logging
vgodsoe
approved these changes
Jun 9, 2025
|
|
||
| ## Overview | ||
|
|
||
| This hands-on workshop will guide participants through building local LLM agents using the Ryzen AI stack to interact with the Blender 3D creation suite. Participants will learn how to create an agent that can understand natural language instructions and translate them into Blender operations, all running locally on Ryzen AI hardware using the powerful NPU/iGPU hybrid execution mode. |
Collaborator
There was a problem hiding this comment.
Suggested change
| This hands-on workshop will guide participants through building local LLM agents using the Ryzen AI stack to interact with the Blender 3D creation suite. Participants will learn how to create an agent that can understand natural language instructions and translate them into Blender operations, all running locally on Ryzen AI hardware using the powerful NPU/iGPU hybrid execution mode. | |
| This hands-on workshop will guide participants through building local LLM agents using Ryzen™ AI software to interact with the Blender 3D creation suite. Participants will learn how to create an agent that can understand natural language instructions and translate them into Blender operations, all running locally on Ryzen AI hardware using the powerful NPU/iGPU hybrid execution mode. |
| - **Extensible**: Easily build custom agents for specific use cases like 3D modeling in Blender | ||
| - **Agent Framework**: Comprehensive base classes with tool registration, planning, execution, and observability | ||
|
|
||
| GAIA works with Lemonade, a specialized LLM server that optimizes model execution on Ryzen AI hardware through NPU/iGPU hybrid mode, allowing LLMs to run as efficiently and fast as possible. |
Collaborator
There was a problem hiding this comment.
Suggested change
| GAIA works with Lemonade, a specialized LLM server that optimizes model execution on Ryzen AI hardware through NPU/iGPU hybrid mode, allowing LLMs to run as efficiently and fast as possible. | |
| GAIA works with Lemonade Server, a specialized LLM server that optimizes model execution on Ryzen AI hardware through NPU/iGPU hybrid mode, allowing LLMs to run as efficiently and fast as possible. |
Contributor
Author
|
Closing as this was already included in the v0.8.4 release. FYI, @vgodsoe. |
5 of 6 tasks
kovtcharov
added a commit
that referenced
this pull request
Jul 19, 2026
Milestone #58 files 29 issues whose evidence lives in these three reports, and every one of those issues cited a path that existed only on the author's machine. Committing them makes the claims checkable by someone other than the person who filed them. Covers all 18 hub agents plus the in-core builder: the six-agent generality audit (chat/doc/file/browser/analyst/code), the thin-and-infrastructure triage, and the external-dependency triage. Each carries a PORT/MERGE/DISCARD verdict with file:line evidence and per-workstream effort. Two caveats a reader should carry: the effort ratings are estimates, not measurements, and the "~1,782 dead lines" figure for the code agent could not be independently reproduced (noted on #2319).
Closed
1 of 7 tasks
9 tasks
marketplace-specificai
pushed a commit
to marketplace-specificai/gaia
that referenced
this pull request
Jul 26, 2026
…md#2338) Anyone porting a hub agent today has three skills for the *end* of the job — build a new agent, cut a release, add a scorecard — and nothing for the middle: taking an agent that already exists to a state where publishing it is honest. The result is that "the code works, it just needs docs" reads as true when it usually is not. A fleet audit found agents whose manifests advertise capability the code cannot deliver, `tools_count` wrong in both directions with no guard, and 17 of 18 agents declaring `api_server: true` with no REST surface behind it. This skill encodes the order that prevents that — verdict, capability-truth audit, generalize, behavioral tests, eval corpus, parity kit, CI, day-one gate — with the email agent as the template throughout, and a bar that ends at "usable on install" rather than "published". Scoping for the work itself is milestone amd#58. ## Test plan - [x] All 18 file paths referenced in the skill resolve (`hub/agents/email/**`, `src/gaia/agents/base/server.py`, `src/gaia/daemon/sidecars/spec.py`, `workers/agent-hub/src/storage.ts`, `docs/reference/eval-scorecard.mdx`, …) - [x] Cross-links resolve in both directions (`agent-hub-release`, `gaia-build-agent`, `adding-eval-scorecard` → new skill, and back) - [x] No stale pre-amd#2060 `hub/agents/{python,npm}/<id>` paths introduced — `grep -rn "hub/agents/python/\|hub/agents/npm/" .claude/skills/` returns 0 - [x] Skill loads and is discoverable via the `Skill` tool - [x] **Behavioral check** — a fresh agent given the tempting framing ("the code works, it just needs documentation, what do I do?") declined the shortcut, ran the capability-truth audit, and surfaced two defects the human audit had missed: a `conversation_starters` entry promising a capability with no tool behind it, and a preflight checking `docker --version` (the binary) rather than the daemon. Both verified at HEAD and filed to amd#2325. - [ ] Reviewer sanity-check: does Phase 0 (PORT/MERGE/DISCARD) read as gating, or as optional?
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.
Overview
This pull request introduces a comprehensive Blender Agent system that enables natural language-driven 3D content creation using Local LLMs and Ryzen AI hardware. The implementation provides a complete framework for controlling Blender through conversational AI, making 3D modeling accessible to users without technical expertise.
🚀 Key Features
Core Agent System
Intelligent 3D Operations
Modular Architecture
🏗️ Architecture Components
Agent Framework (
src/gaia/agents/base/)Key Features
🔄 Intelligent State Management
🛠️ Dynamic Tool Integration
🧠 Robust LLM Processing
📋 Multi-Step Execution
Blender Integration (
src/gaia/agents/Blender/)🎯 Specialized 3D Assistant
🛠️ Core Tool Suite
🧠 Intelligent Workflow System
📋 Advanced Scene Creation
Infrastructure (
src/gaia/)NOTE: MCP client-server implementation has been obtained from the following project found here. We thank the authors for the implementation.
💡 Usage Examples
Simple Object Creation
Complex Multi-Turn Building
🧪 Testing Framework
Comprehensive Test Suite
Test Structure
Running Tests
📚 Documentation & Workshop Materials
Workshop Implementation (
workshop/)⚡ Performance & Compatibility
Local LLM Support
Blender Compatibility
🔧 Configuration
VS Code Integration
Dependencies
🚨 Breaking Changes
🎯 Success Criteria
This implementation successfully demonstrates: