exa-js 2.18.0 → 2.19.0

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ZodSchema } from 'zod';
1
+ import { ZodSchema, z } from 'zod';
2
2
 
3
3
  /**
4
4
  * Types for the Exa Agent API.
@@ -18,7 +18,7 @@ interface AgentBetaOptions {
18
18
  betas?: string[];
19
19
  }
20
20
  type AgentRunStatus = "queued" | "running" | "completed" | "failed" | "cancelled";
21
- type AgentStopReason = "schema_satisfied" | "budget_reached" | "error" | "cancelled";
21
+ type AgentStopReason = "schema_satisfied" | "budget_reached" | "stopped" | "error" | "cancelled";
22
22
  type AgentConfidence = "low" | "medium" | "high";
23
23
  type AgentEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | "auto" | "max";
24
24
  /** Per-run spend ceiling for the metered `auto` and `max` efforts. */
@@ -192,8 +192,8 @@ interface AgentMonitorsBetaOptions {
192
192
  }
193
193
  type AgentMonitorStatus = "creating" | "pending_first_refresh" | "active";
194
194
  type AgentMonitorFieldMode = "static" | "dynamic";
195
- /** @deprecated Renamed to {@link AgentMonitorFieldMode}. */
196
- type AgentMonitorFieldType = AgentMonitorFieldMode;
195
+ /** The type of a field's cell values. */
196
+ type AgentMonitorFieldValueType = "string" | "number" | "boolean" | "date" | "url" | "email" | "phone";
197
197
  /**
198
198
  * A field the monitor keeps fresh for every entity. Fields are dynamic
199
199
  * (tracked from news on every refresh) unless declared `mode: "static"`
@@ -203,9 +203,10 @@ interface AgentMonitorField {
203
203
  id: string;
204
204
  name: string;
205
205
  description: string;
206
+ /** @deprecated The static/dynamic knob is becoming internal-only. */
206
207
  mode: AgentMonitorFieldMode;
207
- /** @deprecated Renamed to `mode`; echoes the same value until removed. */
208
- type: AgentMonitorFieldMode;
208
+ /** The type of the field's cell values. */
209
+ type: AgentMonitorFieldValueType;
209
210
  }
210
211
  /** An entity tracked by the monitor. */
211
212
  interface AgentMonitorEntity {
@@ -214,10 +215,17 @@ interface AgentMonitorEntity {
214
215
  domain?: string;
215
216
  canonicalEntityId?: string;
216
217
  }
218
+ /** One grounding citation for a cell value; the Agent API's citation shape. */
219
+ interface AgentMonitorCitation {
220
+ url: string;
221
+ title?: string;
222
+ note?: string;
223
+ }
217
224
  /** One cell value: a field's current content for an entity. */
218
225
  interface AgentMonitorContent {
219
226
  value: unknown;
220
- sourceUrls?: string[];
227
+ /** Grounding for the value, in the Agent API's citation shape. */
228
+ citations?: AgentMonitorCitation[];
221
229
  updatedAt: string;
222
230
  }
223
231
  /** Refresh progress on the monitor object; `idle` outside an active refresh. */
@@ -303,9 +311,16 @@ interface CreateAgentMonitorEntityParams {
303
311
  interface CreateAgentMonitorFieldParams {
304
312
  name: string;
305
313
  description: string;
314
+ /**
315
+ * The type of the field's cell values; defaults to `"string"`. Cell values
316
+ * are normalized to the declared type best-effort on write, never rejected
317
+ * — but declaring an unsupported type (e.g. `"object"`) is a 400.
318
+ * `"static"`/`"dynamic"` are accepted as deprecated aliases of `mode`;
319
+ * declaring both spellings is a 400.
320
+ */
321
+ type?: AgentMonitorFieldValueType | AgentMonitorFieldMode;
322
+ /** @deprecated The static/dynamic knob is becoming internal-only. */
306
323
  mode?: AgentMonitorFieldMode;
307
- /** @deprecated Renamed to `mode`; declare one spelling, not both. */
308
- type?: AgentMonitorFieldMode;
309
324
  }
310
325
  interface CreateAgentMonitorParams {
311
326
  /**
@@ -694,6 +709,11 @@ declare class AgentBetaRunsClient extends AgentRunsClient {
694
709
  listAll(options?: WithBetaOptions<ListAgentRunsParams>): AsyncGenerator<AgentRun>;
695
710
  getAll(options?: WithBetaOptions<ListAgentRunsParams>): Promise<AgentRun[]>;
696
711
  cancel(runId: string, options?: AgentBetaOptions): Promise<AgentRun>;
712
+ /**
713
+ * Stop a running Agent run, completing it early with the results
714
+ * gathered so far. Only supported for `max` effort runs.
715
+ */
716
+ stop(runId: string, options?: AgentBetaOptions): Promise<AgentRun>;
697
717
  delete(runId: string, options?: AgentBetaOptions): Promise<DeletedAgentRun>;
698
718
  pollUntilFinished(runId: string, options?: WithBetaOptions<AgentWaitOptions>): Promise<AgentTerminalRun>;
699
719
  createAndWait<T>(params: WithBetaOptions<Omit<AgentCreateOptions<T>, "stream">>, options?: AgentWaitOptions): Promise<AgentCompletedRunTyped<T>>;
@@ -3935,6 +3955,192 @@ declare class WebsetsClient extends WebsetsBaseClient {
3935
3955
  } | number): Promise<Webset>;
3936
3956
  }
3937
3957
 
3958
+ type ToolJsonSchema = {
3959
+ type: "object";
3960
+ properties?: Record<string, unknown>;
3961
+ required?: string[];
3962
+ additionalProperties?: boolean;
3963
+ [key: string]: unknown;
3964
+ };
3965
+ type ToolDefinition = {
3966
+ name: string;
3967
+ description: string;
3968
+ parameters?: ToolJsonSchema;
3969
+ input_schema?: ToolJsonSchema;
3970
+ strict?: boolean;
3971
+ };
3972
+ type ExaToolSpec<Args = unknown, Result = unknown> = {
3973
+ name: string;
3974
+ description: string;
3975
+ inputSchema: z.ZodType<Args>;
3976
+ jsonSchema: ToolJsonSchema;
3977
+ execute(args: Args): Promise<Result>;
3978
+ format(result: Result): string;
3979
+ definition: ToolDefinition;
3980
+ run(args: unknown): Promise<string>;
3981
+ };
3982
+ type WebSearchToolConfig = RegularSearchOptions & {
3983
+ /**
3984
+ * Tool name shown to the model. Defaults to `"web_search"`. Set a custom
3985
+ * name to avoid collisions, e.g. with Anthropic's built-in `web_search`
3986
+ * server tool, or to register multiple differently-configured search tools.
3987
+ */
3988
+ name?: string;
3989
+ /** Tool description shown to the model. */
3990
+ description?: string;
3991
+ };
3992
+ type ToolNamespace = {
3993
+ webSearch(config?: WebSearchToolConfig): WebSearchTool;
3994
+ };
3995
+ type SearchArgs = {
3996
+ query: string;
3997
+ };
3998
+ type WebSearchTool = ExaToolSpec<SearchArgs, SearchResponse<ContentsOptions>>;
3999
+ declare const DEFAULT_WEB_SEARCH_TOOL_DESCRIPTION = "Search the web for up-to-date, relevant information. Describe the ideal page rather than listing keywords.";
4000
+ /** Create a `web_search` tool. Defaults to `type: "auto"` and highlights. */
4001
+ declare function createWebSearchTool(exa: Exa, registry: ToolRegistry, config?: WebSearchToolConfig): WebSearchTool;
4002
+ declare class ToolRegistry {
4003
+ private readonly registry;
4004
+ register(tool: ExaToolSpec): void;
4005
+ resolve(tools?: readonly ExaToolSpec[]): Map<string, ExaToolSpec>;
4006
+ }
4007
+
4008
+ type AnthropicMessage = {
4009
+ content?: readonly unknown[] | null;
4010
+ };
4011
+ type AnthropicToolResult = {
4012
+ type: "tool_result";
4013
+ tool_use_id: string;
4014
+ content: string;
4015
+ };
4016
+ type AnthropicRunnable = ExaToolSpec & {
4017
+ type: "custom";
4018
+ name: string;
4019
+ description: string;
4020
+ input_schema: ExaToolSpec["jsonSchema"];
4021
+ parse: (input: unknown) => unknown;
4022
+ run: (args: unknown) => Promise<string>;
4023
+ definition: ToolDefinition & {
4024
+ input_schema: ExaToolSpec["jsonSchema"];
4025
+ };
4026
+ };
4027
+ declare class AnthropicTools {
4028
+ private readonly exa;
4029
+ private readonly registry;
4030
+ constructor(exa: Exa, registry: ToolRegistry);
4031
+ /** Anthropic `web_search` tool. Defaults to `auto` + highlights. */
4032
+ webSearch(config?: WebSearchToolConfig): AnthropicRunnable;
4033
+ /**
4034
+ * Run the `tool_use` blocks in an assistant message and return the matching
4035
+ * `tool_result` blocks. Every `tool_use` block is answered so the follow-up
4036
+ * request never omits a required result: a block whose name doesn't match a
4037
+ * known tool gets an `Error: unknown tool "<name>"` result. When handling
4038
+ * some tools yourself, replace those error results with your own before
4039
+ * sending the next request.
4040
+ */
4041
+ handleToolUse(message: AnthropicMessage, options?: {
4042
+ tools?: readonly ExaToolSpec[];
4043
+ }): Promise<AnthropicToolResult[]>;
4044
+ }
4045
+
4046
+ type OpenAIAssistantMessage = {
4047
+ tool_calls?: readonly unknown[] | null;
4048
+ };
4049
+ type OpenAIToolMessage = {
4050
+ role: "tool";
4051
+ tool_call_id: string;
4052
+ content: string;
4053
+ };
4054
+ type ResponsesOutput = {
4055
+ output?: readonly unknown[];
4056
+ };
4057
+ type ResponsesFunctionCallOutput = {
4058
+ type: "function_call_output";
4059
+ call_id: string;
4060
+ output: string;
4061
+ };
4062
+ type OpenAIChatDefinition = {
4063
+ type: "function";
4064
+ function: {
4065
+ name: string;
4066
+ description: string;
4067
+ parameters: any;
4068
+ };
4069
+ };
4070
+ type OpenAIRunnable = ExaToolSpec & {
4071
+ type: "function";
4072
+ function: {
4073
+ name: string;
4074
+ description: string;
4075
+ parameters: any;
4076
+ parse: (input: string) => any;
4077
+ function: (args: any, runner?: unknown) => Promise<string>;
4078
+ };
4079
+ definition: OpenAIChatDefinition;
4080
+ };
4081
+ type OpenAIResponsesRunnable = ExaToolSpec & {
4082
+ type: "function";
4083
+ name: string;
4084
+ description: string;
4085
+ parameters: any;
4086
+ strict: false;
4087
+ definition: ToolDefinition & {
4088
+ type: "function";
4089
+ parameters: ToolJsonSchema;
4090
+ strict: false;
4091
+ };
4092
+ };
4093
+ declare class OpenAIResponsesTools {
4094
+ private readonly exa;
4095
+ private readonly registry;
4096
+ private readonly handleResponses;
4097
+ constructor(exa: Exa, registry: ToolRegistry, handleResponses: (responseOrOutputItems: ResponsesOutput | readonly unknown[], options?: {
4098
+ tools?: readonly ExaToolSpec[];
4099
+ }) => Promise<ResponsesFunctionCallOutput[]>);
4100
+ /** Responses API `web_search` tool. Defaults to `auto` + highlights. */
4101
+ webSearch(config?: WebSearchToolConfig): OpenAIResponsesRunnable;
4102
+ /**
4103
+ * Run the function calls in a Responses API response (or output item array)
4104
+ * and return `function_call_output` items. Every function call is answered
4105
+ * so the follow-up request never omits a required output: a call whose name
4106
+ * doesn't match a known tool gets an `Error: unknown tool "<name>"` output.
4107
+ * When handling some tools yourself, replace those error outputs with your
4108
+ * own results before sending the next request.
4109
+ */
4110
+ handleToolCalls(responseOrOutputItems: ResponsesOutput | readonly unknown[], options?: {
4111
+ tools?: readonly ExaToolSpec[];
4112
+ }): Promise<ResponsesFunctionCallOutput[]>;
4113
+ }
4114
+ declare class OpenAITools {
4115
+ private readonly exa;
4116
+ private readonly registry;
4117
+ readonly responses: OpenAIResponsesTools;
4118
+ constructor(exa: Exa, registry: ToolRegistry);
4119
+ /** Chat Completions `web_search` tool. Defaults to `auto` + highlights. */
4120
+ webSearch(config?: WebSearchToolConfig): OpenAIRunnable;
4121
+ /**
4122
+ * Run the tool calls in a Chat Completions assistant message and return the
4123
+ * matching `role: "tool"` messages. Every tool call is answered so the
4124
+ * follow-up request never omits a required tool response: a call whose name
4125
+ * doesn't match a known tool gets an `Error: unknown tool "<name>"` output.
4126
+ * When handling some tools yourself, replace those error outputs with your
4127
+ * own results before sending the next request.
4128
+ */
4129
+ handleToolCalls(assistantMessage: OpenAIAssistantMessage, options?: {
4130
+ tools?: readonly ExaToolSpec[];
4131
+ }): Promise<OpenAIToolMessage[]>;
4132
+ /**
4133
+ * Run the function calls in a Responses API response (or output item array)
4134
+ * and return `function_call_output` items, answering calls whose name
4135
+ * doesn't match a known tool with `Error: unknown tool "<name>"` outputs.
4136
+ */
4137
+ handleToolCalls(responseOrOutputItems: ResponsesOutput | readonly unknown[], options?: {
4138
+ tools?: readonly ExaToolSpec[];
4139
+ }): Promise<ResponsesFunctionCallOutput[]>;
4140
+ private handleChatToolCalls;
4141
+ private handleResponsesToolCalls;
4142
+ }
4143
+
3938
4144
  /**
3939
4145
  * HTTP status codes
3940
4146
  */
@@ -4607,6 +4813,13 @@ declare class Exa {
4607
4813
  * Beta API clients
4608
4814
  */
4609
4815
  beta: BetaClient;
4816
+ /** Provider-neutral Exa tools. */
4817
+ tools: ToolNamespace;
4818
+ /** OpenAI Chat Completions and Responses API tools. */
4819
+ openai: OpenAITools;
4820
+ /** Anthropic Messages API tools. */
4821
+ anthropic: AnthropicTools;
4822
+ private readonly toolRegistry;
4610
4823
  /**
4611
4824
  * Helper method to separate out the contents-specific options from the rest.
4612
4825
  */
@@ -4843,4 +5056,4 @@ declare class Exa {
4843
5056
  private parseSSEStream;
4844
5057
  }
4845
5058
 
4846
- export { AGENT_BETA_HEADER, AGENT_MAX_EFFORT_BETA, AGENT_MONITORS_BETA_HEADER, type AddAgentMonitorEntitiesParams, AgentBetaClient, type AgentBetaOptions, type AgentBudget, AgentClient, type AgentConfidence, type AgentCostDollars, type AgentCreateOptions, type AgentDataSource, type AgentDataSourceProvider, type AgentEffort, type AgentError, type AgentEvent, type AgentGroundingCitation, type AgentGroundingEntry, type AgentInput, type AgentMonitor, type AgentMonitorChange, type AgentMonitorChangeEntity, type AgentMonitorChangeField, AgentMonitorChangesClient, type AgentMonitorContent, type AgentMonitorCreation, AgentMonitorEntitiesClient, type AgentMonitorEntity, type AgentMonitorEntityView, type AgentMonitorField, type AgentMonitorFieldMode, type AgentMonitorFieldType, type AgentMonitorRefresh, type AgentMonitorSnapshot, type AgentMonitorSnapshotEntity, AgentMonitorSnapshotFailedError, type AgentMonitorSnapshotResult, type AgentMonitorSnapshotStatus, type AgentMonitorSnapshotWaitOptions, AgentMonitorSnapshotsClient, type AgentMonitorStatus, type AgentMonitorUsage, type AgentMonitorsBetaOptions, AgentMonitorsClient, type AgentOutput, type AgentRun, AgentRunCancelledError, AgentRunEventsClient, AgentRunFailedError, type AgentRunStatus, type AgentRunTyped, AgentRunsClient, type AgentStopReason, type AgentUsage, type AgentWaitOptions, type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type ArticleEntity, type BaseSearchOptions, BetaClient, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateAgentMonitorEntityParams, type CreateAgentMonitorFieldParams, type CreateAgentMonitorOptions, type CreateAgentMonitorParams, type CreateAgentMonitorSnapshotParams, type CreateAgentRunParams, type CreateAgentRunParamsTyped, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateSearchMonitorParams, type CreateSearchMonitorResponse, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type CsvDataInput, type CustomEntity, type DeepObjectOutputSchema, type DeepOutputSchema, type DeepSearchOutput, type DeepSearchOutputGrounding, type DeepSearchOutputGroundingCitation, type DeepSearchOutputGroundingConfidence, type DeepSearchType, type DeepTextOutputSchema, type Default, type DeletedAgentMonitor, type DeletedAgentRun, type EnrichmentResult, type Entity, type EntityCompanyProperties, type EntityCompanyPropertiesFinancials, type EntityCompanyPropertiesFundingRound, type EntityCompanyPropertiesHeadquarters, type EntityCompanyPropertiesWebTraffic, type EntityCompanyPropertiesWorkforce, type EntityDateRange, type EntityPersonProperties, type EntityPersonPropertiesCompanyRef, type EntityPersonPropertiesWorkHistoryEntry, type Event, EventType, EventsClient, Exa, ExaError, type ExaErrorEnvelope, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type GroundingCitation, type GroundingEntry, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListAgentMonitorChangesParams, type ListAgentMonitorChangesResponse, type ListAgentMonitorEntitiesParams, type ListAgentMonitorEntitiesResponse, type ListAgentMonitorsParams, type ListAgentMonitorsResponse, type ListAgentRunEventsParams, type ListAgentRunEventsResponse, type ListAgentRunsParams, type ListAgentRunsResponse, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type ListResearchRequest, type ListResearchResponse, type ListSearchMonitorRunsParams, type ListSearchMonitorRunsResponse, type ListSearchMonitorsParams, type ListSearchMonitorsResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type PersonEntity, type PreviewWebsetParameters, type PreviewWebsetResponse, type RegularSearchOptions, type Research, type ResearchCreateParamsTyped, type ResearchCreateRequest, type ResearchCreateResponse, type ResearchDefinitionEvent, type ResearchEvent, type ResearchOperation, type ResearchOutputEvent, type ResearchPaperEntity, type ResearchPlanDefinitionEvent, type ResearchPlanOperationEvent, type ResearchPlanOutputEvent, type ResearchStatus, type ResearchStreamEvent, type ResearchStreamEventTyped, type ResearchTaskDefinitionEvent, type ResearchTaskOperationEvent, type ResearchTaskOutputEvent, type ResearchTyped, type SearchMonitor, type SearchMonitorRun, type SearchMonitorRunFailReason, type SearchMonitorRunOutput, type SearchMonitorRunStatus, SearchMonitorRunsClient, type SearchMonitorSearch, type SearchMonitorStatus, type SearchMonitorTrigger, type SearchMonitorWebhook, type SearchMonitorWebhookEvent, SearchMonitorsClient, type SearchResponse, type SearchResult, type SearchStreamChunk, type SectionTag, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type TriggerSearchMonitorResponse, type UpdateEnrichmentParameters, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateSearchMonitorParams, type UpdateWebhookParameters, type UpdateWebsetRequest, type VerbosityOptions, type WaitUntilCompletedOptions, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, WebsetExcludeSource, type WebsetHeadersLike, WebsetImportSource, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchScopeSource, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
5059
+ export { AGENT_BETA_HEADER, AGENT_MAX_EFFORT_BETA, AGENT_MONITORS_BETA_HEADER, type AddAgentMonitorEntitiesParams, AgentBetaClient, type AgentBetaOptions, type AgentBudget, AgentClient, type AgentConfidence, type AgentCostDollars, type AgentCreateOptions, type AgentDataSource, type AgentDataSourceProvider, type AgentEffort, type AgentError, type AgentEvent, type AgentGroundingCitation, type AgentGroundingEntry, type AgentInput, type AgentMonitor, type AgentMonitorChange, type AgentMonitorChangeEntity, type AgentMonitorChangeField, AgentMonitorChangesClient, type AgentMonitorCitation, type AgentMonitorContent, type AgentMonitorCreation, AgentMonitorEntitiesClient, type AgentMonitorEntity, type AgentMonitorEntityView, type AgentMonitorField, type AgentMonitorFieldMode, type AgentMonitorFieldValueType, type AgentMonitorRefresh, type AgentMonitorSnapshot, type AgentMonitorSnapshotEntity, AgentMonitorSnapshotFailedError, type AgentMonitorSnapshotResult, type AgentMonitorSnapshotStatus, type AgentMonitorSnapshotWaitOptions, AgentMonitorSnapshotsClient, type AgentMonitorStatus, type AgentMonitorUsage, type AgentMonitorsBetaOptions, AgentMonitorsClient, type AgentOutput, type AgentRun, AgentRunCancelledError, AgentRunEventsClient, AgentRunFailedError, type AgentRunStatus, type AgentRunTyped, AgentRunsClient, type AgentStopReason, type AgentUsage, type AgentWaitOptions, type AnswerOptions, type AnswerOptionsTyped, type AnswerResponse, type AnswerResponseTyped, type AnswerStreamChunk, type AnswerStreamResponse, type AnthropicToolResult, AnthropicTools, type ArticleEntity, type BaseSearchOptions, BetaClient, type CompanyEntity, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateAgentMonitorEntityParams, type CreateAgentMonitorFieldParams, type CreateAgentMonitorOptions, type CreateAgentMonitorParams, type CreateAgentMonitorSnapshotParams, type CreateAgentRunParams, type CreateAgentRunParamsTyped, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateImportParameters, CreateImportParametersFormat, type CreateImportResponse, type CreateImportWithCsvParameters, type CreateMonitorParameters, type CreateSearchMonitorParams, type CreateSearchMonitorResponse, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type CsvDataInput, type CustomEntity, DEFAULT_WEB_SEARCH_TOOL_DESCRIPTION, type DeepObjectOutputSchema, type DeepOutputSchema, type DeepSearchOutput, type DeepSearchOutputGrounding, type DeepSearchOutputGroundingCitation, type DeepSearchOutputGroundingConfidence, type DeepSearchType, type DeepTextOutputSchema, type Default, type DeletedAgentMonitor, type DeletedAgentRun, type EnrichmentResult, type Entity, type EntityCompanyProperties, type EntityCompanyPropertiesFinancials, type EntityCompanyPropertiesFundingRound, type EntityCompanyPropertiesHeadquarters, type EntityCompanyPropertiesWebTraffic, type EntityCompanyPropertiesWorkforce, type EntityDateRange, type EntityPersonProperties, type EntityPersonPropertiesCompanyRef, type EntityPersonPropertiesWorkHistoryEntry, type Event, EventType, EventsClient, Exa, ExaError, type ExaErrorEnvelope, type ExaToolSpec, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type GroundingCitation, type GroundingEntry, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type Import, ImportFailedReason, ImportFormat, ImportObject, ImportStatus, ImportsClient, type JSONSchema, type ListAgentMonitorChangesParams, type ListAgentMonitorChangesResponse, type ListAgentMonitorEntitiesParams, type ListAgentMonitorEntitiesResponse, type ListAgentMonitorsParams, type ListAgentMonitorsResponse, type ListAgentRunEventsParams, type ListAgentRunEventsResponse, type ListAgentRunsParams, type ListAgentRunsResponse, type ListEventsResponse, type ListImportsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type ListResearchRequest, type ListResearchResponse, type ListSearchMonitorRunsParams, type ListSearchMonitorRunsResponse, type ListSearchMonitorsParams, type ListSearchMonitorsResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetItemsOptions, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehavior, type MonitorCadence, MonitorObject, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, OpenAIResponsesTools, type OpenAIToolMessage, OpenAITools, type PersonEntity, type PreviewWebsetParameters, type PreviewWebsetResponse, type RegularSearchOptions, type Research, type ResearchCreateParamsTyped, type ResearchCreateRequest, type ResearchCreateResponse, type ResearchDefinitionEvent, type ResearchEvent, type ResearchOperation, type ResearchOutputEvent, type ResearchPaperEntity, type ResearchPlanDefinitionEvent, type ResearchPlanOperationEvent, type ResearchPlanOutputEvent, type ResearchStatus, type ResearchStreamEvent, type ResearchStreamEventTyped, type ResearchTaskDefinitionEvent, type ResearchTaskOperationEvent, type ResearchTaskOutputEvent, type ResearchTyped, type ResponsesFunctionCallOutput, type SearchMonitor, type SearchMonitorRun, type SearchMonitorRunFailReason, type SearchMonitorRunOutput, type SearchMonitorRunStatus, SearchMonitorRunsClient, type SearchMonitorSearch, type SearchMonitorStatus, type SearchMonitorTrigger, type SearchMonitorWebhook, type SearchMonitorWebhookEvent, SearchMonitorsClient, type SearchResponse, type SearchResult, type SearchStreamChunk, type SectionTag, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryContentsOptionsTyped, type SummaryResponse, type TextContentsOptions, type TextResponse, type ToolDefinition, type ToolJsonSchema, type ToolNamespace, ToolRegistry, type TriggerSearchMonitorResponse, type UpdateEnrichmentParameters, type UpdateImport, type UpdateMonitor, UpdateMonitorStatus, type UpdateSearchMonitorParams, type UpdateWebhookParameters, type UpdateWebsetRequest, type VerbosityOptions, type WaitUntilCompletedOptions, type WebSearchTool, type WebSearchToolConfig, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, WebsetExcludeSource, type WebsetHeadersLike, WebsetImportSource, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchScopeSource, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, createWebSearchTool, Exa as default };