mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 03:16:29 +02:00
Refactor agents api integration
This commit is contained in:
parent
0e31098d58
commit
a02c830fb0
14 changed files with 131 additions and 1121 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { Metadata } from "next";
|
||||
import { App } from "./app";
|
||||
import { USE_RAG } from "@/app/lib/feature_flags";
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
import { projectsCollection } from "@/app/lib/mongodb";
|
||||
import { notFound } from "next/navigation";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Workflow"
|
||||
|
|
@ -13,8 +13,18 @@ export default async function Page({
|
|||
}: {
|
||||
params: { projectId: string };
|
||||
}) {
|
||||
const project = await projectsCollection.findOne({
|
||||
_id: params.projectId,
|
||||
});
|
||||
if (!project) {
|
||||
notFound();
|
||||
}
|
||||
const toolWebhookUrl = project.webhookUrl ?? '';
|
||||
|
||||
return <App
|
||||
projectId={params.projectId}
|
||||
useRag={USE_RAG}
|
||||
mcpServerUrls={project.mcpServers ?? []}
|
||||
toolWebhookUrl={toolWebhookUrl}
|
||||
/>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue