Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.30.1"
".": "0.31.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 11
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-6f1190943034b93890a9c218eea0630d4b0de4018e3ca97a48fb467bdcf0c5a2.yml
openapi_spec_hash: 852b17614efb5895a656a42d5fa2f08a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-c9a4aa7e01c6335588f6d246f5bc498d70ab7164bb8b753c7e031086af55cc64.yml
openapi_spec_hash: 4018d7234b9acf008622b921908b6329
config_hash: 059988c88f0dc18e9e393daed94b5eb6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.31.0 (2026-05-30)

Full Changelog: [v0.30.1...v0.31.0](https://github.com/perplexityai/perplexity-node/compare/v0.30.1...v0.31.0)

### Features

* **responses:** add sandbox built-in tool ([6b47293](https://github.com/perplexityai/perplexity-node/commit/6b4729307f2cd319119bba23ebca2bcbaee9cb62))

## 0.30.1 (2026-05-27)

Full Changelog: [v0.30.0...v0.30.1](https://github.com/perplexityai/perplexity-node/compare/v0.30.0...v0.30.1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perplexity-ai/perplexity_ai",
"version": "0.30.1",
"version": "0.31.0",
"description": "The official TypeScript library for the Perplexity API",
"author": "Perplexity <api@perplexity.ai>",
"types": "dist/index.d.ts",
Expand Down
18 changes: 18 additions & 0 deletions src/resources/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ export interface ResponsesCreateParams {
| ResponsesCreateParams.PeopleSearchTool
| FunctionTool
| ResponsesCreateParams.FinanceSearchTool
| ResponsesCreateParams.SandboxTool
>;
}

Expand Down Expand Up @@ -896,6 +897,14 @@ export namespace ResponsesCreateParams {
*/
type: 'finance_search';
}

export interface SandboxTool {
/**
* Enables the `sandbox` tool. The model can execute code in an isolated container
* during the request and use the result in its final answer.
*/
type: 'sandbox';
}
}

export interface ResponsesUsage {
Expand Down Expand Up @@ -1095,6 +1104,7 @@ export interface ResponseCreateParamsBase {
| ResponseCreateParams.PeopleSearchTool
| FunctionTool
| ResponseCreateParams.FinanceSearchTool
| ResponseCreateParams.SandboxTool
>;
}

Expand Down Expand Up @@ -1192,6 +1202,14 @@ export namespace ResponseCreateParams {
type: 'finance_search';
}

export interface SandboxTool {
/**
* Enables the `sandbox` tool. The model can execute code in an isolated container
* during the request and use the result in its final answer.
*/
type: 'sandbox';
}

export type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming;
export type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming;
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.30.1'; // x-release-please-version
export const VERSION = '0.31.0'; // x-release-please-version