mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-05-05 03:04:56 +00:00
f129c8eeb8
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
10 lines
270 B
Python
10 lines
270 B
Python
"""Workflow plugin: write prompt."""
|
|
from ....web.data.prompt import write_prompt
|
|
|
|
|
|
def run(_runtime, inputs):
|
|
"""Write prompt content to file."""
|
|
content = inputs.get("content", "")
|
|
write_prompt(content)
|
|
return {"result": "Prompt written successfully"}
|