UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
112 lines (111 loc) 3.73 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.66 * 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 type { MCPFilterParams } from './MCPFilterParams'; import type { Sources2 } from './Sources2'; import type { DeepNewsModel } from './DeepNewsModel'; /** * Parameters for DeepNews alert source. * * DeepNews performs deep research using multiple tools. * @export * @interface DeepNewsSourceParams */ export interface DeepNewsSourceParams { /** * * @type {Sources2} * @memberof DeepNewsSourceParams */ sources?: Sources2; /** * * @type {MCPFilterParams} * @memberof DeepNewsSourceParams */ filterParams?: MCPFilterParams | null; /** * Whether to provide extracted entities to the agent. Defaults to True. * @type {boolean} * @memberof DeepNewsSourceParams */ includeEntities?: boolean; /** * Whether to provide knowledge graphs to the agent. Defaults to False. * @type {boolean} * @memberof DeepNewsSourceParams */ includeGraphs?: boolean; /** * Whether to provide geo coordinates to the agent. Defaults to False. * @type {boolean} * @memberof DeepNewsSourceParams */ includeCoordinates?: boolean; /** * Legacy vs new DeepNews engine * @type {string} * @memberof DeepNewsSourceParams */ engine?: DeepNewsSourceParamsEngineEnum; /** * The number of tool calls the agent can run in parallel. * @type {number} * @memberof DeepNewsSourceParams */ maxParallelToolCalls?: number; /** * Whether to enable source pruning, which removes sources that are deemed irrelevant to the final report. This can help reduce noise in the sources and improve the quality of the report, but may also remove some relevant sources if not used carefully. * @type {boolean} * @memberof DeepNewsSourceParams */ enableSourcePruning?: boolean; /** * * @type {Date} * @memberof DeepNewsSourceParams */ cutoffDatetime?: Date | null; /** * * @type {DeepNewsModel} * @memberof DeepNewsSourceParams */ model?: DeepNewsModel | null; /** * The search depth for deep research. Higher values mean more thorough research. Defaults to 1. * @type {number} * @memberof DeepNewsSourceParams */ searchDepth?: number; /** * The maximum research depth allowed. Defaults to 4. * @type {number} * @memberof DeepNewsSourceParams */ maxDepth?: number; } /** * @export */ export declare const DeepNewsSourceParamsEngineEnum: { readonly V1: "v1"; readonly V15: "v1.5"; }; export type DeepNewsSourceParamsEngineEnum = typeof DeepNewsSourceParamsEngineEnum[keyof typeof DeepNewsSourceParamsEngineEnum]; /** * Check if a given object implements the DeepNewsSourceParams interface. */ export declare function instanceOfDeepNewsSourceParams(value: object): value is DeepNewsSourceParams; export declare function DeepNewsSourceParamsFromJSON(json: any): DeepNewsSourceParams; export declare function DeepNewsSourceParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeepNewsSourceParams; export declare function DeepNewsSourceParamsToJSON(json: any): DeepNewsSourceParams; export declare function DeepNewsSourceParamsToJSONTyped(value?: DeepNewsSourceParams | null, ignoreDiscriminator?: boolean): any;