ResourcePromptContent class
Embedded resource content for a prompt message.
References a server-side resource directly in the prompt, allowing prompts to incorporate documentation, code samples, or other reference materials.
Example:
PromptMessage(
role: PromptRole.user,
content: ResourcePromptContent(
'resource://docs/api-reference',
'text/plain',
'API documentation content...',
),
)
- Inheritance
-
- Object
- PromptContent
- ResourcePromptContent
Constructors
- ResourcePromptContent(String uri, String mimeType, String text)
-
Creates resource content.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String
-
MIME type of the resource content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Text content of the resource.
final
- uri → String
-
URI of the resource.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited