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

add functions agent #6113

Merged
merged 4 commits into from
Jun 14, 2023
Merged

add functions agent #6113

merged 4 commits into from
Jun 14, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

Comment on lines -45 to +53
class AgentAction(NamedTuple):
@dataclass
class AgentAction:

Choose a reason for hiding this comment

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

Removal of the NamedTuple base class relationship (and making it a @dataclass instead) breaks the "Accessing Intermediate Steps" How-To, as AgentAction objects now are no longer JSON serializable.
image

@hwchase17 Any thoughts on how to best address this?

Copy link

Choose a reason for hiding this comment

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

The same situation I encountered,why you change NamedTuple to dataclass ? AgentAction can extend BaseModel?

Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
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