exa-js 1.8.9 → 1.8.11
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.mts +105 -39
- package/dist/index.d.ts +105 -39
- package/dist/index.js +36 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1749,7 +1749,7 @@ declare class ResearchClient extends ResearchBaseClient {
|
|
|
1749
1749
|
*/
|
|
1750
1750
|
createTask(params: {
|
|
1751
1751
|
instructions: string;
|
|
1752
|
-
model?: ResearchCreateOpenAIResponseDtoModel;
|
|
1752
|
+
model?: "exa-research" | "exa-research-pro" | ResearchCreateOpenAIResponseDtoModel;
|
|
1753
1753
|
output?: {
|
|
1754
1754
|
inferSchema?: boolean;
|
|
1755
1755
|
schema?: JSONSchema;
|
|
@@ -1771,7 +1771,7 @@ declare class ResearchClient extends ResearchBaseClient {
|
|
|
1771
1771
|
}): Promise<SchemaResearchTaskDto>;
|
|
1772
1772
|
getTask(id: string, options: {
|
|
1773
1773
|
stream: true;
|
|
1774
|
-
}): Promise<AsyncGenerator<
|
|
1774
|
+
}): Promise<AsyncGenerator<ResearchTaskEvent, any, any>>;
|
|
1775
1775
|
/**
|
|
1776
1776
|
* @deprecated This method is deprecated and may be removed in a future release.
|
|
1777
1777
|
* @see getTask(id, {stream: true})
|
|
@@ -1898,6 +1898,7 @@ interface components {
|
|
|
1898
1898
|
data: {
|
|
1899
1899
|
[key: string]: unknown;
|
|
1900
1900
|
};
|
|
1901
|
+
stepId: string;
|
|
1901
1902
|
/** @enum {string} */
|
|
1902
1903
|
type: ResearchTaskDtoOperationsType;
|
|
1903
1904
|
} | {
|
|
@@ -1913,15 +1914,18 @@ interface components {
|
|
|
1913
1914
|
/** @enum {number} */
|
|
1914
1915
|
version: ResearchTaskDtoOperationsResultsVersion;
|
|
1915
1916
|
}[];
|
|
1917
|
+
stepId: string;
|
|
1916
1918
|
/** @enum {string} */
|
|
1917
1919
|
type: ResearchTaskDtoOperationsType;
|
|
1918
1920
|
} | {
|
|
1919
1921
|
/** @description What the agent hopes to find with this crawl */
|
|
1920
1922
|
goal?: string;
|
|
1923
|
+
stepId: string;
|
|
1921
1924
|
/** @enum {string} */
|
|
1922
1925
|
type: ResearchTaskDtoOperationsType;
|
|
1923
1926
|
url: string;
|
|
1924
1927
|
} | {
|
|
1928
|
+
stepId: string;
|
|
1925
1929
|
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1926
1930
|
thought: string;
|
|
1927
1931
|
/** @enum {string} */
|
|
@@ -1939,44 +1943,52 @@ interface components {
|
|
|
1939
1943
|
timeMs?: number;
|
|
1940
1944
|
};
|
|
1941
1945
|
ResearchTaskEventDto: {
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1946
|
+
operation: {
|
|
1947
|
+
stepId: string;
|
|
1948
|
+
/** @description Agent generated plan or reasoning for upcoming actions. */
|
|
1949
|
+
text: string;
|
|
1950
|
+
/** @enum {string} */
|
|
1951
|
+
type: ResearchTaskDtoOperationsType;
|
|
1952
|
+
} | {
|
|
1953
|
+
/** @description A completed subfield */
|
|
1954
|
+
data: {
|
|
1955
|
+
[key: string]: unknown;
|
|
1956
|
+
};
|
|
1957
|
+
stepId: string;
|
|
1958
|
+
/** @enum {string} */
|
|
1959
|
+
type: ResearchTaskDtoOperationsType;
|
|
1960
|
+
} | {
|
|
1961
|
+
/** @description What the agent hopes to find with this search query */
|
|
1962
|
+
goal?: string;
|
|
1963
|
+
/** @description Search query used */
|
|
1964
|
+
query: string;
|
|
1965
|
+
results?: {
|
|
1966
|
+
id: string;
|
|
1967
|
+
snippet: string;
|
|
1968
|
+
title?: string;
|
|
1969
|
+
url: string;
|
|
1970
|
+
/** @enum {number} */
|
|
1971
|
+
version: ResearchTaskDtoOperationsResultsVersion;
|
|
1972
|
+
}[];
|
|
1973
|
+
stepId: string;
|
|
1974
|
+
/** @enum {string} */
|
|
1975
|
+
type: ResearchTaskDtoOperationsType;
|
|
1976
|
+
} | {
|
|
1977
|
+
/** @description What the agent hopes to find with this crawl */
|
|
1978
|
+
goal?: string;
|
|
1979
|
+
stepId: string;
|
|
1980
|
+
/** @enum {string} */
|
|
1981
|
+
type: ResearchTaskDtoOperationsType;
|
|
1963
1982
|
url: string;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
goal?: string;
|
|
1972
|
-
/** @enum {string} */
|
|
1973
|
-
type: ResearchTaskDtoOperationsType;
|
|
1974
|
-
url: string;
|
|
1975
|
-
} | {
|
|
1976
|
-
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1977
|
-
thought: string;
|
|
1983
|
+
} | {
|
|
1984
|
+
stepId: string;
|
|
1985
|
+
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1986
|
+
thought: string;
|
|
1987
|
+
/** @enum {string} */
|
|
1988
|
+
type: ResearchTaskDtoOperationsType;
|
|
1989
|
+
};
|
|
1978
1990
|
/** @enum {string} */
|
|
1979
|
-
type:
|
|
1991
|
+
type: ResearchTaskEventDtoType;
|
|
1980
1992
|
} | {
|
|
1981
1993
|
task: {
|
|
1982
1994
|
/** @description Citations grouped by the root field they were used in */
|
|
@@ -2019,6 +2031,7 @@ interface components {
|
|
|
2019
2031
|
data: {
|
|
2020
2032
|
[key: string]: unknown;
|
|
2021
2033
|
};
|
|
2034
|
+
stepId: string;
|
|
2022
2035
|
/** @enum {string} */
|
|
2023
2036
|
type: ResearchTaskDtoOperationsType;
|
|
2024
2037
|
} | {
|
|
@@ -2034,15 +2047,18 @@ interface components {
|
|
|
2034
2047
|
/** @enum {number} */
|
|
2035
2048
|
version: ResearchTaskDtoOperationsResultsVersion;
|
|
2036
2049
|
}[];
|
|
2050
|
+
stepId: string;
|
|
2037
2051
|
/** @enum {string} */
|
|
2038
2052
|
type: ResearchTaskDtoOperationsType;
|
|
2039
2053
|
} | {
|
|
2040
2054
|
/** @description What the agent hopes to find with this crawl */
|
|
2041
2055
|
goal?: string;
|
|
2056
|
+
stepId: string;
|
|
2042
2057
|
/** @enum {string} */
|
|
2043
2058
|
type: ResearchTaskDtoOperationsType;
|
|
2044
2059
|
url: string;
|
|
2045
2060
|
} | {
|
|
2061
|
+
stepId: string;
|
|
2046
2062
|
/** @description Intermediate chain-of-thought style reasoning output */
|
|
2047
2063
|
thought: string;
|
|
2048
2064
|
/** @enum {string} */
|
|
@@ -2062,6 +2078,50 @@ interface components {
|
|
|
2062
2078
|
/** @enum {string} */
|
|
2063
2079
|
type: ResearchTaskEventDtoType;
|
|
2064
2080
|
};
|
|
2081
|
+
ResearchTaskOperationDto: {
|
|
2082
|
+
stepId: string;
|
|
2083
|
+
/** @description Agent generated plan or reasoning for upcoming actions. */
|
|
2084
|
+
text: string;
|
|
2085
|
+
/** @enum {string} */
|
|
2086
|
+
type: ResearchTaskDtoOperationsType;
|
|
2087
|
+
} | {
|
|
2088
|
+
/** @description A completed subfield */
|
|
2089
|
+
data: {
|
|
2090
|
+
[key: string]: unknown;
|
|
2091
|
+
};
|
|
2092
|
+
stepId: string;
|
|
2093
|
+
/** @enum {string} */
|
|
2094
|
+
type: ResearchTaskDtoOperationsType;
|
|
2095
|
+
} | {
|
|
2096
|
+
/** @description What the agent hopes to find with this search query */
|
|
2097
|
+
goal?: string;
|
|
2098
|
+
/** @description Search query used */
|
|
2099
|
+
query: string;
|
|
2100
|
+
results?: {
|
|
2101
|
+
id: string;
|
|
2102
|
+
snippet: string;
|
|
2103
|
+
title?: string;
|
|
2104
|
+
url: string;
|
|
2105
|
+
/** @enum {number} */
|
|
2106
|
+
version: ResearchTaskDtoOperationsResultsVersion;
|
|
2107
|
+
}[];
|
|
2108
|
+
stepId: string;
|
|
2109
|
+
/** @enum {string} */
|
|
2110
|
+
type: ResearchTaskDtoOperationsType;
|
|
2111
|
+
} | {
|
|
2112
|
+
/** @description What the agent hopes to find with this crawl */
|
|
2113
|
+
goal?: string;
|
|
2114
|
+
stepId: string;
|
|
2115
|
+
/** @enum {string} */
|
|
2116
|
+
type: ResearchTaskDtoOperationsType;
|
|
2117
|
+
url: string;
|
|
2118
|
+
} | {
|
|
2119
|
+
stepId: string;
|
|
2120
|
+
/** @description Intermediate chain-of-thought style reasoning output */
|
|
2121
|
+
thought: string;
|
|
2122
|
+
/** @enum {string} */
|
|
2123
|
+
type: ResearchTaskDtoOperationsType;
|
|
2124
|
+
};
|
|
2065
2125
|
};
|
|
2066
2126
|
responses: never;
|
|
2067
2127
|
parameters: never;
|
|
@@ -2107,10 +2167,16 @@ declare enum ResearchTaskDtoStatus {
|
|
|
2107
2167
|
completed = "completed",
|
|
2108
2168
|
failed = "failed"
|
|
2109
2169
|
}
|
|
2170
|
+
declare enum ResearchTaskEventDtoType {
|
|
2171
|
+
operation = "operation"
|
|
2172
|
+
}
|
|
2110
2173
|
declare enum ResearchTaskEventDtoType {
|
|
2111
2174
|
completed = "completed"
|
|
2112
2175
|
}
|
|
2113
2176
|
|
|
2177
|
+
type ResearchTaskEvent = components["schemas"]["ResearchTaskEventDto"];
|
|
2178
|
+
type ResearchTaskOperation = SchemaResearchTaskDto["operations"][0];
|
|
2179
|
+
|
|
2114
2180
|
/**
|
|
2115
2181
|
* HTTP status codes
|
|
2116
2182
|
*/
|
|
@@ -2607,4 +2673,4 @@ declare class Exa {
|
|
|
2607
2673
|
private parseSSEStream;
|
|
2608
2674
|
}
|
|
2609
2675
|
|
|
2610
|
-
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse,
|
|
2676
|
+
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, ResearchTaskEventDtoType as ResearchTaskEventType, ResearchCreateOpenAIResponseDtoModel as ResearchTaskModel, type ResearchTaskOperation, ResearchTaskDtoOperationsType as ResearchTaskOperationType, ResearchTaskDtoStatus as ResearchTaskStatus, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1749,7 +1749,7 @@ declare class ResearchClient extends ResearchBaseClient {
|
|
|
1749
1749
|
*/
|
|
1750
1750
|
createTask(params: {
|
|
1751
1751
|
instructions: string;
|
|
1752
|
-
model?: ResearchCreateOpenAIResponseDtoModel;
|
|
1752
|
+
model?: "exa-research" | "exa-research-pro" | ResearchCreateOpenAIResponseDtoModel;
|
|
1753
1753
|
output?: {
|
|
1754
1754
|
inferSchema?: boolean;
|
|
1755
1755
|
schema?: JSONSchema;
|
|
@@ -1771,7 +1771,7 @@ declare class ResearchClient extends ResearchBaseClient {
|
|
|
1771
1771
|
}): Promise<SchemaResearchTaskDto>;
|
|
1772
1772
|
getTask(id: string, options: {
|
|
1773
1773
|
stream: true;
|
|
1774
|
-
}): Promise<AsyncGenerator<
|
|
1774
|
+
}): Promise<AsyncGenerator<ResearchTaskEvent, any, any>>;
|
|
1775
1775
|
/**
|
|
1776
1776
|
* @deprecated This method is deprecated and may be removed in a future release.
|
|
1777
1777
|
* @see getTask(id, {stream: true})
|
|
@@ -1898,6 +1898,7 @@ interface components {
|
|
|
1898
1898
|
data: {
|
|
1899
1899
|
[key: string]: unknown;
|
|
1900
1900
|
};
|
|
1901
|
+
stepId: string;
|
|
1901
1902
|
/** @enum {string} */
|
|
1902
1903
|
type: ResearchTaskDtoOperationsType;
|
|
1903
1904
|
} | {
|
|
@@ -1913,15 +1914,18 @@ interface components {
|
|
|
1913
1914
|
/** @enum {number} */
|
|
1914
1915
|
version: ResearchTaskDtoOperationsResultsVersion;
|
|
1915
1916
|
}[];
|
|
1917
|
+
stepId: string;
|
|
1916
1918
|
/** @enum {string} */
|
|
1917
1919
|
type: ResearchTaskDtoOperationsType;
|
|
1918
1920
|
} | {
|
|
1919
1921
|
/** @description What the agent hopes to find with this crawl */
|
|
1920
1922
|
goal?: string;
|
|
1923
|
+
stepId: string;
|
|
1921
1924
|
/** @enum {string} */
|
|
1922
1925
|
type: ResearchTaskDtoOperationsType;
|
|
1923
1926
|
url: string;
|
|
1924
1927
|
} | {
|
|
1928
|
+
stepId: string;
|
|
1925
1929
|
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1926
1930
|
thought: string;
|
|
1927
1931
|
/** @enum {string} */
|
|
@@ -1939,44 +1943,52 @@ interface components {
|
|
|
1939
1943
|
timeMs?: number;
|
|
1940
1944
|
};
|
|
1941
1945
|
ResearchTaskEventDto: {
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1946
|
+
operation: {
|
|
1947
|
+
stepId: string;
|
|
1948
|
+
/** @description Agent generated plan or reasoning for upcoming actions. */
|
|
1949
|
+
text: string;
|
|
1950
|
+
/** @enum {string} */
|
|
1951
|
+
type: ResearchTaskDtoOperationsType;
|
|
1952
|
+
} | {
|
|
1953
|
+
/** @description A completed subfield */
|
|
1954
|
+
data: {
|
|
1955
|
+
[key: string]: unknown;
|
|
1956
|
+
};
|
|
1957
|
+
stepId: string;
|
|
1958
|
+
/** @enum {string} */
|
|
1959
|
+
type: ResearchTaskDtoOperationsType;
|
|
1960
|
+
} | {
|
|
1961
|
+
/** @description What the agent hopes to find with this search query */
|
|
1962
|
+
goal?: string;
|
|
1963
|
+
/** @description Search query used */
|
|
1964
|
+
query: string;
|
|
1965
|
+
results?: {
|
|
1966
|
+
id: string;
|
|
1967
|
+
snippet: string;
|
|
1968
|
+
title?: string;
|
|
1969
|
+
url: string;
|
|
1970
|
+
/** @enum {number} */
|
|
1971
|
+
version: ResearchTaskDtoOperationsResultsVersion;
|
|
1972
|
+
}[];
|
|
1973
|
+
stepId: string;
|
|
1974
|
+
/** @enum {string} */
|
|
1975
|
+
type: ResearchTaskDtoOperationsType;
|
|
1976
|
+
} | {
|
|
1977
|
+
/** @description What the agent hopes to find with this crawl */
|
|
1978
|
+
goal?: string;
|
|
1979
|
+
stepId: string;
|
|
1980
|
+
/** @enum {string} */
|
|
1981
|
+
type: ResearchTaskDtoOperationsType;
|
|
1963
1982
|
url: string;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
goal?: string;
|
|
1972
|
-
/** @enum {string} */
|
|
1973
|
-
type: ResearchTaskDtoOperationsType;
|
|
1974
|
-
url: string;
|
|
1975
|
-
} | {
|
|
1976
|
-
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1977
|
-
thought: string;
|
|
1983
|
+
} | {
|
|
1984
|
+
stepId: string;
|
|
1985
|
+
/** @description Intermediate chain-of-thought style reasoning output */
|
|
1986
|
+
thought: string;
|
|
1987
|
+
/** @enum {string} */
|
|
1988
|
+
type: ResearchTaskDtoOperationsType;
|
|
1989
|
+
};
|
|
1978
1990
|
/** @enum {string} */
|
|
1979
|
-
type:
|
|
1991
|
+
type: ResearchTaskEventDtoType;
|
|
1980
1992
|
} | {
|
|
1981
1993
|
task: {
|
|
1982
1994
|
/** @description Citations grouped by the root field they were used in */
|
|
@@ -2019,6 +2031,7 @@ interface components {
|
|
|
2019
2031
|
data: {
|
|
2020
2032
|
[key: string]: unknown;
|
|
2021
2033
|
};
|
|
2034
|
+
stepId: string;
|
|
2022
2035
|
/** @enum {string} */
|
|
2023
2036
|
type: ResearchTaskDtoOperationsType;
|
|
2024
2037
|
} | {
|
|
@@ -2034,15 +2047,18 @@ interface components {
|
|
|
2034
2047
|
/** @enum {number} */
|
|
2035
2048
|
version: ResearchTaskDtoOperationsResultsVersion;
|
|
2036
2049
|
}[];
|
|
2050
|
+
stepId: string;
|
|
2037
2051
|
/** @enum {string} */
|
|
2038
2052
|
type: ResearchTaskDtoOperationsType;
|
|
2039
2053
|
} | {
|
|
2040
2054
|
/** @description What the agent hopes to find with this crawl */
|
|
2041
2055
|
goal?: string;
|
|
2056
|
+
stepId: string;
|
|
2042
2057
|
/** @enum {string} */
|
|
2043
2058
|
type: ResearchTaskDtoOperationsType;
|
|
2044
2059
|
url: string;
|
|
2045
2060
|
} | {
|
|
2061
|
+
stepId: string;
|
|
2046
2062
|
/** @description Intermediate chain-of-thought style reasoning output */
|
|
2047
2063
|
thought: string;
|
|
2048
2064
|
/** @enum {string} */
|
|
@@ -2062,6 +2078,50 @@ interface components {
|
|
|
2062
2078
|
/** @enum {string} */
|
|
2063
2079
|
type: ResearchTaskEventDtoType;
|
|
2064
2080
|
};
|
|
2081
|
+
ResearchTaskOperationDto: {
|
|
2082
|
+
stepId: string;
|
|
2083
|
+
/** @description Agent generated plan or reasoning for upcoming actions. */
|
|
2084
|
+
text: string;
|
|
2085
|
+
/** @enum {string} */
|
|
2086
|
+
type: ResearchTaskDtoOperationsType;
|
|
2087
|
+
} | {
|
|
2088
|
+
/** @description A completed subfield */
|
|
2089
|
+
data: {
|
|
2090
|
+
[key: string]: unknown;
|
|
2091
|
+
};
|
|
2092
|
+
stepId: string;
|
|
2093
|
+
/** @enum {string} */
|
|
2094
|
+
type: ResearchTaskDtoOperationsType;
|
|
2095
|
+
} | {
|
|
2096
|
+
/** @description What the agent hopes to find with this search query */
|
|
2097
|
+
goal?: string;
|
|
2098
|
+
/** @description Search query used */
|
|
2099
|
+
query: string;
|
|
2100
|
+
results?: {
|
|
2101
|
+
id: string;
|
|
2102
|
+
snippet: string;
|
|
2103
|
+
title?: string;
|
|
2104
|
+
url: string;
|
|
2105
|
+
/** @enum {number} */
|
|
2106
|
+
version: ResearchTaskDtoOperationsResultsVersion;
|
|
2107
|
+
}[];
|
|
2108
|
+
stepId: string;
|
|
2109
|
+
/** @enum {string} */
|
|
2110
|
+
type: ResearchTaskDtoOperationsType;
|
|
2111
|
+
} | {
|
|
2112
|
+
/** @description What the agent hopes to find with this crawl */
|
|
2113
|
+
goal?: string;
|
|
2114
|
+
stepId: string;
|
|
2115
|
+
/** @enum {string} */
|
|
2116
|
+
type: ResearchTaskDtoOperationsType;
|
|
2117
|
+
url: string;
|
|
2118
|
+
} | {
|
|
2119
|
+
stepId: string;
|
|
2120
|
+
/** @description Intermediate chain-of-thought style reasoning output */
|
|
2121
|
+
thought: string;
|
|
2122
|
+
/** @enum {string} */
|
|
2123
|
+
type: ResearchTaskDtoOperationsType;
|
|
2124
|
+
};
|
|
2065
2125
|
};
|
|
2066
2126
|
responses: never;
|
|
2067
2127
|
parameters: never;
|
|
@@ -2107,10 +2167,16 @@ declare enum ResearchTaskDtoStatus {
|
|
|
2107
2167
|
completed = "completed",
|
|
2108
2168
|
failed = "failed"
|
|
2109
2169
|
}
|
|
2170
|
+
declare enum ResearchTaskEventDtoType {
|
|
2171
|
+
operation = "operation"
|
|
2172
|
+
}
|
|
2110
2173
|
declare enum ResearchTaskEventDtoType {
|
|
2111
2174
|
completed = "completed"
|
|
2112
2175
|
}
|
|
2113
2176
|
|
|
2177
|
+
type ResearchTaskEvent = components["schemas"]["ResearchTaskEventDto"];
|
|
2178
|
+
type ResearchTaskOperation = SchemaResearchTaskDto["operations"][0];
|
|
2179
|
+
|
|
2114
2180
|
/**
|
|
2115
2181
|
* HTTP status codes
|
|
2116
2182
|
*/
|
|
@@ -2607,4 +2673,4 @@ declare class Exa {
|
|
|
2607
2673
|
private parseSSEStream;
|
|
2608
2674
|
}
|
|
2609
2675
|
|
|
2610
|
-
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse,
|
|
2676
|
+
export { type AnswerOptions, type AnswerResponse, type AnswerStreamChunk, type AnswerStreamResponse, type BaseSearchOptions, type ContentsOptions, type ContentsResultComponent, type ContextOptions, type CostDollars, type CostDollarsContents, type CostDollarsSeearch, type CreateCriterionParameters, type CreateEnrichmentParameters, CreateEnrichmentParametersFormat, type CreateMonitorParameters, type CreateWebhookParameters, type CreateWebsetParameters, type CreateWebsetSearchParameters, type Default, type EnrichmentResult, type Event, EventType, EventsClient, Exa, ExaError, type ExtrasOptions, type ExtrasResponse, type FindSimilarOptions, type GetWebsetResponse, type HighlightsContentsOptions, type HighlightsResponse, HttpStatusCode, type JSONSchema, type ListEventsResponse, type ListMonitorRunsResponse, type ListMonitorsOptions, type ListMonitorsResponse, type SchemaListResearchTasksRequestDto as ListResearchTasksRequest, type SchemaListResearchTasksResponseDto as ListResearchTasksResponse, type ListWebhookAttemptsResponse, type ListWebhooksResponse, type ListWebsetItemResponse, type ListWebsetsResponse, type LivecrawlOptions, type Monitor, type MonitorBehaviorRefresh, type MonitorBehaviorSearch, type MonitorCadence, MonitorObject, type MonitorRefreshBehaviorContentsConfig, type MonitorRefreshBehaviorEnrichmentsConfig, type MonitorRun, MonitorRunObject, MonitorRunStatus, MonitorRunType, MonitorStatus, type RegularSearchOptions, ResearchClient, type SchemaResearchCreateTaskRequestDto as ResearchCreateTaskRequest, type SchemaResearchCreateTaskResponseDto as ResearchCreateTaskResponse, type SchemaResearchTaskDto as ResearchTask, type ResearchTaskEvent, ResearchTaskEventDtoType as ResearchTaskEventType, ResearchCreateOpenAIResponseDtoModel as ResearchTaskModel, type ResearchTaskOperation, ResearchTaskDtoOperationsType as ResearchTaskOperationType, ResearchTaskDtoStatus as ResearchTaskStatus, type SearchResponse, type SearchResult, type Status, type SubpagesResponse, type SummaryContentsOptions, type SummaryResponse, type TextContentsOptions, type TextResponse, type UpdateMonitor, UpdateMonitorStatus, type UpdateWebhookParameters, type UpdateWebsetRequest, type Webhook, type WebhookAttempt, WebhookStatus, type Webset, type WebsetArticleEntity, type WebsetCompanyEntity, type WebsetCustomEntity, type WebsetEnrichment, WebsetEnrichmentFormat, WebsetEnrichmentStatus, WebsetEnrichmentsClient, type WebsetEntity, type WebsetItem, type WebsetItemArticleProperties, type WebsetItemCompanyProperties, type WebsetItemCustomProperties, type WebsetItemEvaluation, WebsetItemEvaluationSatisfied, type WebsetItemPersonProperties, type WebsetItemResearchPaperProperties, WebsetItemSource, WebsetItemsClient, WebsetMonitorsClient, type WebsetPersonEntity, type WebsetResearchPaperEntity, type WebsetSearch, WebsetSearchBehavior, WebsetSearchCanceledReason, WebsetSearchStatus, WebsetSearchesClient, WebsetStatus, WebsetWebhooksClient, WebsetsClient, Exa as default };
|
package/dist/index.js
CHANGED
|
@@ -42,8 +42,10 @@ __export(index_exports, {
|
|
|
42
42
|
MonitorRunType: () => MonitorRunType,
|
|
43
43
|
MonitorStatus: () => MonitorStatus,
|
|
44
44
|
ResearchClient: () => ResearchClient,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
ResearchTaskEventType: () => ResearchTaskEventDtoType,
|
|
46
|
+
ResearchTaskModel: () => ResearchCreateOpenAIResponseDtoModel,
|
|
47
|
+
ResearchTaskOperationType: () => ResearchTaskDtoOperationsType,
|
|
48
|
+
ResearchTaskStatus: () => ResearchTaskDtoStatus,
|
|
47
49
|
UpdateMonitorStatus: () => UpdateMonitorStatus,
|
|
48
50
|
WebhookStatus: () => WebhookStatus,
|
|
49
51
|
WebsetEnrichmentFormat: () => WebsetEnrichmentFormat,
|
|
@@ -1011,12 +1013,40 @@ var ResearchCreateOpenAIResponseDtoModel = /* @__PURE__ */ ((ResearchCreateOpenA
|
|
|
1011
1013
|
ResearchCreateOpenAIResponseDtoModel2["exa_research_pro"] = "exa-research-pro";
|
|
1012
1014
|
return ResearchCreateOpenAIResponseDtoModel2;
|
|
1013
1015
|
})(ResearchCreateOpenAIResponseDtoModel || {});
|
|
1016
|
+
var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
|
|
1017
|
+
ResearchTaskDtoOperationsType2["step_plan"] = "step-plan";
|
|
1018
|
+
return ResearchTaskDtoOperationsType2;
|
|
1019
|
+
})(ResearchTaskDtoOperationsType || {});
|
|
1020
|
+
var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
|
|
1021
|
+
ResearchTaskDtoOperationsType2["step_data"] = "step-data";
|
|
1022
|
+
return ResearchTaskDtoOperationsType2;
|
|
1023
|
+
})(ResearchTaskDtoOperationsType || {});
|
|
1024
|
+
var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
|
|
1025
|
+
ResearchTaskDtoOperationsType2["search"] = "search";
|
|
1026
|
+
return ResearchTaskDtoOperationsType2;
|
|
1027
|
+
})(ResearchTaskDtoOperationsType || {});
|
|
1028
|
+
var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
|
|
1029
|
+
ResearchTaskDtoOperationsType2["crawl"] = "crawl";
|
|
1030
|
+
return ResearchTaskDtoOperationsType2;
|
|
1031
|
+
})(ResearchTaskDtoOperationsType || {});
|
|
1032
|
+
var ResearchTaskDtoOperationsType = /* @__PURE__ */ ((ResearchTaskDtoOperationsType2) => {
|
|
1033
|
+
ResearchTaskDtoOperationsType2["think"] = "think";
|
|
1034
|
+
return ResearchTaskDtoOperationsType2;
|
|
1035
|
+
})(ResearchTaskDtoOperationsType || {});
|
|
1014
1036
|
var ResearchTaskDtoStatus = /* @__PURE__ */ ((ResearchTaskDtoStatus2) => {
|
|
1015
1037
|
ResearchTaskDtoStatus2["running"] = "running";
|
|
1016
1038
|
ResearchTaskDtoStatus2["completed"] = "completed";
|
|
1017
1039
|
ResearchTaskDtoStatus2["failed"] = "failed";
|
|
1018
1040
|
return ResearchTaskDtoStatus2;
|
|
1019
1041
|
})(ResearchTaskDtoStatus || {});
|
|
1042
|
+
var ResearchTaskEventDtoType = /* @__PURE__ */ ((ResearchTaskEventDtoType2) => {
|
|
1043
|
+
ResearchTaskEventDtoType2["operation"] = "operation";
|
|
1044
|
+
return ResearchTaskEventDtoType2;
|
|
1045
|
+
})(ResearchTaskEventDtoType || {});
|
|
1046
|
+
var ResearchTaskEventDtoType = /* @__PURE__ */ ((ResearchTaskEventDtoType2) => {
|
|
1047
|
+
ResearchTaskEventDtoType2["completed"] = "completed";
|
|
1048
|
+
return ResearchTaskEventDtoType2;
|
|
1049
|
+
})(ResearchTaskEventDtoType || {});
|
|
1020
1050
|
|
|
1021
1051
|
// src/index.ts
|
|
1022
1052
|
var fetchImpl = typeof global !== "undefined" && global.fetch ? global.fetch : import_cross_fetch.default;
|
|
@@ -1469,8 +1499,10 @@ var index_default = Exa2;
|
|
|
1469
1499
|
MonitorRunType,
|
|
1470
1500
|
MonitorStatus,
|
|
1471
1501
|
ResearchClient,
|
|
1472
|
-
|
|
1473
|
-
|
|
1502
|
+
ResearchTaskEventType,
|
|
1503
|
+
ResearchTaskModel,
|
|
1504
|
+
ResearchTaskOperationType,
|
|
1505
|
+
ResearchTaskStatus,
|
|
1474
1506
|
UpdateMonitorStatus,
|
|
1475
1507
|
WebhookStatus,
|
|
1476
1508
|
WebsetEnrichmentFormat,
|