Skip to content

Enhance Agent with Planning and Function Calls Support #30769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: agent
Choose a base branch
from

Conversation

majidmanzarpour
Copy link

This PR enhances the Three.js editor's Agent with the following improvements:

Key Features

  • Planning Phase: Added a two-phase approach where the agent first plans the 3D model creation before execution
  • Function Call Support: Improved handling of GoogleGenAI SDK function calls
  • Enhanced Error Handling: Added robust error detection and recovery for API calls

Technical Details

  • Updated content formatting to meet the SDK's requirements
  • Added debugging to assist with troubleshooting API interactions
  • Improved response extraction from the Google GenAI API

These changes make the agent more reliable and capable of handling complex 3D model creation requests through a structured planning and execution approach.

Copy link

github-actions bot commented Mar 20, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.08
78.29
336.08
78.29
+0 B
+0 B
WebGPU 525.21
146.28
525.17
146.28
-40 B
+5 B
WebGPU Nodes 524.67
146.18
524.63
146.18
-40 B
+5 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 465.15
112.18
465.15
112.18
+0 B
+0 B
WebGPU 598.01
162.57
597.97
162.56
-40 B
-7 B
WebGPU Nodes 553.1
152.04
553.1
152.04
+0 B
+0 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant