-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Bug]: 在根据示例去写程序的时候,遇到了实例不能调用的问题 #2683
Comments
Did you add the ‘AutoGen.SourceGenerator’ package to your project? |
Thanks. After adding this package, this issue has been resolved |
看起来是namespace confliction因为你的namespace是‘Edonsoft.AIManagement.Azure’. 然后FunctionDefinition的命名空间是Azure.AI. 所以它就去Edonsoft.AIManagement.Azure.AI 去找FunctionDefinition了 我可以在下一版的source generator里加上global关键词,目前最快的fix应该是改namespace (比如把 Edonsoft.AIManagement.Azure改成Edonsoft.AIManagement.AzureAI) |
好的,谢谢答复。我们这边修改项目内部的命名空间 |
Describe the bug
在我根据这个示例去创建自己的应用的时候。我遇到了一个问题。https://github.com/microsoft/autogen/blob/dotnet/dotnet/sample/AutoGen.BasicSamples/Example03_Agent_FunctionCall.cs
示例中有定义一个方法UpperCase。这个方法有一个注解,是Function。在run程序中,实例化这个类之后,var instance = new(),能直接instance.UpperCaseFunctionContract(),但是在我自己的代码中,不能instance.UpperCaseFunctionContract()。我想知道是哪一步有问题。我自己的代码中,我也有加注解。
Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: