You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to invoke an MCP plugin using the realtime agent and running into an issue.
Function calling seems to be working fine in this sample, then I tried adding an MCPStdioPlugin like so:
...
async with MCPStdioPlugin(
name="Github",
description="Github Plugin get information about repositories, issues and pull requests.",
command="npx",
args=[
"-y",
"@modelcontextprotocol/server-github",
],
env={"GITHUB_PERSONAL_ACCESS_TOKEN": os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN")},
) as github_plugin:
realtime_agent = AzureRealtimeWebsocket(plugins=[github_plugin])
...
and while I seem to be getting data:
the app crashes with:
File "/Users/vs/Projects/semantic-kernel/python/semantic_kernel/connectors/ai/open_ai/services/_open_ai_realtime.py", line 464, in _parse_function_call_arguments_done
await self.send(result)
File "/Users/vs/Projects/semantic-kernel/python/semantic_kernel/connectors/ai/open_ai/services/_open_ai_realtime.py", line 516, in send
_create_openai_realtime_client_event(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
event_type=SendEvents.CONVERSATION_ITEM_CREATE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
},
^^
)
^
File "/Users/vs/Projects/semantic-kernel/python/semantic_kernel/connectors/ai/open_ai/services/_open_ai_realtime.py", line 192, in _create_openai_realtime_client_event
return ConversationItemCreateEvent(**kwargs)
File "/Users/vs/Projects/semantic-kernel/python/.venv/lib/python3.13/site-packages/pydantic/main.py", line 253, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ConversationItemCreateEvent
item.output
Input should be a valid string [type=string_type, input_value=[TextContent(inner_conten... }\n]', encoding=None)], input_type=list]
For further information visit https://errors.pydantic.dev/2.11/v/string_type
Is this a supported scenario? If yes, what might be the reason for the error?
pythonPull requests for the Python Semantic Kerneltriage
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I am trying to invoke an MCP plugin using the realtime agent and running into an issue.
Function calling seems to be working fine in this sample, then I tried adding an
MCPStdioPlugin
like so:and while I seem to be getting data:
the app crashes with:
Is this a supported scenario? If yes, what might be the reason for the error?
Beta Was this translation helpful? Give feedback.
All reactions