mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
15 lines
352 B
Python
15 lines
352 B
Python
from typing import Literal
|
|
|
|
from pydantic.fields import Field
|
|
|
|
from .baseinvocation import BaseInvocationOutput
|
|
|
|
|
|
class PromptOutput(BaseInvocationOutput):
|
|
"""Base class for invocations that output a prompt"""
|
|
#fmt: off
|
|
type: Literal["prompt"] = "prompt"
|
|
|
|
prompt: str = Field(default=None, description="The output prompt")
|
|
#fmt: on
|