aggregators: expose LLM messages

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-20 10:51:37 -07:00
parent 1c8b9d813a
commit e4c990c677
2 changed files with 15 additions and 0 deletions

View File

@@ -5,6 +5,13 @@ All notable changes to **pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Changed
- `LLMUserResponseAggregator` and `LLMAssistantResponseAggregator` internal
messages are now exposed through the `messages` property.
## [0.0.18] - 2024-05-20
### Fixed

View File

@@ -45,6 +45,14 @@ class LLMResponseAggregator(FrameProcessor):
# Reset our accumulator state.
self._reset()
@property
def messages(self):
return self._messages
@property
def role(self):
return self._role
#
# Frame processor
#