Ajout de SEARXNG pour les recherches web
This commit is contained in:
1 parent
87eeb41364
commit
345129c7bf
30 files changed
+919
-166
No files matched your search
@@ -66,11 +66,19 @@ type ChatParams struct {
|
||||
OnChunk StreamCallback
|
||||
}
|
||||
|
||||
type Tool interface {
|
||||
type ToolParam struct {
|
||||
JsonName string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Description string `json:"description"`
|
||||
Mandatory bool `json:"mandatory"`
|
||||
}
|
||||
|
||||
type ITool interface {
|
||||
Name() string
|
||||
Description() string
|
||||
Params() []ToolParam
|
||||
Definition(ctx context.Context) *ToolDefinition
|
||||
Execute(ctx context.Context, input []byte) ([]byte, error)
|
||||
Execute(ctx context.Context, input []byte, configuration string) ([]byte, error)
|
||||
}
|
||||
|
||||
type ToolDefinition struct {
|
||||
|
||||
Reference in new issue
Block a user