uipath-langchain 0.0.113__py3-none-any.whl → 0.0.114__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 uipath-langchain might be problematic. Click here for more details.
- uipath_langchain/_cli/_templates/main.py.template +3 -3
- {uipath_langchain-0.0.113.dist-info → uipath_langchain-0.0.114.dist-info}/METADATA +1 -1
- {uipath_langchain-0.0.113.dist-info → uipath_langchain-0.0.114.dist-info}/RECORD +6 -6
- {uipath_langchain-0.0.113.dist-info → uipath_langchain-0.0.114.dist-info}/WHEEL +0 -0
- {uipath_langchain-0.0.113.dist-info → uipath_langchain-0.0.114.dist-info}/entry_points.txt +0 -0
- {uipath_langchain-0.0.113.dist-info → uipath_langchain-0.0.114.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,13 +5,13 @@ from langgraph.graph import START, StateGraph, END
|
|
|
5
5
|
from pydantic import BaseModel
|
|
6
6
|
import os
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class GraphState(BaseModel):
|
|
9
9
|
topic: str
|
|
10
10
|
|
|
11
11
|
class GraphOutput(BaseModel):
|
|
12
12
|
report: str
|
|
13
13
|
|
|
14
|
-
async def generate_report(state:
|
|
14
|
+
async def generate_report(state: GraphState) -> GraphOutput:
|
|
15
15
|
if os.getenv("ANTHROPIC_API_KEY"):
|
|
16
16
|
llm_model = ChatAnthropic(model="claude-3-5-sonnet-latest")
|
|
17
17
|
elif os.getenv("OPENAI_API_KEY"):
|
|
@@ -23,7 +23,7 @@ async def generate_report(state: GraphInput) -> GraphOutput:
|
|
|
23
23
|
output = await llm_model.ainvoke([SystemMessage(system_prompt), HumanMessage(state.topic)])
|
|
24
24
|
return GraphOutput(report=output.content)
|
|
25
25
|
|
|
26
|
-
builder = StateGraph(
|
|
26
|
+
builder = StateGraph(GraphState, output=GraphOutput)
|
|
27
27
|
|
|
28
28
|
builder.add_node("generate_report", generate_report)
|
|
29
29
|
|
|
@@ -10,7 +10,7 @@ uipath_langchain/_cli/_runtime/_input.py,sha256=vZ8vfVxvPSaPWmIPghvNx1VRKzbalHsK
|
|
|
10
10
|
uipath_langchain/_cli/_runtime/_output.py,sha256=yJOZPWv2FRUJWv1NRs9JmpB4QMTDXu8jrxoaKrfJvzw,9078
|
|
11
11
|
uipath_langchain/_cli/_runtime/_runtime.py,sha256=SjOZkal6c1ZeZNFzW23DoAnF6LNQ2nN0dISSu2cSFhQ,13881
|
|
12
12
|
uipath_langchain/_cli/_templates/langgraph.json.template,sha256=eeh391Gta_hoRgaNaZ58nW1LNvCVXA7hlAH6l7Veous,107
|
|
13
|
-
uipath_langchain/_cli/_templates/main.py.template,sha256=
|
|
13
|
+
uipath_langchain/_cli/_templates/main.py.template,sha256=nMJQIYPlRk90iANfNVpkJ2EQX20Dxsyq92-BucEz_UM,1189
|
|
14
14
|
uipath_langchain/_cli/_utils/_graph.py,sha256=P7m03i6kcLda8XVpVtppcM8GOrSW62zWcv3rCR1H5zs,7086
|
|
15
15
|
uipath_langchain/_utils/__init__.py,sha256=WoY66enCygRXTh6v5B1UrRcFCnQYuPJ8oqDkwomXzLc,194
|
|
16
16
|
uipath_langchain/_utils/_request_mixin.py,sha256=t_1HWBxqEl-wsSk9ubmIM-8vs9BlNy4ZVBxtDxktn6U,18489
|
|
@@ -29,8 +29,8 @@ uipath_langchain/tracers/_instrument_traceable.py,sha256=0e841zVzcPWjOGtmBx0GeHb
|
|
|
29
29
|
uipath_langchain/tracers/_utils.py,sha256=JOT1tKMdvqjMDtj2WbmbOWMeMlTXBWavxWpogX7KlRA,1543
|
|
30
30
|
uipath_langchain/vectorstores/__init__.py,sha256=w8qs1P548ud1aIcVA_QhBgf_jZDrRMK5Lono78yA8cs,114
|
|
31
31
|
uipath_langchain/vectorstores/context_grounding_vectorstore.py,sha256=TncIXG-YsUlO0R5ZYzWsM-Dj1SVCZbzmo2LraVxXelc,9559
|
|
32
|
-
uipath_langchain-0.0.
|
|
33
|
-
uipath_langchain-0.0.
|
|
34
|
-
uipath_langchain-0.0.
|
|
35
|
-
uipath_langchain-0.0.
|
|
36
|
-
uipath_langchain-0.0.
|
|
32
|
+
uipath_langchain-0.0.114.dist-info/METADATA,sha256=BTxHYf-8_z61F3QMH8WQFXiaqbQtMJpgYB7x8BiZKZQ,4166
|
|
33
|
+
uipath_langchain-0.0.114.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
uipath_langchain-0.0.114.dist-info/entry_points.txt,sha256=FUtzqGOEntlJKMJIXhQUfT7ZTbQmGhke1iCmDWZaQZI,81
|
|
35
|
+
uipath_langchain-0.0.114.dist-info/licenses/LICENSE,sha256=JDpt-uotAkHFmxpwxi6gwx6HQ25e-lG4U_Gzcvgp7JY,1063
|
|
36
|
+
uipath_langchain-0.0.114.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|