refactor(api): compose research services with narrow collaborators (CL28)
This commit is contained in:
parent
3a63b2039e
commit
24487d35da
28 changed files with 281 additions and 94 deletions
|
|
@ -18,7 +18,7 @@ import { createResearchAgentRoutes } from '../../apps/stock/web-api/src/routes/r
|
|||
import { createResearchRoutes } from '../../apps/stock/web-api/src/routes/research.routes';
|
||||
import { createStrategyRoutes } from '../../apps/stock/web-api/src/routes/strategies.routes';
|
||||
import { ResearchAgentsService } from '../../apps/stock/web-api/src/services/research-agents.service';
|
||||
import { ResearchService } from '../../apps/stock/web-api/src/services/research.service';
|
||||
import { createResearchServices } from '../../apps/stock/web-api/src/services/research-services';
|
||||
import {
|
||||
runResearchCycle,
|
||||
type ResearchCycleEvent,
|
||||
|
|
@ -91,7 +91,7 @@ async function fixture() {
|
|||
);
|
||||
const container = { postgres, logger };
|
||||
const agents = new ResearchAgentsService(container),
|
||||
research = new ResearchService(container);
|
||||
research = createResearchServices(container).research;
|
||||
const project = await research.createProject({ title: 'AI research acceptance' }, 'operator');
|
||||
const provisioned = await agents.create({
|
||||
name: 'Workflow researcher',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue