docs(perplexity): document Agent API support (use_responses_api / useResponsesApi)#3965
Draft
James Liounis (jliounis) wants to merge 1 commit into
Draft
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents Agent API support for
ChatPerplexityin both Python and JavaScript, mirroring theuse_responses_api/useResponsesApiflag pattern thatChatOpenAIalready uses.This is the docs counterpart to:
feat(perplexity): add use_responses_api flag to ChatPerplexityfeat(perplexity): add useResponsesApi flag to ChatPerplexityStaged as draft until both code PRs land and the next
langchain-perplexity(Python) and@langchain/perplexity(JS) releases ship. Once those packages publish, this PR is ready to mark ready-for-review.What changed
Python —
src/oss/python/integrations/chat/perplexity.mdxAdded an "Agent API support (
use_responses_api)" section before "Using perplexity-specific parameters" with:web_searchblocks).use_responses_api=True.tools=[{"type": "web_search"}].JavaScript —
src/oss/javascript/integrations/chat/perplexity.mdxAdded an "Agent API support (
useResponsesApi)" section before "API reference" with TypeScript equivalents of the Python examples.Provider pages
src/oss/python/integrations/providers/perplexity.mdx— 1-line callout in the Chat models section linking to the new chat-page section.src/oss/javascript/integrations/providers/perplexity.mdx— same, for JS.Conventions followed
sonarmodel branding — onlysonar-pro(Search API) and Agent API model names where relevant.ChatOpenAIuse_responses_apidocs.#agent-api-support-use_responses_api,#agent-api-support-useresponsesapi) match the Mintlify slugification of the new section headers.Why draft
Holding as draft so this lands together with (and not before) the SDK releases the flag. Once #37359 and #10884 are merged and the next
langchain-perplexity/@langchain/perplexityversions are released, I will mark this ready and ping reviewers.cc @langchain-ai/team
🤖 Drafted with assistance from Perplexity Computer.