github.com/instill-ai/component@v0.16.0-beta/pkg/connector/instill/v0/unspecified.go (about)

     1  package instill
     2  
     3  import (
     4  	"fmt"
     5  
     6  	modelPB "github.com/instill-ai/protogen-go/model/model/v1alpha"
     7  	"google.golang.org/protobuf/types/known/structpb"
     8  )
     9  
    10  func (e *execution) executeUnspecified(grpcClient modelPB.ModelPublicServiceClient, modelName string, inputs []*structpb.Struct) ([]*structpb.Struct, error) {
    11  	if len(inputs) <= 0 {
    12  		return nil, fmt.Errorf("invalid input: %v for model: %s", inputs, modelName)
    13  	}
    14  	//TODO: figure out what to do here?
    15  	/*
    16  		modelInput := &modelPB.TaskInput_Unspecified{
    17  			Unspecified: &modelPB.UnspecifiedInput{
    18  				RawInputs: []*structpb.Struct{},
    19  			},
    20  		}
    21  	*/
    22  	return inputs, nil
    23  }