(workDir string)
| 147 | } |
| 148 | |
| 149 | func createDependencies(workDir string) *agent.Dependencies { |
| 150 | // Create store |
| 151 | dataStore, _ := store.NewJSONStore(workDir) |
| 152 | |
| 153 | // Create sandbox factory |
| 154 | sandboxFactory := sandbox.NewFactory() |
| 155 | |
| 156 | // Create tool registry |
| 157 | toolRegistry := tools.NewRegistry() |
| 158 | builtin.RegisterAll(toolRegistry) |
| 159 | |
| 160 | // Create provider factory |
| 161 | providerFactory := provider.NewMultiProviderFactory() |
| 162 | |
| 163 | return &agent.Dependencies{ |
| 164 | Store: dataStore, |
| 165 | SandboxFactory: sandboxFactory, |
| 166 | ToolRegistry: toolRegistry, |
| 167 | ProviderFactory: providerFactory, |
| 168 | } |
| 169 | } |
no test coverage detected