gateway: add /tools/invoke HTTP endpoint
This commit is contained in:
1 parent
7f7550e53c
commit
f1083cd52c
3 files changed
+262
No files matched your search
@@ -29,6 +29,7 @@ import {
|
||||
import { applyHookMappings } from "./hooks-mapping.js";
|
||||
import { handleOpenAiHttpRequest } from "./openai-http.js";
|
||||
import { handleOpenResponsesHttpRequest } from "./openresponses-http.js";
|
||||
import { handleToolsInvokeHttpRequest } from "./tools-invoke-http.js";
|
||||
|
||||
type SubsystemLogger = ReturnType<typeof createSubsystemLogger>;
|
||||
|
||||
@@ -229,6 +230,7 @@ export function createGatewayHttpServer(opts: {
|
||||
if (await handleHooksRequest(req, res)) return;
|
||||
if (await handleSlackHttpRequest(req, res)) return;
|
||||
if (handlePluginRequest && (await handlePluginRequest(req, res))) return;
|
||||
if (await handleToolsInvokeHttpRequest(req, res, { auth: resolvedAuth })) return;
|
||||
if (openResponsesEnabled) {
|
||||
if (
|
||||
await handleOpenResponsesHttpRequest(req, res, {
|
||||
|
||||
Reference in new issue
Block a user