Ассистент: API памяти, сессии и истории агентов; предложение по инструментам разбора; принцип про зависимые работы
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import Fastify, { type FastifyInstance } from "fastify";
|
||||
import type { Pool } from "khb_common";
|
||||
import { registerAgentRoutes } from "./agents-api.js";
|
||||
import type { PrepJob, PrepResult } from "./jobs.js";
|
||||
|
||||
export interface ChatApi {
|
||||
@@ -37,6 +38,8 @@ export function buildApi(deps: PrepApiDeps): FastifyInstance {
|
||||
if (req.headers.authorization !== `Bearer ${deps.token}`) return reply.code(401).send({ error: "unauthorized" });
|
||||
});
|
||||
|
||||
registerAgentRoutes(app, deps.pool);
|
||||
|
||||
app.get("/healthz", async () => {
|
||||
let db = false;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user