added response object
This commit is contained in:
parent
1419341e64
commit
4631eee074
|
@ -112,6 +112,12 @@ type ResponseConfig struct {
|
|||
Template string `json:"template" yaml:"template"`
|
||||
Type string `json:"type" yaml:"type"`
|
||||
ShouldStream bool `json:"shouldStream" yaml:"shouldStream"`
|
||||
Object ResponseObject `json:"responseObject" yaml:"responseObject"`
|
||||
}
|
||||
|
||||
type ResponseObject struct {
|
||||
Value string `json:"value" yaml:"value"`
|
||||
Fields []ResponseObject `json:"fields" yaml:"fields"`
|
||||
}
|
||||
|
||||
type DatasourceConfig struct {
|
||||
|
|
|
@ -2,6 +2,8 @@ package apiconfig
|
|||
|
||||
import "git.servflow.io/servflow/definitions/proto"
|
||||
|
||||
// TODO add check for nil mcp
|
||||
|
||||
func ProtoConfigToAPIConfig(configs []*proto.WorkflowConfig) []*APIConfig {
|
||||
cfgs := make([]*APIConfig, 0)
|
||||
for i := range configs {
|
||||
|
|
Loading…
Reference in New Issue