diff --git a/examples/ag-ui-research/frontend/components/Agent.tsx b/examples/ag-ui-research/frontend/components/Agent.tsx index a7902872..2b77934a 100644 --- a/examples/ag-ui-research/frontend/components/Agent.tsx +++ b/examples/ag-ui-research/frontend/components/Agent.tsx @@ -5,7 +5,7 @@ import { useCoAgent, useCoAgentStateRender, } from "@copilotkit/react-core"; -import { CopilotSidebar } from "@copilotkit/react-ui"; +import { CopilotChat } from "@copilotkit/react-ui"; import "@copilotkit/react-ui/styles.css"; import StateDisplay from "./StateDisplay"; @@ -113,57 +113,69 @@ function AgentContent() { }); return ( -
-
+ <> + +
+ {/* Chat on the left */} +
+ +
+ + {/* State display on the right */}
-
-

- Haiku.rag Research Assistant -

-

- Interactive research powered by Haiku.rag,{" "} - Pydantic AI, and AG-UI -

-
+
+
+

+ Research State +

+

+ Live updates from the research agent +

+
- + +
- - -
+ ); } diff --git a/examples/ag-ui-research/frontend/components/StateDisplay.tsx b/examples/ag-ui-research/frontend/components/StateDisplay.tsx index 686ec3e8..eb822463 100644 --- a/examples/ag-ui-research/frontend/components/StateDisplay.tsx +++ b/examples/ag-ui-research/frontend/components/StateDisplay.tsx @@ -72,26 +72,20 @@ export default function StateDisplay({ state }: StateDisplayProps) { return (
-

- Research State -

- - {/* Phase Progress */} -
0 && (
0 && ( -
+