alberdjuniawan commited on
Commit
a5fa684
·
1 Parent(s): a514fc3

update param for Evaluate and ProcessAudio with schema dynamic by user

Browse files
Files changed (1) hide show
  1. service/interfaces.go +2 -2
service/interfaces.go CHANGED
@@ -12,10 +12,10 @@ type STTService interface {
12
  }
13
 
14
  type EvaluatorService interface {
15
- Evaluate(ctx context.Context, transcript string) (*model.CoreOutputFormat, error)
16
  }
17
 
18
  type AIService interface {
19
- ProcessAudio(ctx context.Context, audio []byte) (*model.CoreOutputFormat, error)
20
  ProcessTranscriptLive(ctx context.Context, transcript string) (*model.CoreOutputFormat, error)
21
  }
 
12
  }
13
 
14
  type EvaluatorService interface {
15
+ Evaluate(ctx context.Context, transcript string, schema map[string]interface{}) (*model.CoreOutputFormat, error)
16
  }
17
 
18
  type AIService interface {
19
+ ProcessAudio(ctx context.Context, audio []byte, schema map[string]interface{}) (*model.CoreOutputFormat, error)
20
  ProcessTranscriptLive(ctx context.Context, transcript string) (*model.CoreOutputFormat, error)
21
  }