mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
feat(ui/agents): add /agents/[agent_id] route page
Per-agent landing page. Resolves auth via useAuthorized and passes the agent_id param to AgentDetail.
This commit is contained in:
parent
fbe22ea796
commit
f990d6a1b7
1 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
"use client";
|
||||
|
||||
/**
|
||||
* /agents/{agent_id} — per-agent landing page.
|
||||
*
|
||||
* Shows the agent's identity, system prompt, and sessions list. + New
|
||||
* Session opens the create dialog and redirects into the three-pane view.
|
||||
*/
|
||||
import { use } from "react";
|
||||
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
|
||||
import AgentDetail from "@/app/(dashboard)/agents/components/agent-detail";
|
||||
|
||||
interface PageProps {
|
||||
params: Promise<{ agent_id: string }>;
|
||||
}
|
||||
|
||||
export default function AgentDetailPage({ params }: PageProps) {
|
||||
const { agent_id } = use(params);
|
||||
const { accessToken } = useAuthorized();
|
||||
return <AgentDetail agentId={agent_id} accessToken={accessToken} />;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue