divakar-cli-agent 0.1.0__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.
cli_agent/.env.example
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
OPENAI_API_KEY="your-key"
|
cli_agent/__init__.py
ADDED
|
File without changes
|
cli_agent/main.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import typer
|
|
2
|
+
import os
|
|
3
|
+
app = typer.Typer()
|
|
4
|
+
from dotenv import load_dotenv
|
|
5
|
+
from rich import print as rprint
|
|
6
|
+
|
|
7
|
+
load_dotenv(os.path.join(os.getcwd()+".env"))
|
|
8
|
+
|
|
9
|
+
from langchain.agents import create_agent
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@app.command()
|
|
16
|
+
def hellob(commad:str):
|
|
17
|
+
|
|
18
|
+
OPENAI_API_KEY=os.environ.get("OPENAI_API_KEY")
|
|
19
|
+
|
|
20
|
+
if not OPENAI_API_KEY:
|
|
21
|
+
rprint("No Env avaialable")
|
|
22
|
+
rprint("Exiting the cli agent")
|
|
23
|
+
typer.Exit()
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
agent= create_agent(
|
|
27
|
+
model='gpt-4o-mini',
|
|
28
|
+
system_prompt="You are a personal assistant that helps with user query"
|
|
29
|
+
)
|
|
30
|
+
if commad=="cli-agent":
|
|
31
|
+
|
|
32
|
+
while True:
|
|
33
|
+
input = typer.prompt(">>>")
|
|
34
|
+
if input !="exit":
|
|
35
|
+
result = agent.invoke({"messages":[{"role":"user","content":input}]})
|
|
36
|
+
rprint(result["messages"][-1].content_blocks)
|
|
37
|
+
else:
|
|
38
|
+
break
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def main():
|
|
42
|
+
app()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__=="__main__":
|
|
46
|
+
main()
|
|
47
|
+
# to exit mid way use typer.Exit() also havce typer.Abort( ) same but prints aborted can be done to have interuptions when the user stops
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: divakar-cli-agent
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A custom CLI terminal agent
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Requires-Dist: annotated-doc==0.0.5
|
|
7
|
+
Requires-Dist: annotated-types==0.8.0
|
|
8
|
+
Requires-Dist: anyio==4.14.2
|
|
9
|
+
Requires-Dist: certifi==2026.7.22
|
|
10
|
+
Requires-Dist: charset-normalizer==3.5.1
|
|
11
|
+
Requires-Dist: distro==1.9.0
|
|
12
|
+
Requires-Dist: dotenv==0.9.9
|
|
13
|
+
Requires-Dist: h11==0.16.0
|
|
14
|
+
Requires-Dist: httpcore2==2.12.0
|
|
15
|
+
Requires-Dist: httpcore==1.0.9
|
|
16
|
+
Requires-Dist: httpx2==2.12.0
|
|
17
|
+
Requires-Dist: httpx==0.28.1
|
|
18
|
+
Requires-Dist: idna==3.19
|
|
19
|
+
Requires-Dist: jiter==0.16.0
|
|
20
|
+
Requires-Dist: jsonpatch==1.33
|
|
21
|
+
Requires-Dist: jsonpointer==3.1.1
|
|
22
|
+
Requires-Dist: langchain-core==1.6.0
|
|
23
|
+
Requires-Dist: langchain-openai==1.6.0
|
|
24
|
+
Requires-Dist: langchain-protocol==0.0.19
|
|
25
|
+
Requires-Dist: langchain==1.3.17
|
|
26
|
+
Requires-Dist: langgraph-checkpoint==4.2.0
|
|
27
|
+
Requires-Dist: langgraph-prebuilt==1.1.0
|
|
28
|
+
Requires-Dist: langgraph-sdk==0.4.3
|
|
29
|
+
Requires-Dist: langgraph==1.2.11
|
|
30
|
+
Requires-Dist: langsmith==0.11.1
|
|
31
|
+
Requires-Dist: markdown-it-py==4.2.0
|
|
32
|
+
Requires-Dist: mdurl==0.1.2
|
|
33
|
+
Requires-Dist: openai==3.5.0
|
|
34
|
+
Requires-Dist: orjson==3.12.0
|
|
35
|
+
Requires-Dist: ormsgpack==1.12.2
|
|
36
|
+
Requires-Dist: packaging==26.3
|
|
37
|
+
Requires-Dist: pydantic-core==2.46.4
|
|
38
|
+
Requires-Dist: pydantic==2.13.4
|
|
39
|
+
Requires-Dist: pygments==2.21.0
|
|
40
|
+
Requires-Dist: python-dotenv==1.2.3
|
|
41
|
+
Requires-Dist: pyyaml==6.0.3
|
|
42
|
+
Requires-Dist: regex==2026.7.19
|
|
43
|
+
Requires-Dist: requests-toolbelt==1.0.0
|
|
44
|
+
Requires-Dist: requests==2.34.2
|
|
45
|
+
Requires-Dist: rich==15.0.0
|
|
46
|
+
Requires-Dist: shellingham==1.5.4
|
|
47
|
+
Requires-Dist: sniffio==1.3.1
|
|
48
|
+
Requires-Dist: tenacity==9.1.4
|
|
49
|
+
Requires-Dist: tiktoken==0.14.0
|
|
50
|
+
Requires-Dist: truststore==0.10.4
|
|
51
|
+
Requires-Dist: typer==0.27.1
|
|
52
|
+
Requires-Dist: typing-extensions==4.16.0
|
|
53
|
+
Requires-Dist: typing-inspection==0.4.4
|
|
54
|
+
Requires-Dist: urllib3==2.7.0
|
|
55
|
+
Requires-Dist: uuid-utils==0.17.0
|
|
56
|
+
Requires-Dist: uv==0.12.5
|
|
57
|
+
Requires-Dist: websockets==16.1.1
|
|
58
|
+
Requires-Dist: xxhash==4.0.1
|
|
59
|
+
Requires-Dist: zstandard==0.25.0
|
|
60
|
+
Description-Content-Type: text/markdown
|
|
61
|
+
|
|
62
|
+
# CLI AGENT TO BEAT CLAUDE CODE AND DEEPSEEK HARNESS
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
cli_agent/.env.example,sha256=Xpil1pIbrVoXnz2mBRD5ubuiTyEqWRv3ZXbqU0Z7P24,25
|
|
2
|
+
cli_agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
cli_agent/main.py,sha256=itN11eciZQdoMeVBLr52DP53Ka5OGKcP4B7R6sW3QN4,1066
|
|
4
|
+
divakar_cli_agent-0.1.0.dist-info/METADATA,sha256=pHuEpOb_bO0OyDwwRhOWP08Gv6hx0KTrMnOEG059E7k,2000
|
|
5
|
+
divakar_cli_agent-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
6
|
+
divakar_cli_agent-0.1.0.dist-info/entry_points.txt,sha256=Q4zn47XmvOAiR36hOSztl2W6-wrFoXp_Q9wpUulCtk4,50
|
|
7
|
+
divakar_cli_agent-0.1.0.dist-info/RECORD,,
|