Skip to content

Commit f73d971

Browse files
feat(responses): add people_search and finance_search built-in tools
Adds two new built-in tools to the Responses API: - `people_search`: surfaces structured biographical and professional data (e.g. LinkedIn results) when the model decides to look up a person. - `finance_search`: returns structured financial data (quotes, financials, segments, earnings transcripts) via category-based fan-out to FMP, Finchat, and Quartr. Both tools are zero-config — pass `{"type": "people_search"}` or `{"type": "finance_search"}` in the `tools` array on `responses.create(...)`.
1 parent 149b420 commit f73d971

2 files changed

Lines changed: 48 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-ebf1d5e2e90a335c4b7ddf6e0c98b4f69390836ae2dd806ffe255559e51d45b0.yml
3-
openapi_spec_hash: 97d9df5dc228bb6d71be54212bc5b600
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-cefddb763d493b69465328583ef47cf95655d9cdb3dd0f2c8680fd9679f3c8d8.yml
3+
openapi_spec_hash: 72274397b70c787db6db52dfd34a75ee
44
config_hash: e09a1767e929614701fb498eaaac682d

src/resources/responses.ts

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,13 @@ export interface ResponsesCreateParams {
960960
/**
961961
* Tools available to the model
962962
*/
963-
tools?: Array<ResponsesCreateParams.WebSearchTool | ResponsesCreateParams.FetchURLTool | FunctionTool>;
963+
tools?: Array<
964+
| ResponsesCreateParams.WebSearchTool
965+
| ResponsesCreateParams.FetchURLTool
966+
| ResponsesCreateParams.PeopleSearchTool
967+
| FunctionTool
968+
| ResponsesCreateParams.FinanceSearchTool
969+
>;
964970
}
965971

966972
export namespace ResponsesCreateParams {
@@ -1040,6 +1046,22 @@ export namespace ResponsesCreateParams {
10401046
*/
10411047
max_urls?: number;
10421048
}
1049+
1050+
export interface PeopleSearchTool {
1051+
/**
1052+
* Enables the `people_search` tool.
1053+
*/
1054+
type: 'people_search';
1055+
}
1056+
1057+
export interface FinanceSearchTool {
1058+
/**
1059+
* Enables the `finance_search` tool. The model can request structured financial
1060+
* data (quotes, financials, segments, earnings transcripts, etc.) via
1061+
* category-based fan-out to FMP, Finchat, and Quartr.
1062+
*/
1063+
type: 'finance_search';
1064+
}
10431065
}
10441066

10451067
export interface ResponsesUsage {
@@ -1189,7 +1211,13 @@ export interface ResponseCreateParamsBase {
11891211
/**
11901212
* Tools available to the model
11911213
*/
1192-
tools?: Array<ResponseCreateParams.WebSearchTool | ResponseCreateParams.FetchURLTool | FunctionTool>;
1214+
tools?: Array<
1215+
| ResponseCreateParams.WebSearchTool
1216+
| ResponseCreateParams.FetchURLTool
1217+
| ResponseCreateParams.PeopleSearchTool
1218+
| FunctionTool
1219+
| ResponseCreateParams.FinanceSearchTool
1220+
>;
11931221
}
11941222

11951223
export namespace ResponseCreateParams {
@@ -1270,6 +1298,22 @@ export namespace ResponseCreateParams {
12701298
max_urls?: number;
12711299
}
12721300

1301+
export interface PeopleSearchTool {
1302+
/**
1303+
* Enables the `people_search` tool.
1304+
*/
1305+
type: 'people_search';
1306+
}
1307+
1308+
export interface FinanceSearchTool {
1309+
/**
1310+
* Enables the `finance_search` tool. The model can request structured financial
1311+
* data (quotes, financials, segments, earnings transcripts, etc.) via
1312+
* category-based fan-out to FMP, Finchat, and Quartr.
1313+
*/
1314+
type: 'finance_search';
1315+
}
1316+
12731317
export type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming;
12741318
export type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming;
12751319
}

0 commit comments

Comments
 (0)