Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e508ce6fe6 |
@ -84,13 +84,13 @@ class State(TypedDict):
|
|||||||
|
|
||||||
|
|
||||||
# Creamos el graph con el estado definido
|
# Creamos el graph con el estado definido
|
||||||
graph= create_react_agent(
|
graph = create_react_agent(
|
||||||
model = llm, tools = tools, state_schema = State,
|
model=llm, tools=tools, state_schema=State,
|
||||||
state_modifier = system_prompt,
|
state_modifier=system_prompt,
|
||||||
checkpointer = MemorySaver()
|
checkpointer=MemorySaver()
|
||||||
)
|
)
|
||||||
|
|
||||||
config= {"configurable": {"thread_id": "thread-1", "recursion_limit": 50}}
|
config = {"configurable": {"thread_id": "thread-1", "recursion_limit": 50}}
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@ -101,8 +101,8 @@ while True:
|
|||||||
|
|
||||||
events = graph.stream(
|
events = graph.stream(
|
||||||
{"messages": [("user", user_input)],
|
{"messages": [("user", user_input)],
|
||||||
"is_last_step": False},
|
"is_last_step": False},
|
||||||
config, stream_mode = "updates")
|
config, stream_mode="updates")
|
||||||
|
|
||||||
for event in events:
|
for event in events:
|
||||||
if "agent" in event:
|
if "agent" in event:
|
||||||
|
142
requirements.txt
142
requirements.txt
@ -1,140 +1,12 @@
|
|||||||
aiohappyeyeballs==2.4.0
|
|
||||||
aiohttp==3.10.6
|
|
||||||
aiosignal==1.3.1
|
|
||||||
annotated-types==0.7.0
|
|
||||||
anyio==4.6.0
|
|
||||||
asgiref==3.8.1
|
|
||||||
attrs==24.2.0
|
|
||||||
backoff==2.2.1
|
|
||||||
bcrypt==4.2.0
|
|
||||||
beautifulsoup4==4.12.3
|
|
||||||
blinker==1.8.2
|
|
||||||
build==1.2.2.post1
|
|
||||||
cachetools==5.5.0
|
|
||||||
certifi==2024.8.30
|
|
||||||
charset-normalizer==3.3.2
|
|
||||||
chroma-hnswlib==0.7.3
|
|
||||||
chromadb==0.5.3
|
|
||||||
click==8.1.7
|
|
||||||
coloredlogs==15.0.1
|
|
||||||
dataclasses-json==0.6.7
|
|
||||||
Deprecated==1.2.14
|
|
||||||
distro==1.9.0
|
|
||||||
durationpy==0.9
|
|
||||||
fastapi==0.115.4
|
|
||||||
filelock==3.16.1
|
|
||||||
Flask==3.0.3
|
|
||||||
flatbuffers==24.3.25
|
|
||||||
frozenlist==1.4.1
|
|
||||||
fsspec==2024.10.0
|
|
||||||
google==3.0.0
|
|
||||||
google-api-core==2.19.0
|
|
||||||
google-api-python-client==2.131.0
|
|
||||||
google-auth==2.29.0
|
|
||||||
google-auth-httplib2==0.2.0
|
|
||||||
google-auth-oauthlib==1.2.0
|
|
||||||
googleapis-common-protos==1.63.0
|
|
||||||
greenlet==3.1.1
|
|
||||||
grpcio==1.67.0
|
|
||||||
h11==0.14.0
|
|
||||||
httpcore==1.0.5
|
|
||||||
httplib2==0.22.0
|
|
||||||
httptools==0.6.4
|
|
||||||
httpx==0.27.2
|
|
||||||
huggingface-hub==0.26.2
|
|
||||||
humanfriendly==10.0
|
|
||||||
idna==3.10
|
|
||||||
importlib_metadata==8.4.0
|
|
||||||
importlib_resources==6.4.5
|
|
||||||
itsdangerous==2.2.0
|
|
||||||
Jinja2==3.1.4
|
|
||||||
jiter==0.5.0
|
|
||||||
jsonpatch==1.33
|
|
||||||
jsonpointer==3.0.0
|
|
||||||
kubernetes==31.0.0
|
|
||||||
langchain==0.3.1
|
langchain==0.3.1
|
||||||
langchain-chroma==0.1.4
|
|
||||||
langchain-community==0.3.1
|
langchain-community==0.3.1
|
||||||
langchain-core==0.3.6
|
|
||||||
langchain-openai==0.2.0
|
|
||||||
langchain-text-splitters==0.3.0
|
|
||||||
langgraph==0.2.28
|
langgraph==0.2.28
|
||||||
langgraph-checkpoint==1.0.11
|
langchain-openai==0.2.0
|
||||||
langsmith==0.1.128
|
google==3.0.0
|
||||||
markdown-it-py==3.0.0
|
google-auth==2.29.0
|
||||||
MarkupSafe==2.1.5
|
google-auth-oauthlib==1.2.0
|
||||||
marshmallow==3.22.0
|
google-api-python-client==2.131.0
|
||||||
mdurl==0.1.2
|
langchain-chroma==0.1.4
|
||||||
mmh3==5.0.1
|
|
||||||
monotonic==1.6
|
|
||||||
mpmath==1.3.0
|
|
||||||
msgpack==1.1.0
|
|
||||||
multidict==6.1.0
|
|
||||||
mypy-extensions==1.0.0
|
|
||||||
numpy==1.26.4
|
|
||||||
oauthlib==3.2.2
|
|
||||||
onnxruntime==1.19.2
|
|
||||||
openai==1.48.0
|
|
||||||
opentelemetry-api==1.27.0
|
|
||||||
opentelemetry-exporter-otlp-proto-common==1.27.0
|
|
||||||
opentelemetry-exporter-otlp-proto-grpc==1.27.0
|
|
||||||
opentelemetry-instrumentation==0.48b0
|
|
||||||
opentelemetry-instrumentation-asgi==0.48b0
|
|
||||||
opentelemetry-instrumentation-fastapi==0.48b0
|
|
||||||
opentelemetry-proto==1.27.0
|
|
||||||
opentelemetry-sdk==1.27.0
|
|
||||||
opentelemetry-semantic-conventions==0.48b0
|
|
||||||
opentelemetry-util-http==0.48b0
|
|
||||||
orjson==3.10.7
|
|
||||||
overrides==7.7.0
|
|
||||||
packaging==24.1
|
|
||||||
posthog==3.7.0
|
|
||||||
proto-plus==1.24.0
|
|
||||||
protobuf==4.25.5
|
|
||||||
pyasn1==0.6.1
|
|
||||||
pyasn1_modules==0.4.1
|
|
||||||
pydantic==2.9.2
|
|
||||||
pydantic-settings==2.5.2
|
|
||||||
pydantic_core==2.23.4
|
|
||||||
Pygments==2.18.0
|
|
||||||
pyparsing==3.1.4
|
|
||||||
pypdf==5.1.0
|
|
||||||
PyPika==0.48.9
|
|
||||||
pyproject_hooks==1.2.0
|
|
||||||
pyTelegramBotAPI==4.23.0
|
|
||||||
python-dateutil==2.9.0.post0
|
|
||||||
python-dotenv==1.0.1
|
|
||||||
pytz==2024.2
|
pytz==2024.2
|
||||||
PyYAML==6.0.2
|
|
||||||
regex==2024.9.11
|
|
||||||
requests==2.32.3
|
|
||||||
requests-oauthlib==2.0.0
|
|
||||||
rich==13.9.3
|
|
||||||
rsa==4.9
|
|
||||||
setuptools==75.2.0
|
|
||||||
shellingham==1.5.4
|
|
||||||
six==1.16.0
|
|
||||||
sniffio==1.3.1
|
|
||||||
soupsieve==2.6
|
|
||||||
SQLAlchemy==2.0.35
|
|
||||||
starlette==0.41.2
|
|
||||||
sympy==1.13.3
|
|
||||||
telebot==0.0.5
|
telebot==0.0.5
|
||||||
tenacity==8.5.0
|
|
||||||
tiktoken==0.7.0
|
|
||||||
tokenizers==0.20.1
|
|
||||||
tqdm==4.66.5
|
|
||||||
typer==0.12.5
|
|
||||||
typing-inspect==0.9.0
|
|
||||||
typing_extensions==4.12.2
|
|
||||||
uritemplate==4.1.1
|
|
||||||
urllib3==2.2.3
|
|
||||||
uvicorn==0.32.0
|
|
||||||
uvloop==0.21.0
|
|
||||||
watchfiles==0.24.0
|
|
||||||
websocket-client==1.8.0
|
|
||||||
websockets==13.1
|
|
||||||
Werkzeug==3.0.4
|
|
||||||
wrapt==1.16.0
|
|
||||||
yarl==1.12.1
|
|
||||||
zipp==3.20.2
|
|
||||||
|
141
requirements_1.txt
Normal file
141
requirements_1.txt
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
aiohappyeyeballs==2.4.0
|
||||||
|
aiohttp==3.10.6
|
||||||
|
aiosignal==1.3.1
|
||||||
|
annotated-types==0.7.0
|
||||||
|
anyio==4.6.0
|
||||||
|
asgiref==3.8.1
|
||||||
|
attrs==24.2.0
|
||||||
|
backoff==2.2.1
|
||||||
|
bcrypt==4.2.0
|
||||||
|
beautifulsoup4==4.12.3
|
||||||
|
blinker==1.8.2
|
||||||
|
build==1.2.2.post1
|
||||||
|
cachetools==5.5.0
|
||||||
|
certifi==2024.8.30
|
||||||
|
charset-normalizer==3.3.2
|
||||||
|
chroma-hnswlib==0.7.3
|
||||||
|
chromadb==0.5.3
|
||||||
|
click==8.1.7
|
||||||
|
coloredlogs==15.0.1
|
||||||
|
dataclasses-json==0.6.7
|
||||||
|
Deprecated==1.2.14
|
||||||
|
distro==1.9.0
|
||||||
|
durationpy==0.9
|
||||||
|
fastapi==0.115.4
|
||||||
|
filelock==3.16.1
|
||||||
|
Flask==3.0.3
|
||||||
|
flatbuffers==24.3.25
|
||||||
|
frozenlist==1.4.1
|
||||||
|
fsspec==2024.10.0
|
||||||
|
google==3.0.0
|
||||||
|
google-api-core==2.19.0
|
||||||
|
google-api-python-client==2.131.0
|
||||||
|
google-auth==2.29.0
|
||||||
|
google-auth-httplib2==0.2.0
|
||||||
|
google-auth-oauthlib==1.2.0
|
||||||
|
googleapis-common-protos==1.63.0
|
||||||
|
greenlet==3.1.1
|
||||||
|
grpcio==1.67.0
|
||||||
|
h11==0.14.0
|
||||||
|
httpcore==1.0.5
|
||||||
|
httplib2==0.22.0
|
||||||
|
httptools==0.6.4
|
||||||
|
httpx==0.27.2
|
||||||
|
huggingface-hub==0.26.2
|
||||||
|
humanfriendly==10.0
|
||||||
|
idna==3.10
|
||||||
|
importlib_metadata==8.4.0
|
||||||
|
importlib_resources==6.4.5
|
||||||
|
itsdangerous==2.2.0
|
||||||
|
Jinja2==3.1.4
|
||||||
|
jiter==0.5.0
|
||||||
|
jsonpatch==1.33
|
||||||
|
jsonpointer==3.0.0
|
||||||
|
kubernetes==31.0.0
|
||||||
|
langchain==0.3.1
|
||||||
|
langchain-chroma==0.1.4
|
||||||
|
langchain-chroma==0.1.4
|
||||||
|
langchain-community==0.3.1
|
||||||
|
langchain-core==0.3.6
|
||||||
|
langchain-openai==0.2.0
|
||||||
|
langchain-text-splitters==0.3.0
|
||||||
|
langgraph==0.2.28
|
||||||
|
langgraph-checkpoint==1.0.11
|
||||||
|
langsmith==0.1.128
|
||||||
|
markdown-it-py==3.0.0
|
||||||
|
MarkupSafe==2.1.5
|
||||||
|
marshmallow==3.22.0
|
||||||
|
mdurl==0.1.2
|
||||||
|
mmh3==5.0.1
|
||||||
|
monotonic==1.6
|
||||||
|
mpmath==1.3.0
|
||||||
|
msgpack==1.1.0
|
||||||
|
multidict==6.1.0
|
||||||
|
mypy-extensions==1.0.0
|
||||||
|
numpy==1.26.4
|
||||||
|
oauthlib==3.2.2
|
||||||
|
onnxruntime==1.19.2
|
||||||
|
openai==1.48.0
|
||||||
|
opentelemetry-api==1.27.0
|
||||||
|
opentelemetry-exporter-otlp-proto-common==1.27.0
|
||||||
|
opentelemetry-exporter-otlp-proto-grpc==1.27.0
|
||||||
|
opentelemetry-instrumentation==0.48b0
|
||||||
|
opentelemetry-instrumentation-asgi==0.48b0
|
||||||
|
opentelemetry-instrumentation-fastapi==0.48b0
|
||||||
|
opentelemetry-proto==1.27.0
|
||||||
|
opentelemetry-sdk==1.27.0
|
||||||
|
opentelemetry-semantic-conventions==0.48b0
|
||||||
|
opentelemetry-util-http==0.48b0
|
||||||
|
orjson==3.10.7
|
||||||
|
overrides==7.7.0
|
||||||
|
packaging==24.1
|
||||||
|
posthog==3.7.0
|
||||||
|
proto-plus==1.24.0
|
||||||
|
protobuf==4.25.5
|
||||||
|
pyasn1==0.6.1
|
||||||
|
pyasn1_modules==0.4.1
|
||||||
|
pydantic==2.9.2
|
||||||
|
pydantic-settings==2.5.2
|
||||||
|
pydantic_core==2.23.4
|
||||||
|
Pygments==2.18.0
|
||||||
|
pyparsing==3.1.4
|
||||||
|
pypdf==5.1.0
|
||||||
|
PyPika==0.48.9
|
||||||
|
pyproject_hooks==1.2.0
|
||||||
|
pyTelegramBotAPI==4.23.0
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
python-dotenv==1.0.1
|
||||||
|
pytz==2024.2
|
||||||
|
PyYAML==6.0.2
|
||||||
|
regex==2024.9.11
|
||||||
|
requests==2.32.3
|
||||||
|
requests-oauthlib==2.0.0
|
||||||
|
rich==13.9.3
|
||||||
|
rsa==4.9
|
||||||
|
setuptools==75.2.0
|
||||||
|
shellingham==1.5.4
|
||||||
|
six==1.16.0
|
||||||
|
sniffio==1.3.1
|
||||||
|
soupsieve==2.6
|
||||||
|
SQLAlchemy==2.0.35
|
||||||
|
starlette==0.41.2
|
||||||
|
sympy==1.13.3
|
||||||
|
telebot==0.0.5
|
||||||
|
tenacity==8.5.0
|
||||||
|
tiktoken==0.7.0
|
||||||
|
tokenizers==0.20.1
|
||||||
|
tqdm==4.66.5
|
||||||
|
typer==0.12.5
|
||||||
|
typing-inspect==0.9.0
|
||||||
|
typing_extensions==4.12.2
|
||||||
|
uritemplate==4.1.1
|
||||||
|
urllib3==2.2.3
|
||||||
|
uvicorn==0.32.0
|
||||||
|
uvloop==0.21.0
|
||||||
|
watchfiles==0.24.0
|
||||||
|
websocket-client==1.8.0
|
||||||
|
websockets==13.1
|
||||||
|
Werkzeug==3.0.4
|
||||||
|
wrapt==1.16.0
|
||||||
|
yarl==1.12.1
|
||||||
|
zipp==3.20.2
|
@ -1 +1 @@
|
|||||||
{"token": "ya29.a0AeDClZBjncDp4ZwNKNtQ5ghKHPr1IT4XkgDc9QtvhPLrFGAR84f5r5iZPCd91VB7_WoJCG3iGQS0MU1n01xdRlEjDl7wVlKjKF0H680Bdim_bzykCXn3Jj0nVVkkHDOZP7RWeP1oAfY7Vjd4qbw_VxOdOzVzG_Bc6Auy4EJINAaCgYKAcYSARASFQHGX2MipaJllxIRMLCcZb2csCZECA0177", "refresh_token": "1//05nbircha66xlCgYIARAAGAUSNwF-L9IrxbE2v7kfLwXb4u0pD6Rin7xEBOTT83DeH7t2ttfD5CDmUCyhDsOaVRMRK_r8UtdoMq8", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "19011937557-bi5nh4afvg4tuqr87v6dp55qj9a9o1h2.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://mail.google.com/"], "universe_domain": "googleapis.com", "account": "", "expiry": "2024-10-30T01:16:56.882894Z"}
|
{"token": "ya29.a0AeDClZDZCMXgkdcUk5wxXI-UzONQq-h8gcmZ4e5NF5mcM8jHTrxixIktYvCMn0FZ5tR5FmLxHm_X4N-nPIwvrThg4CD40y1FaGFXFn4te9EwXNrzP7vm877wFq_qb97MMBbwO9NGCXcaGlRwSknTuF5RrFyIOeuMIMT0b0ZdaCgYKAR0SARASFQHGX2MihEN-nqX_Wr_YfPdjsM1KvA0175", "refresh_token": "1//05lbU7vbdj_XJCgYIARAAGAUSNwF-L9IrU0WFclkxDMXT1dAa8YNIxYSOgdJI-cz4tp1NLqdnReblHExSWLuCGJwiGy3eRpo3kjI", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "19011937557-bi5nh4afvg4tuqr87v6dp55qj9a9o1h2.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://mail.google.com/"], "universe_domain": "googleapis.com", "account": "", "expiry": "2024-11-01T21:06:41.341370Z"}
|
@ -1 +0,0 @@
|
|||||||
{"token": "ya29.a0AeDClZChMN7SEvjp3dFVZtee2pDoqAoPFC7AWiEeIG7H6qN2HDnf7c6DcFuc--aG60e1cAnOpoKf80H8aqrFFYbF4-F4LE_vz9MY8oc21Ra9PwM16FYxGGKcM2wcrrOGaFncs9Um9_yNxzAa6MUVNq88Y_Bhpr2F2mO3o53NjQaCgYKAZESARASFQHGX2Mi7EodrKchyiyPIZ4y5Lwh0Q0177", "refresh_token": "1//05CtNC-Z3ii8qCgYIARAAGAUSNwF-L9IrbOfrB0kNACEJ5HX4T-fmdNUqsGFqn1QFlvK_1L9h0emULUS1yU85IbaNyESXZSQzHU8", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "629922809906-pl9l1ipout6d5hh19ku50sfvnqgu8ir2.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/calendar"], "universe_domain": "googleapis.com", "account": "", "expiry": "2024-10-30T01:22:34.287442Z"}
|
|
Loading…
Reference in New Issue
Block a user