Skip to content

Commit 80d06c1

Browse files
Merge pull request #58 from daydreamsai/cot-refactor
chore: refactor COT for maintainability
2 parents a14dbcb + 6e6b69a commit 80d06c1

File tree

6 files changed

+407
-358
lines changed

6 files changed

+407
-358
lines changed

clients/example-ui/src/components/sidebar-right.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function SidebarRight({
110110
return (
111111
<Sidebar
112112
collapsible="none"
113-
className="sticky hidden lg:flex top-0 h-svh border "
113+
className="sticky hidden lg:flex top-0 h-svh border bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px] dark:bg-[radial-gradient(#1f2937_1px,transparent_1px)]"
114114
{...props}
115115
>
116116
<SidebarContent className="px-4 py-4">

clients/example-ui/src/routes/__root.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export const Route = createRootRoute({
1818
component: () => (
1919
<>
2020
<ThemeProvider>
21-
<SidebarProvider className="font-body">
22-
<AppSidebar />
23-
<SidebarInset>
24-
<header className="flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 border-t border-r">
21+
<SidebarProvider className="font-body ">
22+
<AppSidebar className="bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60" />
23+
<SidebarInset className="bg-transparent bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px] dark:bg-[radial-gradient(#1f2937_1px,transparent_1px)]">
24+
<header className="flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 border-t border-r bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
2525
<div className="flex items-center gap-2 px-4">
2626
<ModeToggle />
2727
<SidebarTrigger className="-ml-1" />
@@ -42,7 +42,7 @@ export const Route = createRootRoute({
4242
</header>
4343
<Outlet />
4444
</SidebarInset>
45-
<SidebarRight />
45+
<SidebarRight className="bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60" />
4646
</SidebarProvider>
4747
</ThemeProvider>
4848

examples/example-basic.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import chalk from "chalk";
1919
import { ChromaVectorDB } from "../packages/core/src/core/vector-db";
2020
import { z } from "zod";
2121
import { env } from "../packages/core/src/core/env";
22-
import { HandlerRole } from "../packages/core/src/core/types";
22+
import { HandlerRole, LogLevel } from "../packages/core/src/core/types";
2323

2424
/**
2525
* Helper function to get user input from CLI
@@ -71,9 +71,16 @@ async function main() {
7171
});
7272

7373
// Initialize the main reasoning engine
74-
const dreams = new ChainOfThought(llmClient, memory, {
75-
worldState: ETERNUM_CONTEXT,
76-
});
74+
const dreams = new ChainOfThought(
75+
llmClient,
76+
memory,
77+
{
78+
worldState: ETERNUM_CONTEXT,
79+
},
80+
{
81+
logLevel: LogLevel.DEBUG,
82+
}
83+
);
7784

7885
// Register available outputs
7986
dreams.registerOutput({

examples/example-goal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function printGoalStatus(status: GoalStatus): string {
5959
async function main() {
6060
// Initialize core components
6161
const llmClient = new LLMClient({
62-
model: "deepseek/deepseek-r1", // High performance model
62+
model: "openrouter:deepseek/deepseek-r1", // High performance model
6363
});
6464

6565
const starknetChain = new StarknetChain({

0 commit comments

Comments
 (0)