mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-22 07:56:48 +00:00
feat: prose completion api
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
from langgraph.graph import MessagesState
|
||||
|
||||
|
||||
class ProseState(MessagesState):
|
||||
"""State for the prose generation."""
|
||||
|
||||
# The content of the prose
|
||||
content: str = ""
|
||||
|
||||
# Prose writer option: continue, improve, shorter, longer, fix, zap
|
||||
option: str = ""
|
||||
|
||||
# The user custom command for the prose writer
|
||||
command: str = ""
|
||||
|
||||
# Output
|
||||
output: str = ""
|
||||
Reference in New Issue
Block a user