feat: prose completion api

This commit is contained in:
Jiang Feng
2025-04-26 23:12:13 +08:00
parent ba8c5fbcd3
commit 66794a4b73
16 changed files with 395 additions and 32 deletions
+20
View File
@@ -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 = ""