divakar-cli-agent 0.1.3__tar.gz → 0.1.4__tar.gz
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.
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/PKG-INFO +1 -1
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/pyproject.toml +1 -1
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/src/cli_agent/main.py +2 -2
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/.gitignore +0 -0
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/README.md +0 -0
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/requirements.txt +0 -0
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/src/cli_agent/.env.example +0 -0
- {divakar_cli_agent-0.1.3 → divakar_cli_agent-0.1.4}/src/cli_agent/__init__.py +0 -0
|
@@ -12,7 +12,7 @@ from langchain.agents import create_agent
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@app.command()
|
|
15
|
-
def hellob(
|
|
15
|
+
def hellob():
|
|
16
16
|
load_dotenv(os.path.join(os.getcwd(),".env"))
|
|
17
17
|
|
|
18
18
|
OPENAI_API_KEY=os.environ.get("OPENAI_API_KEY")
|
|
@@ -31,7 +31,7 @@ def hellob(commad:str):
|
|
|
31
31
|
|
|
32
32
|
while True:
|
|
33
33
|
input = typer.prompt(">>>")
|
|
34
|
-
if input !="exit":
|
|
34
|
+
if input !="/exit":
|
|
35
35
|
result = agent.invoke({"messages":[{"role":"user","content":input}]})
|
|
36
36
|
rprint(result["messages"][-1].content_blocks)
|
|
37
37
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|