Skip to content

New LLMSingleActionAgent seems not working as expected #609

@ezg

Description

@ezg

I ran the new examples from here: https://js.langchain.com/docs/modules/agents/agents/custom_llm_chat

Putting in some debug statements in CustomOutputParser.parse it looks like it never actually uses a tool, but rather (at least in the example) gets the Final answer in the first LLM call.

I'm suspecting this has to do with the fact that stop words are not properly stored in the constructor of LLMSingleactionAgent here: https://github.com/hwchase17/langchainjs/blob/fc2987cb746d4d25ae55178e08336163b7277317/langchain/src/agents/agent.ts#L101

Or in its base class:
https://github.com/hwchase17/langchainjs/blob/fc2987cb746d4d25ae55178e08336163b7277317/langchain/src/agents/agent.ts#L28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions