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

references to "undefined" in webUI #47

Open
FellowTraveler opened this issue Jul 5, 2024 · 6 comments
Open

references to "undefined" in webUI #47

FellowTraveler opened this issue Jul 5, 2024 · 6 comments

Comments

@FellowTraveler
Copy link

The agent appears to have assigned labels to various symbols correctly, since it references those symbols by name in the console log.
But in the web UI it will refer to those same symbols as "undefined".
I would post a screenshot but I assume you know what I mean already.

@stevenlu137
Copy link
Collaborator

I don't quite understand the situation you're describing. I suspect it might be that the UI is having difficulty displaying certain variables, which usually happens when the UI tries to display multimodal variables with extended Markdown syntax. It would be best to have logs for reference.

@FellowTraveler
Copy link
Author

FellowTraveler commented Jul 21, 2024

image image

See these two images? One shows the console log, and one shows the web UI (for the exact same action).
Notice the "undefined" values in the web UI.

@FellowTraveler
Copy link
Author

FellowTraveler commented Jul 21, 2024

I'm sure you already get the point, but I figured I'd upload one more example.
This behavior is consistent. Always happens in every case.

image image

Notice the replacement of key strings with "undefined" in the second image from the same event.

@stevenlu137
Copy link
Collaborator

fixed! just an error due to my lack of familiarity with js. You can get the fixed version on latest master branch.

@FellowTraveler
Copy link
Author

Can I assume therefore that the agent is assigning internal variables to some of these things? Presumably to track their values and standardize their usage? How are those used? Just curious.

@stevenlu137
Copy link
Collaborator

This error was simply caused by me using incorrect js syntax when rendering the codespan.

However, what you're curious about also exists in AIlice: code blocks marked with triple backticks will be automatically defined as variables, allowing agents to quickly reference these codes without needing to copy them. This will become apparent when you let AIlice program and run the code. The coder-proxy usually has the coder write the code, and after the coder returns the code block, the coder-proxy directly references a randomly named variable to execute or save the code. In fact, the system automatically parses the code block returned by the coder and saves it as a randomly named variable.

You can see the related code in core/AConversation.py:18-26.

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

No branches or pull requests

2 participants