update create_agent usage due to recent changes - #788
Merged
Conversation
Eugene Yurtsev (eyurtsev)
marked this pull request as ready for review
October 8, 2025 15:18
Eugene Yurtsev (eyurtsev)
requested review from
Kathryn May (katmayb) and
Lauren Hirata Singh (lnhsingh)
as code owners
October 8, 2025 15:18
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the documentation to reflect recent API changes in the create_agent function, specifically changing the parameter name from prompt to system_prompt. The changes ensure all documentation examples use the correct parameter name for consistency with the updated API.
- Updated parameter name from
prompttosystem_promptincreate_agentfunction calls - Renamed agent variable from
agent_executortoagentfor consistency - Applied changes across multiple documentation files covering different tool integrations and agent usage patterns
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/oss/python/integrations/tools/sql_database.mdx | Updated create_agent calls to use system_prompt parameter and renamed agent_executor to agent |
| src/oss/python/integrations/tools/requests.mdx | Updated create_agent call to use system_prompt parameter and renamed agent_executor to agent |
| src/oss/langchain/rag.mdx | Updated multiple create_agent calls to use system_prompt parameter |
| src/oss/langchain/agents.mdx | Updated create_agent call to use system_prompt parameter |
Contributor
|
Preview ID generated: preview-eugene-1759936712-31869d7 |
Sydney Runkle (sydney-runkle)
approved these changes
Oct 8, 2025
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.
Overview
Type of change
Type: [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other]
Related issues/PRs
Checklist
docs devsrc/docs.jsonif neededAdditional notes