You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string} apiKey - Your Hyper API key. Generate one at https://app.gethyper.ai/settings/api-keys, save it in a `.env` file, and pass it to the constructor like `new Hyper(process.env.HYPER_API_KEY)`.
10
10
* @example
11
-
* const hyper = new Hyper('hyper_123...');
11
+
* import { Hyper } from 'hypercode';
12
+
* import dotenv from "dotenv";
13
+
*
14
+
* dotenv.config();
15
+
*
16
+
* const hyper = new Hyper(process.env.HYPER_API_KEY);
12
17
*/
13
18
exportclassHyper{
14
19
privatereadonlyheaders: Headers;
15
20
21
+
/**
22
+
* Hyper Types API. The `types` feature of the Developer API empowers you to retrieve structured data that is validated against specific data types. With the addition of a `contextId`, the API provides live, context-aware responses. More information: https://docs.gethyper.ai/types
23
+
* @example
24
+
* const { data, error } = await hyper.types.string('Who is the CEO of SpaceX?');
* Hyper Search API. Utilize our Embeddings Search API to perform nuanced searches across integrated third-party data sources and internal documents. Leverage the `contextId` to scope searches to specific business contexts for enhanced relevance. More information: https://docs.gethyper.ai/search
* Hyper Contexts API. Context groups in the Hyper app serve as collections of data aggregated from files, web URLs, and third-party integrations. They play a crucial role in refining search results and tailoring the contextual data provided to large language models. More information: https://docs.gethyper.ai/context
* @param {string} apiKey - Your Hyper API key. Generate one at https://app.gethyper.ai/settings/api-keys, save it in a `.env` file, and pass it to the constructor like `new Hyper(process.env.HYPER_API_KEY)`.
54
+
* @example
55
+
* import { Hyper } from 'hypercode';
56
+
* import dotenv from "dotenv";
57
+
*
58
+
* dotenv.config();
59
+
*
60
+
* const hyper = new Hyper(process.env.HYPER_API_KEY);
0 commit comments