Skip to content

Commit

Permalink
Update lib or docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Dec 27, 2024
1 parent 86b99f9 commit f7f55ab
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { AgentFunction } from "graphai";
export declare const nodeBrowserDetectAgent: AgentFunction;
declare const retNodeBrowserDetectAgentInfo: {
name: string;
agent: AgentFunction<any, any, any>;
mock: AgentFunction<any, any, any>;
inputs?: any;
output?: any;
outputFormat?: any;
params?: any;
samples: import("graphai").AgentFunctionInfoSample[];
description: string;
category: string[];
author: string;
repository: string;
license: string;
cacheType?: import("graphai/lib/type").CacheTypes;
environmentVariables?: string[];
stream?: boolean;
apiKeys?: string[];
npms?: string[];
};
export default retNodeBrowserDetectAgentInfo;
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nodeBrowserDetectAgent = void 0;
const node_browser_detect_agent_info_1 = require("./node_browser_detect_agent_info");
const envConf = {
envType: "Node",
};
const envFunc = () => {
return { message: "isnode" };
};
const nodeBrowserDetectAgentBase = ({ params, namedInputs }) => {
return async (envConf, envFunc) => {
console.log(envConf);
console.log(envFunc());
return { params, namedInputs };
};
};
const nodeBrowserDetectAgent = async (context) => {
return await nodeBrowserDetectAgentBase(context)(envConf, envFunc);
};
exports.nodeBrowserDetectAgent = nodeBrowserDetectAgent;
const retNodeBrowserDetectAgentInfo = { ...node_browser_detect_agent_info_1.nodeBrowserDetectAgentInfo };
retNodeBrowserDetectAgentInfo.agent = exports.nodeBrowserDetectAgent;
exports.default = retNodeBrowserDetectAgentInfo;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { AgentFunction } from "graphai";
import { EnvConfig, EnvFunc } from "./type";
export declare const nodeBrowserDetectAgentGenerator: (isNode: boolean, envConf: EnvConfig, envFunc: EnvFunc) => AgentFunction;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nodeBrowserDetectAgentGenerator = void 0;
const nodeBrowserDetectAgentGenerator = (isNode, envConf, envFunc) => {
const nodeBrowserDetectAgent = async ({ params, namedInputs }) => {
console.log(isNode);
console.log(envConf);
console.log(envFunc());
return { params, namedInputs };
};
return nodeBrowserDetectAgent;
};
exports.nodeBrowserDetectAgentGenerator = nodeBrowserDetectAgentGenerator;

0 comments on commit f7f55ab

Please sign in to comment.