examples: update all examples to use the new LLMContextAggregatorPair tuple

This commit is contained in:
Aleix Conchillo Flaqué
2026-01-13 13:40:03 -08:00
parent 1ab3bf2ef6
commit 861588e4a3
155 changed files with 450 additions and 475 deletions

View File

@@ -215,16 +215,16 @@ Remember, your responses should be short. Just one or two sentences, usually."""
llm.register_function("load_conversation", load_conversation)
context = LLMContext([{"role": "user", "content": "Say hello!"}], tools)
context_aggregator = LLMContextAggregatorPair(context)
user_aggregator, assistant_aggregator = LLMContextAggregatorPair(context)
pipeline = Pipeline(
[
transport.input(), # Transport user input
stt, # STT
context_aggregator.user(),
user_aggregator,
llm, # LLM
transport.output(), # Transport bot output
context_aggregator.assistant(),
assistant_aggregator,
]
)