π The fast, Pythonic way to build MCP servers and clients.
Remove system role references from docs (#3356)
Jeremiah Lowin2ab8beb195a7
diff --git a/docs/clients/prompts.mdx b/docs/clients/prompts.mdxindex 2bf8c3c19..bb50d475f 100644--- a/docs/clients/prompts.mdx+++ b/docs/clients/prompts.mdx@@ -90,9 +90,9 @@ async with client:"expertise": "python programming"})- # Typically returns messages with role="system"- system_message = result.messages[0]- print(f"System prompt: {system_message.content}")+ # Access the returned messages+ message = result.messages[0]+ print(f"Prompt: {message.content}")```Conversation templates generate multi-turn flows:diff --git a/docs/servers/transforms/prompts-as-tools.mdx b/docs/servers/transforms/prompts-as-tools.mdxindex f0b499fc8..b68c0891d 100644--- a/docs/servers/transforms/prompts-as-tools.mdx+++ b/docs/servers/transforms/prompts-as-tools.mdx@@ -116,7 +116,7 @@ result = await client.call_tool(## Message FormatRendered prompts return a messages array following the standard MCP format. Each message includes:-- `role`: The message role (typically "user", "assistant", or "system")+- `role`: The message role ("user" or "assistant")- `content`: The message text contentMulti-message prompts are supported - the array will contain all messages in order.diff --git a/docs/v2/clients/prompts.mdx b/docs/v2/clients/prompts.mdxindex a6d6e155b..291503f7b 100644--- a/docs/v2/clients/prompts.mdx+++ b/docs/v2/clients/prompts.mdx@@ -190,9 +190,9 @@ async with client:"expertise": "python programming"})- # Typically returns messages with role="system"- system_message = result.messages[0]- print(f"System prompt: {system_message.content}")+ # Access the returned messages+ message = result.messages[0]+ print(f"Prompt: {message.content}")```### Conversation Templates