@@ -58,39 +58,11 @@ class Tools {
5858 ? `${ finalPrompt } .Wallet address is ${ walletAddress } .`
5959 : finalPrompt ;
6060
61- // const response = await new AtomaSDK({bearerAuth:'bearer auth here'}).chat.create({
62- // messages: [
63- // {role:"assistant",content:promptWithAddr},
64- // { role: "user", content: query }
65- // ],
66- // model: "meta-llama/Llama-3.3-70B-Instruct"
67- // });
68-
6961 const response = await AtomaClass . atomaChat ( [
7062 { role : 'assistant' , content : promptWithAddr } ,
7163 { role : 'user' , content : query } ,
7264 ] ) ;
7365
74- // let r=await atomaChat(this.sdk,[
75- // {role:"assistant",content:promptWithAddr},
76- // { role: "user", content: query }
77- // ],)
78- // console.log(r,'this is the RRRRRR')
79- // console.log(result.choices)
80-
81- // const response = await atomaChat(this.sdk, [
82- // {
83- // content: promptWithAddr,
84- // role: 'assistant',
85- // },
86- // {
87- // content: query || '',
88- // role: 'user',
89- // },
90- // ]);
91- // console.log(response,'joop')
92- // console.log('response is from atoma chat tho')
93- // Handle the response based on the IntentAgentResponse interface
9466 if (
9567 response &&
9668 'choices' in response &&
0 commit comments