Skip to content

Commit

Permalink
Modified app/hooks/useAIAssistant.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
birdup000 committed Dec 26, 2024
1 parent de560bb commit 9f3165d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/hooks/useAIAssistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ export const useAIAssistant = ({ backendUrl, authToken }: UseAIAssistantProps) =
- priority: "low", "medium", or "high"
- estimatedTime: Estimated time to complete in minutes`;

const result = await agixt.runChain(
const result = await agixt.runChain(
'Task Suggestions',
prompt,
selectedAgent,
false,
1,
{ conversation_name: `task_suggestions_${Date.now()}` }
);

Expand Down Expand Up @@ -68,12 +66,10 @@ export const useAIAssistant = ({ backendUrl, authToken }: UseAIAssistantProps) =
Format your response as a JSON array of task IDs in the optimal order.`;

const result = await agixt.runChain(
const result = await agixt.runChain(
'Task Optimization',
prompt,
selectedAgent,
false,
1,
{ conversation_name: `task_optimization_${Date.now()}` }
);

Expand Down Expand Up @@ -113,12 +109,10 @@ export const useAIAssistant = ({ backendUrl, authToken }: UseAIAssistantProps) =
- recommendations: Array of recommendations to move forward
- estimatedTimeToCompletion: Number of minutes estimated to complete`;

const result = await agixt.runChain(
const result = await agixt.runChain(
'Task Analysis',
prompt,
selectedAgent,
false,
1,
{ conversation_name: `task_analysis_${Date.now()}` }
);

Expand Down

0 comments on commit 9f3165d

Please sign in to comment.