这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: Agent chat triggered by @ in code prompts #1151

@Mitazaki

Description

@Mitazaki

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Using the @ symbol anywhere in the prompt seems to invoke the agent.

This makes prompts with code problematic

The following does not work as expected

class TestClass: 
@staticmethod def some_method(): 
      pass

And outputs

Swapping over to agent chat. Type /exit to exit agent execution loop early.

However removing the @ works

class TestClass: 
staticmethod def some_method(): 
      pass

Outputs

It seems like you are asking about a class named “TestClass” and its method “some_method”. Is there anything specific you would like to know about this class or method?

Are there known steps to reproduce?

Using @ anywhere in prompt triggers agent chat

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions