UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
36 lines (35 loc) 1.93 kB
/** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { WebSearchResponse } from '../models/index'; export interface LiveWebSearchRequest { queries: Array<string>; lookback?: number; domains?: Array<string>; strict?: boolean; offset?: number; } /** * */ export declare class WebsearchApi extends runtime.BaseAPI { /** * Run a live websearch on a set of queries, get back a fully structured and LLM-distilled response (in addition to the raw text if you need that as well). Your response includes as_string and as_dicts, where as_string is a prompt-optimized distillation of the information, done by an LLM. as_dicts contains all the details necessary to feed into other parts of your application. * Run a live websearch. */ liveWebSearchRaw(requestParameters: LiveWebSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebSearchResponse>>; /** * Run a live websearch on a set of queries, get back a fully structured and LLM-distilled response (in addition to the raw text if you need that as well). Your response includes as_string and as_dicts, where as_string is a prompt-optimized distillation of the information, done by an LLM. as_dicts contains all the details necessary to feed into other parts of your application. * Run a live websearch. */ liveWebSearch(requestParameters: LiveWebSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebSearchResponse>; }