mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-22 15:41:56 +00:00

Use of `SKChatCompletionAdapter` reliably fails with "'MockValSer' object cannot be converted to 'SchemaSerializer'"; can repro with this example: https://microsoft.github.io/autogen/stable/user-guide/core-user-guide/components/model-clients.html#semantic-kernel-adapter This appears to be related to https://github.com/pydantic/pydantic/issues/7713 - commit uses workaround from https://github.com/pydantic/pydantic/issues/7713#issuecomment-2604574418 ## Why are these changes needed? This unblocks use of the Semantic Kernel integration by addressing the above-referenced error, enabling the integration to perform as expected. ## Related issue number N/A, see https://github.com/pydantic/pydantic/issues/7713 for context, though. ## Checks - [X] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - None needed, internal only change. - [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR. - None added; this works on my machine, but I'm not clear on the root cause of the issue and have no strong opinion on whether this is the ideal way to fix it long term - simply leaning towards PR`ing a tenative fix instead of raising an issue. - [ ] I've made sure all auto checks have passed. - I am not familiar with these, but assume they will be run during CI. --------- Co-authored-by: Leonardo Pinheiro <leosantospinheiro@gmail.com> Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
AutoGen Extensions
AutoGen is designed to be extensible. The autogen-ext
package contains many different component implementations maintained by the AutoGen project. However, we strongly encourage others to build their own components and publish them as part of the ecosytem.