File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,8 @@ local function run(args)
145145
146146 agent_id = token_data .agent or " " ,
147147 model = token_data .model or " " ,
148- init_func_id = token_data .init_func or nil ,
148+ init_function_id = token_data .start_func or nil ,
149+ init_function_params = token_data .start_params or nil ,
149150 }
150151
151152 local session_meta = {}
Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ local function run(args)
115115 })
116116 end
117117
118- if args . init_function then
118+ if session_data . config . init_function_id and session_data . config . init_function_id ~= " " then
119119 bus :queue_op ({
120120 type = consts .OP_TYPE .EXECUTE_FUNCTION ,
121- function_id = args . init_function . name ,
122- function_params = args . init_function . params
121+ function_id = session_data . config . init_function_id ,
122+ function_params = session_data . config . init_function_params ,
123123 })
124124 end
125125 end
@@ -261,4 +261,4 @@ local function run(args)
261261 return { status = " shutdown" , session_id = args .session_id }
262262end
263263
264- return { run = run }
264+ return { run = run }
You can’t perform that action at this time.
0 commit comments