move LangchainProcessor to processors/frameworks and update CHANGELOG

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-31 14:00:07 -07:00
parent 0b691ff597
commit f087151db7
9 changed files with 31 additions and 25 deletions

View File

@@ -1,7 +1,10 @@
import unittest
#
# Copyright (c) 2024, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
from langchain.prompts import ChatPromptTemplate
from langchain_core.language_models import FakeStreamingListLLM
import unittest
from pipecat.frames.frames import (LLMFullResponseEndFrame,
LLMFullResponseStartFrame, StopTaskFrame,
@@ -14,7 +17,10 @@ from pipecat.pipeline.task import PipelineTask
from pipecat.processors.aggregators.llm_response import (
LLMAssistantResponseAggregator, LLMUserResponseAggregator)
from pipecat.processors.frame_processor import FrameProcessor
from pipecat.services.langchain import LangchainProcessor
from pipecat.processors.frameworks.langchain import LangchainProcessor
from langchain.prompts import ChatPromptTemplate
from langchain_core.language_models import FakeStreamingListLLM
class TestLangchain(unittest.IsolatedAsyncioTestCase):