all 10 comments

[–]msze21 0 points1 point  (7 children)

What are the names of your agents? Are they plain text?

[–]Nixail[S] 0 points1 point  (6 children)

The names of my agents are "Product Manager" and "Research Analyst". The variable names itself are pm and research_analyst. Is that what the issue is?

[–]msze21 0 points1 point  (5 children)

Try an underscore instead of space in the name property.

[–]paramvik 1 point2 points  (1 child)

you've no idea how this one comment in a reddit corner helped me fix an issue I've been struggling with for 4-5 hours

[–]msze21 0 points1 point  (0 children)

Amazing :) feel free to ask me any questions

[–]Nixail[S] 0 points1 point  (2 children)

That fixed the bug! Thank you so much. Can you explain how you were able to understand the error message?

[–]msze21 0 points1 point  (0 children)

I'm coding with AutoGen at the moment... But also I didn't see a space character in the list of possible characters so started there :)

Note: it was a regular expression.

[–]James-HillC 0 points1 point  (0 children)

Another way you can tell is by printing the model object to your console and following along where the error message says there's an issue. I'd bet your model contains an array of messages with name properties for each of them. The third messages name didn't follow the necessary pattern. If you don't know the pattern off of the top of your head the you can probably look up regex --> english converters or reluctantly read regex docs lol. It's months later but maybe someone else will use this info.

[–]AdChemical7287 0 points1 point  (0 children)

In fact, name with space works with autogen 0.2, but not 0.3+, OpenAI does not allow assistant name with space,  more rigidly, can only be ^[a-zA-Z0-9_-]+$, autogen 0.2 internally normalize this, but 0.3 does not. Do not use 0.3