Skip to content

Commit

Permalink
feat(devops): add InputType,OutputType and GenLocalStateType in Graph… (
Browse files Browse the repository at this point in the history
#26)

feat(devops): add InputType,OutputType and GenLocalStateType in GraphSchema
  • Loading branch information
liujian-bytedance authored Jan 6, 2025
1 parent 0c38eea commit ed83839
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions devops/model/canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ type GraphSchema struct {
Branches []*Branch `json:"branches"`

// graph config option
NodeTriggerMode NodeTriggerMode `json:"node_trigger_mode"`
GenLocalStateMethod *string `json:"gen_local_state_method,omitempty"`
NodeTriggerMode NodeTriggerMode `json:"node_trigger_mode"`
GenLocalState *GenLocalState `json:"gen_local_state,omitempty"`
InputType string `json:"input_type"`
OutputType string `json:"output_type"`
}

type GenLocalState struct {
Method string `json:"method"`
OutputType string `json:"output_type"`
}

type Node struct {
Expand Down Expand Up @@ -101,8 +108,9 @@ type Branch struct {
}

type Condition struct {
Method string `json:"method"`
IsStream bool `json:"is_stream"`
Method string `json:"method"`
IsStream bool `json:"is_stream"`
InputType string `json:"input_type"`
}

type JsonType string
Expand Down

0 comments on commit ed83839

Please sign in to comment.