Skip to content

Conversation

@vowelparrot
Copy link
Contributor

@vowelparrot vowelparrot commented Jun 21, 2023

Add better docstrings for agent executor as well

Inspo: langchain-ai/langchainjs#1722
image

@vercel
Copy link

vercel bot commented Jun 21, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jun 21, 2023 7:17pm

)
try:
# TODO: Add tags from the serialized object directly.
tags_.append(agent_obj._agent_type)
Copy link
Contributor Author

@vowelparrot vowelparrot Jun 21, 2023

Choose a reason for hiding this comment

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

Not sure why this isn't giving a lint error. Also fine removing this bit. Also could add in a root validator put in the class initializer in case people aren't using this method all the time.

Copy link

@QodoAI-Agent QodoAI-Agent left a comment

Choose a reason for hiding this comment

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

PR Analysis

  • 🎯 Main theme: This PR adds tags to the agent initialization and improves docstrings in the agent executor.
  • 🔍 Description and title: yes
  • 📌 Type of PR: Enhancement
  • 🧪 Relevant tests added: no
  • ⚠️ Unrelated changes: no
  • Minimal and focused: yes

PR Feedback

  • 💡 Suggestions: Consider adding tests to ensure the tags are applied correctly during agent initialization.

  • 🌱 Minor suggestions: In the docstring for handle_parsing_errors, there is an extra 's' on a new line. Please remove it.

  • 🤖 Code Suggestions:

    • In file langchain/agents/initialize.py: It would be better to use a more descriptive variable name for tags_. Consider renaming it to applied_tags. [minor]

@vowelparrot vowelparrot merged commit 9c09861 into master Jun 23, 2023
@vowelparrot vowelparrot deleted the vwp/agent_executor_tags branch June 23, 2023 05:35
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants