Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor COT for maintainability #58

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/example-ui/src/components/sidebar-right.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function SidebarRight({
return (
<Sidebar
collapsible="none"
className="sticky hidden lg:flex top-0 h-svh border "
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)]"
{...props}
>
<SidebarContent className="px-4 py-4">
Expand Down
10 changes: 5 additions & 5 deletions clients/example-ui/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const Route = createRootRoute({
component: () => (
<>
<ThemeProvider>
<SidebarProvider className="font-body">
<AppSidebar />
<SidebarInset>
<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">
<SidebarProvider className="font-body ">
<AppSidebar className="bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60" />
<SidebarInset className="bg-transparent bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px] dark:bg-[radial-gradient(#1f2937_1px,transparent_1px)]">
<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">
<div className="flex items-center gap-2 px-4">
<ModeToggle />
<SidebarTrigger className="-ml-1" />
Expand All @@ -42,7 +42,7 @@ export const Route = createRootRoute({
</header>
<Outlet />
</SidebarInset>
<SidebarRight />
<SidebarRight className="bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60" />
</SidebarProvider>
</ThemeProvider>

Expand Down
15 changes: 11 additions & 4 deletions examples/example-basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import chalk from "chalk";
import { ChromaVectorDB } from "../packages/core/src/core/vector-db";
import { z } from "zod";
import { env } from "../packages/core/src/core/env";
import { HandlerRole } from "../packages/core/src/core/types";
import { HandlerRole, LogLevel } from "../packages/core/src/core/types";

/**
* Helper function to get user input from CLI
Expand Down Expand Up @@ -71,9 +71,16 @@ async function main() {
});

// Initialize the main reasoning engine
const dreams = new ChainOfThought(llmClient, memory, {
worldState: ETERNUM_CONTEXT,
});
const dreams = new ChainOfThought(
llmClient,
memory,
{
worldState: ETERNUM_CONTEXT,
},
{
logLevel: LogLevel.DEBUG,
}
);

// Register available outputs
dreams.registerOutput({
Expand Down
2 changes: 1 addition & 1 deletion examples/example-goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function printGoalStatus(status: GoalStatus): string {
async function main() {
// Initialize core components
const llmClient = new LLMClient({
model: "deepseek/deepseek-r1", // High performance model
model: "openrouter:deepseek/deepseek-r1", // High performance model
});

const starknetChain = new StarknetChain({
Expand Down
Loading
Loading