Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Updated docstring for RunnablePick #18832

Merged
merged 10 commits into from
Mar 20, 2024

Conversation

devesh-2002
Copy link
Contributor

Description: : Updated the docstring for RunnablePick. Added Overview and an Example for RunnablePick class.
Issue: : #18803

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 9, 2024
Copy link

vercel bot commented Mar 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Mar 20, 2024 1:52pm

@dosubot dosubot bot added Ɑ: Runnables Related to Runnables 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder labels Mar 9, 2024

`RunnablePick` class represents a runnable that selectively picks keys from a dictionary input. It allows you to specify one or more keys to extract from the input dictionary and returns a new dictionary containing only the selected keys.

Example :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the indentation may be off here

@devesh-2002
Copy link
Contributor Author

Can you check the indentation now? @hwchase17

@eyurtsev eyurtsev self-assigned this Mar 14, 2024
It returns a new dictionary containing only the selected keys.

Example :
.. code-block:: python
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..code-block and the contents needs to be further indented with additional tab -- you can use the other code-block examples as reference

@devesh-2002
Copy link
Contributor Author

Is the indentation correct now? @eyurtsev

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Mar 19, 2024
@eyurtsev
Copy link
Collaborator

Awesome thank you!

@eyurtsev eyurtsev enabled auto-merge (squash) March 19, 2024 16:37
@eyurtsev eyurtsev merged commit 3c4529a into langchain-ai:master Mar 20, 2024
95 checks passed
gkorland pushed a commit to FalkorDB/langchain that referenced this pull request Mar 30, 2024
**Description:** : Updated the docstring for RunnablePick. Added
Overview and an Example for RunnablePick class.
   **Issue:** : langchain-ai#18803
chrispy-snps pushed a commit to chrispy-snps/langchain that referenced this pull request Mar 30, 2024
**Description:** : Updated the docstring for RunnablePick. Added
Overview and an Example for RunnablePick class.
   **Issue:** : langchain-ai#18803
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
**Description:** : Updated the docstring for RunnablePick. Added
Overview and an Example for RunnablePick class.
   **Issue:** : #18803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder lgtm PR looks good. Use to confirm that a PR is ready for merging. Ɑ: Runnables Related to Runnables size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants