divakar-cli-agent 0.1.0__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: divakar-cli-agent
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A custom CLI terminal agent
5
5
  Requires-Python: >=3.8
6
6
  Requires-Dist: annotated-doc==0.0.5
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "divakar-cli-agent"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "A custom CLI terminal agent"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -4,7 +4,6 @@ app = typer.Typer()
4
4
  from dotenv import load_dotenv
5
5
  from rich import print as rprint
6
6
 
7
- load_dotenv(os.path.join(os.getcwd()+".env"))
8
7
 
9
8
  from langchain.agents import create_agent
10
9
 
@@ -14,6 +13,7 @@ from langchain.agents import create_agent
14
13
 
15
14
  @app.command()
16
15
  def hellob(commad:str):
16
+ load_dotenv(os.path.join(os.getcwd(),".env"))
17
17
 
18
18
  OPENAI_API_KEY=os.environ.get("OPENAI_API_KEY")
19
19
 
@@ -21,6 +21,7 @@ def hellob(commad:str):
21
21
  rprint("No Env avaialable")
22
22
  rprint("Exiting the cli agent")
23
23
  typer.Exit()
24
+ return
24
25
 
25
26
 
26
27
  agent= create_agent(