mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-18 16:07:31 +08:00
Add autonomous world runtime
This commit is contained in:
@@ -120,6 +120,10 @@ func NewAgentManager(provider providers.LLMProvider, workspace string, bus *bus.
|
||||
return mgr
|
||||
}
|
||||
|
||||
func (sm *AgentManager) HasProvider() bool {
|
||||
return sm != nil && sm.provider != nil
|
||||
}
|
||||
|
||||
func (sm *AgentManager) Spawn(ctx context.Context, opts AgentSpawnOptions) (string, error) {
|
||||
task, err := sm.spawnTask(ctx, opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user