PromptParameter
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseModel pydantic.main !!! abstract "Usage Documentation" |
⋔ Inheritance diagram¶
graph TD
3827621403["models.PromptParameter"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3879467795 --> 3827621403
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseModel
Prompt argument with validation information.
Source code in src/llmling/prompts/models.py
completion_function
class-attribute
instance-attribute
¶
Optional function to provide argument completions.
default
class-attribute
instance-attribute
¶
Default value if argument is optional.
description
class-attribute
instance-attribute
¶
Human-readable description of the argument.
required
class-attribute
instance-attribute
¶
Whether this argument must be provided when formatting the prompt.
type_hint
class-attribute
instance-attribute
¶
Type annotation for the argument, defaults to str.
to_mcp_argument
¶
Convert to MCP PromptArgument.