fastmcp.prompts.prompt
Base classes for FastMCP prompts.
Functions
Message
Classes
PromptArgument
An argument that can be passed to a prompt.
Prompt
A prompt template that can be rendered with parameters.
Methods:
enable
disable
to_mcp_prompt
from_function
- A string (converted to a message)
- A Message object
- A dict (converted to a message)
- A sequence of any of the above
render
FunctionPrompt
A prompt that is a function.
Methods:
from_function
- A string (converted to a message)
- A Message object
- A dict (converted to a message)
- A sequence of any of the above