@receptron/graphai_express 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/express.d.ts +14 -0
- package/lib/express.js +1 -0
- package/package.json +1 -1
package/lib/express.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import express from "./express";
|
|
2
2
|
import type { AgentFunctionInfoDictionary, AgentFilterInfo } from "graphai";
|
|
3
|
+
export type ExpressAgentInfo = {
|
|
4
|
+
agentId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
description: string;
|
|
8
|
+
category: string[];
|
|
9
|
+
author: string;
|
|
10
|
+
license: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
samples: any;
|
|
13
|
+
inputs: any;
|
|
14
|
+
output: any;
|
|
15
|
+
stream: boolean;
|
|
16
|
+
};
|
|
3
17
|
export declare const agentsList: (agentDictionary: AgentFunctionInfoDictionary, hostName?: string, urlPath?: string) => (req: express.Request, res: express.Response) => Promise<void>;
|
|
4
18
|
export declare const agentDoc: (agentDictionary: AgentFunctionInfoDictionary, hostName?: string, urlPath?: string) => (req: express.Request, res: express.Response) => Promise<void>;
|
|
5
19
|
export declare const agentDispatcher: (agentDictionary: AgentFunctionInfoDictionary, agentFilters?: AgentFilterInfo[]) => (req: express.Request, res: express.Response, next: express.NextFunction) => Promise<express.Response<any, Record<string, any>> | undefined>;
|
package/lib/express.js
CHANGED