dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

Refactor history fields to only apply to nodes that use it + add history to router #822

Closed snopoke closed 3 weeks ago

snopoke commented 3 weeks ago

Description

Currently you can configure 'history' on nodes that don't support recording history. This change removes those fields from nodes that don't use it.

This PR also adds support for using history to the router node.

User Impact

Simpler node interface for nodes that don't need history support + actual working history for router nodes.

codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 93.61702% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apps/pipelines/nodes/nodes.py 92.68% 3 Missing :warning:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!