feat: implement supervisor agent with 3 sub-agents
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package agent
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"eino-test/config"
|
||||
|
||||
"github.com/cloudwego/eino-ext/components/model/openai"
|
||||
"github.com/cloudwego/eino/components/model"
|
||||
)
|
||||
|
||||
func NewChatModel(ctx context.Context, cfg *config.Config) (model.ToolCallingChatModel, error) {
|
||||
return openai.NewChatModel(ctx, &openai.ChatModelConfig{
|
||||
BaseURL: cfg.OpenAIBaseURL,
|
||||
APIKey: cfg.OpenAIAPIKey,
|
||||
Model: cfg.OpenAIModel,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user