return metadatas and conversations in job results. Consume them in Slack connector to use attachments in responses
This commit is contained in:
@@ -23,10 +23,11 @@ type Job struct {
|
||||
type JobResult struct {
|
||||
sync.Mutex
|
||||
// The result of a job
|
||||
State []ActionState
|
||||
Response string
|
||||
Error error
|
||||
ready chan bool
|
||||
State []ActionState
|
||||
Conversation []openai.ChatCompletionMessage
|
||||
Response string
|
||||
Error error
|
||||
ready chan bool
|
||||
}
|
||||
|
||||
type JobOption func(*Job)
|
||||
|
||||
Reference in New Issue
Block a user