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 29771d6 commit e203c2cCopy full SHA for e203c2c
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