Skip to content

Commit 15c1bb6

Browse files
committed
major refactor
1 parent 8f9d72e commit 15c1bb6

File tree

19 files changed

+745
-611
lines changed

19 files changed

+745
-611
lines changed

apps/client/app/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default function Home() {
3838

3939
console.log(modifiedMessage, 'modified');
4040
const response = await api.post('/query', { query: modifiedMessage });
41+
console.log(response);
4142
const res = response.data[0];
4243
console.log(res);
4344
let llmResponse = '';

apps/web/src/routes/v1/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const handleQuery = async (req: Request, res: Response): Promise<void> => {
2020
});
2121
return;
2222
}
23-
// TODO: Implement query handling with sui-agent
23+
2424
const result = await suiAgent.SuperVisorAgent(query);
2525
res.status(200).json(result);
2626
} catch (error) {

packages/sui-agent/src/agents/SuiAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Agents {
3333
async IntentAgent(prompt: string) {
3434
const IntentResponse: IntentAgentResponse =
3535
(await this.tools.selectAppropriateTool(prompt)) as IntentAgentResponse;
36+
3637
return IntentResponse;
3738
}
3839

0 commit comments

Comments
 (0)