-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
BaseMultiActionAgent is not exported by "langchain/agents" #3477
Comments
🤖 Hello @msalafia! I'm Dosu, a friendly bot created to assist you with bugs, answer your questions, and guide you on your journey to becoming a contributor. While we wait for a human maintainer, I'm here to help! Let's get started. Based on the provided context, it appears that the The decision to export a class or not usually depends on whether it's intended to be used directly by users of the library or if it's just an internal detail of the library. If If you believe that Here is the relevant code snippet from the provided context: /**
* Abstract base class for multi-action agents in LangChain. Extends the
* BaseAgent class and provides additional functionality specific to
* multi-action agents.
*/
export abstract class BaseMultiActionAgent extends BaseAgent {
_agentActionType(): string {
return "multi" as const;
}
/**
* Decide what to do, given some input.
*
* @param steps - Steps the LLM has taken so far, along with observations from each.
* @param inputs - User inputs.
* @param callbackManager - Callback manager.
*
* @returns Actions specifying what tools to use.
*/
abstract plan(
steps: AgentStep[],
inputs: ChainValues,
callbackManager?: CallbackManager
): Promise<AgentAction[] | AgentFinish>;
} You can find this code in the langchain/src/agents/agent.ts file of the langchainjs repository. I hope this helps! If you have any other questions, feel free to ask. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Just an oversight, please open a PR if you're able to! |
Nvm I got it |
As the title suggest, i was trying to import BaseMultiActionAgent but it seems like it's not exported
Is any reason for that, or it's just an error?
The text was updated successfully, but these errors were encountered: