Skip to content
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

Editor: Added agent #30761

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from
Draft

Editor: Added agent #30761

wants to merge 13 commits into from

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Mar 20, 2025

Description

I thought it would be interesting to try to add an agent to the editor.

This is how it currently looks like:

Screen.Recording.2025-03-20.at.15.30.19.mov

Currently I'm building it using @google/genai.

Ideally we would just use the AI that comes with the browser using the Prompt API:
https://developer.chrome.com/docs/extensions/ai/prompt-api

@mrdoob mrdoob added this to the r175 milestone Mar 20, 2025
@ruofeidu
Copy link
Contributor

Nice! Time to InstructPipe / Idea2Reality to three.js :) https://duruofei.com/papers/Zhou_InstructPipe-BuildingVisualProgrammingPipelinesInVisualBlocksWithHumanInstructionsUsingLLMs_CHI2025.pdf

mrdoob and others added 2 commits March 24, 2025 22:18
…rt, function or class

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@@ -192,7 +192,7 @@ class Agent {
async init() {

// Initialize Google AI
const ai = new GoogleGenAI( { apiKey: 'GENAI_API_KEY' } );
const ai = new GoogleGenAI( { apiKey: 'AIzaSyAHEPxUn9Ow4Lk8oXM4jl3u_stzOIxkkGM' } );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrdoob any problem on exposing this key?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was exposing it intentionally, but seems like githack doesn't like serving stuff with keys...

@mrdoob mrdoob modified the milestones: r175, r176 Mar 28, 2025
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.

3 participants