livekit-plugins-langchain 1.1.5__py3-none-any.whl → 1.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of livekit-plugins-langchain might be problematic. Click here for more details.
- livekit/plugins/langchain/__init__.py +1 -4
- livekit/plugins/langchain/langgraph.py +3 -3
- livekit/plugins/langchain/version.py +1 -1
- {livekit_plugins_langchain-1.1.5.dist-info → livekit_plugins_langchain-1.1.6.dist-info}/METADATA +3 -3
- livekit_plugins_langchain-1.1.6.dist-info/RECORD +7 -0
- livekit_plugins_langchain-1.1.5.dist-info/RECORD +0 -7
- {livekit_plugins_langchain-1.1.5.dist-info → livekit_plugins_langchain-1.1.6.dist-info}/WHEEL +0 -0
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
See https://docs.livekit.io/agents/integrations/llm/langchain/ for more information.
|
|
18
|
-
"""
|
|
15
|
+
"""LangChain plugin for LiveKit Agents."""
|
|
19
16
|
|
|
20
17
|
from .langgraph import LangGraphStream, LLMAdapter
|
|
21
18
|
from .version import __version__
|
|
@@ -106,11 +106,11 @@ class LangGraphStream(llm.LLMStream):
|
|
|
106
106
|
content = item.text_content
|
|
107
107
|
if content:
|
|
108
108
|
if item.role == "assistant":
|
|
109
|
-
messages.append(AIMessage(content=content))
|
|
109
|
+
messages.append(AIMessage(content=content, id=item.id))
|
|
110
110
|
elif item.role == "user":
|
|
111
|
-
messages.append(HumanMessage(content=content))
|
|
111
|
+
messages.append(HumanMessage(content=content, id=item.id))
|
|
112
112
|
elif item.role in ["system", "developer"]:
|
|
113
|
-
messages.append(SystemMessage(content=content))
|
|
113
|
+
messages.append(SystemMessage(content=content, id=item.id))
|
|
114
114
|
|
|
115
115
|
return {
|
|
116
116
|
"messages": messages,
|
{livekit_plugins_langchain-1.1.5.dist-info → livekit_plugins_langchain-1.1.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-langchain
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.6
|
|
4
4
|
Summary: LangChain/LangGraph plugin for LiveKit agents
|
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
|
6
6
|
Project-URL: Website, https://livekit.io/
|
|
@@ -19,7 +19,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
|
19
19
|
Requires-Python: >=3.9.0
|
|
20
20
|
Requires-Dist: langchain-core>=0.3.0
|
|
21
21
|
Requires-Dist: langgraph>=0.3.0
|
|
22
|
-
Requires-Dist: livekit-agents>=1.1.
|
|
22
|
+
Requires-Dist: livekit-agents>=1.1.6
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
25
25
|
# LangChain plugin for LiveKit Agents
|
|
@@ -46,7 +46,7 @@ from livekit.plugins import langchain
|
|
|
46
46
|
...
|
|
47
47
|
|
|
48
48
|
def entrypoint(ctx: JobContext):
|
|
49
|
-
graph = StateGraph(...).
|
|
49
|
+
graph = StateGraph(...).compile()
|
|
50
50
|
|
|
51
51
|
session = AgentSession(
|
|
52
52
|
vad=...,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
livekit/plugins/langchain/__init__.py,sha256=orJAv6qYRWJatEdyMlf9D93GXxeK-ELYa9XIqYF76hw,1140
|
|
2
|
+
livekit/plugins/langchain/langgraph.py,sha256=KxbK6AbAkf_2oZ6eACCP9J3jZ-p1SqsTG2NBzLWDK-s,4408
|
|
3
|
+
livekit/plugins/langchain/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
livekit/plugins/langchain/version.py,sha256=C1sAwa8_MOqGxB3HGVQgX6itEB8BLuyHfcFAImiahWU,600
|
|
5
|
+
livekit_plugins_langchain-1.1.6.dist-info/METADATA,sha256=8W_mlSILPxhmwNu4gtdgaKQdridtnO2I1bbT2QRWGOI,1735
|
|
6
|
+
livekit_plugins_langchain-1.1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
livekit_plugins_langchain-1.1.6.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
livekit/plugins/langchain/__init__.py,sha256=IWe25ou2cWD3Ql7xQlgUGe2-BrvKGr5B6qg-yncrglk,1221
|
|
2
|
-
livekit/plugins/langchain/langgraph.py,sha256=MYC4uiPcBMIIECZhXx1gKXGIYupRhHUQIN3CuvG7Dx8,4372
|
|
3
|
-
livekit/plugins/langchain/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
livekit/plugins/langchain/version.py,sha256=rRK8nnO33BRtNy1AL1nbIp4aLQrUU4FsDtPY1beEGN4,600
|
|
5
|
-
livekit_plugins_langchain-1.1.5.dist-info/METADATA,sha256=VNfpjWTw5Bs4bWaTrsGvzwg2Osav9mlQSe4cF258XN0,1733
|
|
6
|
-
livekit_plugins_langchain-1.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
livekit_plugins_langchain-1.1.5.dist-info/RECORD,,
|
{livekit_plugins_langchain-1.1.5.dist-info → livekit_plugins_langchain-1.1.6.dist-info}/WHEEL
RENAMED
|
File without changes
|