fix: sync bridge HTTP tool deps and product timeout from test deployment
This commit is contained in:
+12
-2
@@ -7,6 +7,11 @@ const { createTools, resolveSiteProfile } = require('./tools');
|
||||
const { createIdentity } = require('./identity');
|
||||
const { createLibreDeskWebhook } = require('./libredesk-webhook');
|
||||
const { createAgent } = require('./agent');
|
||||
const { createLLM } = require('./llm');
|
||||
const { createReranker } = require('./reranker');
|
||||
const { createVerification } = require('./verification');
|
||||
const { createLibreDeskClient } = require('./libredesk');
|
||||
const { createRetriever } = require('./rag');
|
||||
const prom = require('./prom');
|
||||
const { ToolError } = require('./errors');
|
||||
|
||||
@@ -83,9 +88,14 @@ function contextFromHeaders(headers = {}) {
|
||||
function createServer(options = {}) {
|
||||
const cfg = options.config || loadConfig();
|
||||
const auther = createAuther(cfg.toolsSharedKey);
|
||||
const tools = options.tools || createTools(cfg);
|
||||
const verification = options.verification || createVerification(cfg);
|
||||
const client = options.client || createLibreDeskClient(cfg);
|
||||
const retriever = options.retriever || (cfg.ragPgUrl ? createRetriever(cfg) : null);
|
||||
const llm = options.llm || createLLM(cfg);
|
||||
const reranker = options.reranker || createReranker(llm);
|
||||
const tools = options.tools || createTools(cfg, { verification, retriever, client, reranker });
|
||||
const identity = options.identity || createIdentity(cfg);
|
||||
const agent = options.agent || createAgent(cfg);
|
||||
const agent = options.agent || createAgent(cfg, { verification, client, retriever, reranker, llm });
|
||||
const libredeskWebhook = options.libredeskWebhook || createLibreDeskWebhook(cfg, { agent });
|
||||
const byName = new Map(tools.map((t) => [t.name, t]));
|
||||
const startedAt = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user