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

Feature/Env Variables #1422

Merged
merged 19 commits into from
Dec 27, 2023
Merged

Feature/Env Variables #1422

merged 19 commits into from
Dec 27, 2023

Conversation

HenryHengZJ
Copy link
Contributor

  • Allow user to add variables to be used in custom tool function
  • Allow sessionid, chatid to be used in custom tool function

resumeMessages?(messages: IMessage[]): Promise<void>
}

export abstract class FlowiseMemory extends BufferMemory implements MemoryMethods {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need these abstract method declarations in the body? Since the class is abstract the implementation would anyway have to implement all the interface methods!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can remove all these and retain the MemoryMethods, then implement this method for every other memory nodes. However the reason I make it into a base class is because I wanted to use this class in OpenAIFunctionAgent so we can have some inferences:
image

packages/components/src/Interface.ts Show resolved Hide resolved
packages/components/src/Interface.ts Show resolved Hide resolved
packages/server/src/utils/index.ts Outdated Show resolved Hide resolved
packages/ui/src/views/variables/index.js Outdated Show resolved Hide resolved
@vinodkiran vinodkiran self-assigned this Dec 27, 2023
@HenryHengZJ HenryHengZJ merged commit 6921967 into main Dec 27, 2023
2 checks passed
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.

None yet

2 participants