We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99767c2 commit f067645Copy full SHA for f067645
pydantic_ai_slim/pydantic_ai/mcp.py
@@ -204,7 +204,7 @@ def server_info(self) -> mcp_types.Implementation:
204
@property
205
def instructions(self) -> str | None:
206
"""Access the instructions sent by the MCP server during initialization."""
207
- if getattr(self, '_server_info', None) is None:
+ if getattr(self, '_instructions', None) is None:
208
raise AttributeError(
209
f'The `{self.__class__.__name__}.instructions` is only available after initialization.'
210
)
0 commit comments