File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const runAgent = async (messages) => {
1919
2020 // Response schema focused on actions
2121 const responseSchema = z . object ( {
22- message : z . string ( ) . describe ( "Agent's message to the user" ) ,
22+ message : z . string ( ) . describe ( "Agent's response message to the user" ) ,
2323 user_profile : z . string ( ) . describe (
2424 "Concise but comprehensive profile of the user in natural language. Always consider the full conversation and final context. Include:" +
2525 "\n- Current work and role" +
@@ -52,7 +52,7 @@ export const runAgent = async (messages) => {
5252 let agentPromptText = agentPrompt . promptMessages [ 0 ] . prompt . template ;
5353
5454 const aiResponse = await openai . chat . completions . create ( {
55- model : "o3-mini " ,
55+ model : "o1 " ,
5656 reasoning_effort : "medium" ,
5757 messages : [ { role : "system" , content : agentPromptText } , ...messages ] ,
5858 response_format : zodResponseFormat ( responseSchema , "response" ) ,
You can’t perform that action at this time.
0 commit comments