mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
# What does this PR do? - Introduces the Agent Session creation for the Playground and allows users to set tools - note tools are actually not usable yet and this is marked explicitly - this also caches sessions locally for faster loading on the UI and deletes them appropriately - allows users to easily create new sessions as well - Moved Model Configuration settings and "System Message" / Prompt to the left component - Added new logo and favicon - Added new typing animation when LLM is generating ### Create New Session <img width="1916" height="1393" alt="Screenshot 2025-08-21 at 4 18 08 PM" src="https://github.com/user-attachments/assets/52c70ae3-a33e-4338-8522-8184c692c320" /> ### List of Sessions <img width="1920" height="1391" alt="Screenshot 2025-08-21 at 4 18 56 PM" src="https://github.com/user-attachments/assets/ed78c3c6-08ec-486c-8bad-9b7382c11360" /> <!-- If resolving an issue, uncomment and update the line below --> <!-- Closes #[issue-number] --> ## Test Plan Unit tests added --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
63 lines
2 KiB
TypeScript
63 lines
2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { ThemeProvider } from "@/components/ui/theme-provider";
|
|
import { SessionProvider } from "@/components/providers/session-provider";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { ModeToggle } from "@/components/ui/mode-toggle";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Llama Stack",
|
|
description: "Llama Stack UI",
|
|
icons: {
|
|
icon: "/favicon.ico",
|
|
},
|
|
};
|
|
|
|
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";
|
|
import { AppSidebar } from "@/components/layout/app-sidebar";
|
|
import { SignInButton } from "@/components/ui/sign-in-button";
|
|
|
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`${geistSans.variable} ${geistMono.variable} font-sans`}>
|
|
<SessionProvider>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<SidebarProvider>
|
|
<AppSidebar />
|
|
<main className="flex flex-col flex-1">
|
|
{/* Header with aligned elements */}
|
|
<div className="flex items-center p-4 border-b">
|
|
<div className="flex-none">
|
|
<SidebarTrigger />
|
|
</div>
|
|
<div className="flex-1 text-center"></div>
|
|
<div className="flex-none flex items-center gap-2">
|
|
<SignInButton />
|
|
<ModeToggle />
|
|
</div>
|
|
</div>
|
|
<div className="flex flex-col flex-1 p-4">{children}</div>
|
|
</main>
|
|
</SidebarProvider>
|
|
</ThemeProvider>
|
|
</SessionProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|