restructured answers a bit
This commit is contained in:
17
pkg/toolbox/context.go
Normal file
17
pkg/toolbox/context.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package toolbox
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/tmc/langchaingo/llms"
|
||||
)
|
||||
|
||||
type Context interface {
|
||||
context.Context
|
||||
|
||||
WithCancel() (Context, func())
|
||||
WithTimeout(time.Duration) (Context, func())
|
||||
WithMessages([]llms.MessageContent) Context
|
||||
GetMessages() []llms.MessageContent
|
||||
}
|
||||
Reference in New Issue
Block a user