Copilot: fix review button by conversion YAML server side (#4573)

This commit is contained in:
Stanislav Novosad
2026-01-28 16:30:28 -07:00
committed by GitHub
parent 9c2b4c690e
commit 6faca9c558
4 changed files with 169 additions and 92 deletions

View File

@@ -87,3 +87,12 @@ class WorkflowCopilotStreamResponseUpdate(BaseModel):
class WorkflowCopilotStreamErrorUpdate(BaseModel):
type: WorkflowCopilotStreamMessageType = Field(WorkflowCopilotStreamMessageType.ERROR, description="Message type")
error: str = Field(..., description="Error message")
class WorkflowYAMLConversionRequest(BaseModel):
workflow_definition_yaml: str = Field(..., description="Workflow definition YAML to convert to blocks")
workflow_id: str = Field(..., description="Workflow ID")
class WorkflowYAMLConversionResponse(BaseModel):
workflow_definition: dict = Field(..., description="Converted workflow definition with blocks")