Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export type PortfolioForNetwork = {

export enum StrategyRisk {
LOW = 'low',
MEDIUM = 'medium',
HIGH = 'high'
MODERATE = 'moderate',
HIGH = 'high',
OPPORTUNISTIC = 'opportunistic'
}

export type StrategyAction = {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/llm/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const strategySchema: Schema = {
type: SchemaType.STRING,
description: 'Risk level of the strategy',
nullable: false,
enum: ['low', 'medium', 'high']
enum: ['low', 'moderate', 'high', 'opportunistic']
},
actions: {
description: 'List of actions for the strategy',
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/llm/mockedAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function llmMockProcess({ prompt }: LlmProcessProps): Promise<LlmPr
}
],
name: 'DEX Liquidity Provision',
risk: StrategyRisk.MEDIUM
risk: StrategyRisk.MODERATE
},
{
actions: [
Expand Down
4 changes: 3 additions & 1 deletion lib/utils/llm/structures/zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const ActionZodSchema = z.object({

export const StrategyZodSchema = z.object({
name: z.string({ description: 'Name of the strategy' }),
risk: z.enum(['low', 'medium', 'high'], { description: 'Risk level of the strategy' }),
risk: z.enum(['low', 'moderate', 'high', 'opportunistic'], {
description: 'Risk level of the strategy'
}),
actions: z.array(ActionZodSchema, { description: 'List of actions for the strategy' })
})

Expand Down