feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -1,8 +1,12 @@
|
|||
import { z } from 'zod';
|
||||
import { isResearchActor, type ResearchActor } from '@stock-bot/types';
|
||||
import { assertStrategyJsonText } from './strategy';
|
||||
|
||||
export const researchIdSchema = z.string().uuid();
|
||||
export const researchActorSchema = z.enum(['operator', 'service']);
|
||||
export const researchActorSchema = z.custom<ResearchActor>(
|
||||
isResearchActor,
|
||||
'Invalid research actor'
|
||||
);
|
||||
const origin = z.enum(['human', 'ai', 'unknown']).optional();
|
||||
const title = z.string().trim().min(1);
|
||||
const ordinal = z.number().int().positive().max(2147483647);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue