File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/[locale]/agents/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ export default function AgentSetupOrchestrator({
515515 [ updatedTool . id ] :
516516 updatedTool . initParams ?. map ( ( param ) => ( { ...param } ) ) || [ ] ,
517517 } ) ) ;
518- setSelectedTools ( ( prev ) => {
518+ setSelectedTools ( ( prev : Tool [ ] ) => {
519519 if ( ! prev || prev . length === 0 ) {
520520 return prev ;
521521 }
Original file line number Diff line number Diff line change 11// Agent Configuration Types
2+ import type { Dispatch , SetStateAction } from "react" ;
3+
24import { ChatMessageType } from "./chat" ;
35import { ModelOption } from "@/types/modelConfig" ;
46import { GENERATE_PROMPT_STREAM_TYPES } from "../const/agentConfig" ;
@@ -90,7 +92,7 @@ export interface AgentSetupOrchestratorProps {
9092 setBusinessLogic : ( value : string ) => void ;
9193 businessLogicError ?: boolean ;
9294 selectedTools : Tool [ ] ;
93- setSelectedTools : ( tools : Tool [ ] ) => void ;
95+ setSelectedTools : Dispatch < SetStateAction < Tool [ ] > > ;
9496 isCreatingNewAgent : boolean ;
9597 setIsCreatingNewAgent : ( value : boolean ) => void ;
9698 mainAgentModel : string | null ;
You canβt perform that action at this time.
0 commit comments