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

fix(prebuilt): use messagesStateReducer to support more formats #387

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

dqbd
Copy link
Contributor

@dqbd dqbd commented Aug 27, 2024

Fixes # (issue)

@@ -124,7 +124,7 @@ export function createFunctionCallingExecutor<Model extends object>({
// So we annotate the messages attribute with operator.add
const schema: StateGraphArgs<FunctionCallingExecutorState>["channels"] = {
messages: {
value: (x: BaseMessage[], y: BaseMessage[]) => x.concat(y),
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this one deprecated?

@jacoblee93 jacoblee93 merged commit e4a7858 into main Aug 27, 2024
17 checks passed
@jacoblee93 jacoblee93 deleted the dqbd/message-reducer-prebuilt branch August 27, 2024 16:25
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.

3 participants