Skip to content

Commit 4a0df6b

Browse files
Mary Hippmaryhipp
authored andcommitted
add optional output_metadata to baseinvocation
1 parent ba16557 commit 4a0df6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

invokeai/app/invocations/baseinvocation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ def invoke_internal(self, context: InvocationContext, services: "InvocationServi
235235
json_schema_extra={"field_kind": FieldKind.NodeAttribute},
236236
)
237237

238+
output_metadata: Optional[dict[str, Any]] = Field(
239+
default=None,
240+
description="Optional metadata dictionary for the invocation",
241+
json_schema_extra={"field_kind": FieldKind.NodeAttribute},
242+
)
243+
238244
UIConfig: ClassVar[UIConfigBase]
239245

240246
model_config = ConfigDict(
@@ -354,6 +360,7 @@ def get_output_types(cls) -> Iterable[str]:
354360
"use_cache",
355361
"type",
356362
"workflow",
363+
"output_metadata",
357364
}
358365

359366
RESERVED_INPUT_FIELD_NAMES = {"metadata", "board"}

0 commit comments

Comments
 (0)