mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
10 lines
322 B
Python
10 lines
322 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"""
|
||
|
type: Literal['prompt'] = 'prompt'
|
||
|
|
||
|
prompt: str = Field(default=None, description="The output prompt")
|