Replies: 4 comments
-
@eavanvalkenburg could you take a look at it? |
Beta Was this translation helpful? Give feedback.
-
@nblog python version 1.35.2 was just released and has a fix for this, I made it for the related discussion you flagged, but it improves the parsing of types across the board so should also do something here. Please have a test and let me know! |
Beta Was this translation helpful? Give feedback.
-
I have upgraded to the latest version of Details
Additional Notes
|
Beta Was this translation helpful? Give feedback.
-
I encountered a problem when using the As shown in the official example python/samples/concepts/chat_completion/simple_chatbot_with_image.py , the following code demonstrates that image_content_remote = ImageContent(uri=IMAGE_URI) However, in my own implementation, I attempted the following: @kernel_function()
def my_tool():
contents = [TextContent(text="summarize these points")]
# image
contents.append(ImageContent(uri=img_info['url']))
# log file
contents.append(BinaryContent(uri=file_info['url'], mime_type=file_info['mime_type']))
return ChatMessageContent(role="tool", items=contents) When I inspect the response in MCP, I find that the ![]() I am not sure whether this issue is caused by the internal implementation of semantic-kernel or by the MCP wrapper, but I hope this can be addressed and resolved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The issue described here is similar to #12850.
Problem Description
I am trying to migrate functionality from an MCP server implementation to
semantic-kernel
, specifically regarding returning attachments as part of a function response. My implementation works as expected with MCP, but fails to produce the desired result when using semantic-kernel.MCP Example (Works as Intended)
semantic-kernel Example (Does Not Work)
Request for Guidance
Any guidance or best practices for passing attachments through semantic-kernel MCP server functions would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions