kodeagent 0.14.2__tar.gz → 0.14.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.
Files changed (45) hide show
  1. {kodeagent-0.14.2/src/kodeagent.egg-info → kodeagent-0.14.4}/PKG-INFO +17 -12
  2. {kodeagent-0.14.2 → kodeagent-0.14.4}/README.md +5 -0
  3. kodeagent-0.14.4/requirements.txt +27 -0
  4. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/_version.py +1 -1
  5. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/kodeagent.py +0 -3
  6. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/kutils.py +11 -2
  7. {kodeagent-0.14.2 → kodeagent-0.14.4/src/kodeagent.egg-info}/PKG-INFO +17 -12
  8. kodeagent-0.14.4/src/kodeagent.egg-info/requires.txt +20 -0
  9. kodeagent-0.14.2/requirements.txt +0 -27
  10. kodeagent-0.14.2/src/kodeagent.egg-info/requires.txt +0 -20
  11. {kodeagent-0.14.2 → kodeagent-0.14.4}/LICENSE +0 -0
  12. {kodeagent-0.14.2 → kodeagent-0.14.4}/MANIFEST.in +0 -0
  13. {kodeagent-0.14.2 → kodeagent-0.14.4}/pyproject.toml +0 -0
  14. {kodeagent-0.14.2 → kodeagent-0.14.4}/setup.cfg +0 -0
  15. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/__init__.py +0 -0
  16. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/agents/__init__.py +0 -0
  17. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/agents/csv_agent.py +0 -0
  18. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/code_reviewer.py +0 -0
  19. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/code_runner.py +0 -0
  20. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/examples.py +0 -0
  21. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/fca.py +0 -0
  22. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/file_tracker.py +0 -0
  23. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/history_formatter.py +0 -0
  24. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/models.py +0 -0
  25. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/orchestrator.py +0 -0
  26. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/pattern_detector.py +0 -0
  27. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/agent_plan.txt +0 -0
  28. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/code_guardrail.txt +0 -0
  29. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/contextual_summary.txt +0 -0
  30. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/observation.txt +0 -0
  31. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/salvage_response.txt +0 -0
  32. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/codeact.txt +0 -0
  33. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/csv_analyst.txt +0 -0
  34. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/function_calling.txt +0 -0
  35. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/observer.txt +0 -0
  36. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/plan_updater.txt +0 -0
  37. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/planner.txt +0 -0
  38. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/system/react.txt +0 -0
  39. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/prompts/update_plan.txt +0 -0
  40. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/tools.py +0 -0
  41. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/tracer.py +0 -0
  42. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent/usage_tracker.py +0 -0
  43. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent.egg-info/SOURCES.txt +0 -0
  44. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent.egg-info/dependency_links.txt +0 -0
  45. {kodeagent-0.14.2 → kodeagent-0.14.4}/src/kodeagent.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kodeagent
3
- Version: 0.14.2
3
+ Version: 0.14.4
4
4
  Summary: A minimalistic approach to building AI agents
5
5
  Author-email: Barun Saha <your.email@example.com>
6
6
  Project-URL: Homepage, https://github.com/barun-saha/kodeagent
@@ -11,25 +11,25 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: litellm~=1.87.1
14
+ Requires-Dist: litellm~=1.103.2
15
15
  Requires-Dist: pydantic~=2.12.5
16
- Requires-Dist: python-dotenv~=1.2.2
16
+ Requires-Dist: python-dotenv~=1.2.4
17
17
  Requires-Dist: e2b-code-interpreter~=2.6.0
18
- Requires-Dist: requests~=2.33.1
19
- Requires-Dist: json_repair~=0.59.10
18
+ Requires-Dist: requests~=2.34.2
19
+ Requires-Dist: json-repair>=0.63.5
20
20
  Requires-Dist: tenacity~=9.1.4
21
- Requires-Dist: aiohttp~=3.14.0
21
+ Requires-Dist: aiohttp~=3.14.3
22
22
  Requires-Dist: protobuf~=6.33.5
23
23
  Requires-Dist: h11~=0.16.0
24
24
  Requires-Dist: rich~=15.0.0
25
- Requires-Dist: ddgs~=9.14.4
26
- Requires-Dist: lxml~=6.1.1
27
- Requires-Dist: beautifulsoup4~=4.14.3
28
- Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.5
25
+ Requires-Dist: ddgs~=9.16.0
26
+ Requires-Dist: lxml~=6.1.3
27
+ Requires-Dist: beautifulsoup4~=4.15.0
28
+ Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.8
29
29
  Requires-Dist: youtube-transcript-api~=1.2.4
30
30
  Requires-Dist: wikipedia~=1.4.0
31
- Requires-Dist: arxiv~=4.0.0
32
- Requires-Dist: urllib3~=2.7.0
31
+ Requires-Dist: arxiv~=4.0.1
32
+ Requires-Dist: urllib3~=2.8.0
33
33
  Requires-Dist: langfuse<3,>=2
34
34
  Dynamic: license-file
35
35
 
@@ -357,6 +357,11 @@ sequenceDiagram
357
357
 
358
358
  ## 🧪 Run Tests
359
359
 
360
+ Install these additional dependencies for running the unit tests:
361
+ ```bash
362
+ python -m pip install pytest-asyncio pytest-cov langsmith
363
+ ```
364
+
360
365
  To run unit tests, use:
361
366
  ```bash
362
367
  python -m pytest .\tests\unit -v --cov --cov-report=html
@@ -322,6 +322,11 @@ sequenceDiagram
322
322
 
323
323
  ## 🧪 Run Tests
324
324
 
325
+ Install these additional dependencies for running the unit tests:
326
+ ```bash
327
+ python -m pip install pytest-asyncio pytest-cov langsmith
328
+ ```
329
+
325
330
  To run unit tests, use:
326
331
  ```bash
327
332
  python -m pytest .\tests\unit -v --cov --cov-report=html
@@ -0,0 +1,27 @@
1
+ litellm~=1.103.2 # Higher versions require incompatible aiohttp
2
+ pydantic~=2.12.5
3
+ python-dotenv~=1.2.4
4
+ e2b-code-interpreter~=2.6.0
5
+ requests~=2.34.2
6
+ json-repair>=0.63.5
7
+ tenacity~=9.1.4
8
+ aiohttp~=3.14.3
9
+ protobuf~=6.33.5
10
+ h11~=0.16.0
11
+
12
+ # Dependency for colored display on terminals
13
+ rich~=15.0.0
14
+
15
+ # Dependencies for the tools
16
+ ddgs~=9.16.0
17
+ lxml~=6.1.3
18
+ beautifulsoup4~=4.15.0
19
+ markitdown[pdf, docx, xlsx]~=0.1.8
20
+ youtube-transcript-api~=1.2.4
21
+ wikipedia~=1.4.0
22
+ arxiv~=4.0.1
23
+ urllib3~=2.8.0
24
+
25
+ # Observability
26
+ langfuse>=2,<3
27
+ # langsmith==0.3.32
@@ -7,4 +7,4 @@ Update the __version__ string here BEFORE making a release on GitHub.
7
7
  # minor: New features, backward compatible
8
8
  # major: Breaking changes, API changes
9
9
 
10
- __version__ = '0.14.2'
10
+ __version__ = '0.14.4'
@@ -21,7 +21,6 @@ import json_repair
21
21
  import litellm
22
22
  import pydantic as pyd
23
23
  import rich
24
- from dotenv import load_dotenv
25
24
  from tenacity import RetryError
26
25
 
27
26
  from . import kutils as ku
@@ -48,8 +47,6 @@ from .usage_tracker import UsageTracker
48
47
  # Install the global interceptor patch
49
48
  install_interceptor()
50
49
 
51
- load_dotenv()
52
-
53
50
  warnings.simplefilter('once', UserWarning)
54
51
  warnings.filterwarnings('ignore', message='.*Pydantic serializer warnings.*')
55
52
 
@@ -14,6 +14,7 @@ from typing import Any
14
14
  import litellm
15
15
  import pydantic as pyd
16
16
  import requests
17
+ from dotenv import load_dotenv
17
18
  from tenacity import (
18
19
  AsyncRetrying,
19
20
  RetryError,
@@ -25,6 +26,8 @@ from tenacity import (
25
26
 
26
27
  from .usage_tracker import UsageMetrics
27
28
 
29
+ load_dotenv()
30
+
28
31
  DATA_TYPES = {
29
32
  int: 'integer',
30
33
  float: 'number',
@@ -72,13 +75,19 @@ if hasattr(logging, 'captureWarnings'):
72
75
 
73
76
 
74
77
  def get_logger(name: str | None = 'KodeAgent') -> logging.Logger:
75
- """Get a logger for KodeAgent.
78
+ """Get a logger for KodeAgent. Log-level can be optionally set via the LOGLEVEL environment
79
+ variable (e.g. DEBUG, INFO, WARNING). Default is INFO if not set or invalid.
76
80
 
77
81
  Returns:
78
82
  A logger instance.
79
83
  """
84
+ log_level = os.environ.get('LOGLEVEL', 'INFO').upper()
85
+ # Harden LOGLEVEL parsing to avoid startup crash
86
+ log_level = (
87
+ getattr(logging, log_level, logging.INFO) if isinstance(log_level, str) else logging.INFO
88
+ )
80
89
  logging.basicConfig(
81
- level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
90
+ level=log_level, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
82
91
  )
83
92
  logging.getLogger('LiteLLM').setLevel(logging.WARNING)
84
93
  logging.getLogger('langfuse').disabled = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kodeagent
3
- Version: 0.14.2
3
+ Version: 0.14.4
4
4
  Summary: A minimalistic approach to building AI agents
5
5
  Author-email: Barun Saha <your.email@example.com>
6
6
  Project-URL: Homepage, https://github.com/barun-saha/kodeagent
@@ -11,25 +11,25 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: litellm~=1.87.1
14
+ Requires-Dist: litellm~=1.103.2
15
15
  Requires-Dist: pydantic~=2.12.5
16
- Requires-Dist: python-dotenv~=1.2.2
16
+ Requires-Dist: python-dotenv~=1.2.4
17
17
  Requires-Dist: e2b-code-interpreter~=2.6.0
18
- Requires-Dist: requests~=2.33.1
19
- Requires-Dist: json_repair~=0.59.10
18
+ Requires-Dist: requests~=2.34.2
19
+ Requires-Dist: json-repair>=0.63.5
20
20
  Requires-Dist: tenacity~=9.1.4
21
- Requires-Dist: aiohttp~=3.14.0
21
+ Requires-Dist: aiohttp~=3.14.3
22
22
  Requires-Dist: protobuf~=6.33.5
23
23
  Requires-Dist: h11~=0.16.0
24
24
  Requires-Dist: rich~=15.0.0
25
- Requires-Dist: ddgs~=9.14.4
26
- Requires-Dist: lxml~=6.1.1
27
- Requires-Dist: beautifulsoup4~=4.14.3
28
- Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.5
25
+ Requires-Dist: ddgs~=9.16.0
26
+ Requires-Dist: lxml~=6.1.3
27
+ Requires-Dist: beautifulsoup4~=4.15.0
28
+ Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.8
29
29
  Requires-Dist: youtube-transcript-api~=1.2.4
30
30
  Requires-Dist: wikipedia~=1.4.0
31
- Requires-Dist: arxiv~=4.0.0
32
- Requires-Dist: urllib3~=2.7.0
31
+ Requires-Dist: arxiv~=4.0.1
32
+ Requires-Dist: urllib3~=2.8.0
33
33
  Requires-Dist: langfuse<3,>=2
34
34
  Dynamic: license-file
35
35
 
@@ -357,6 +357,11 @@ sequenceDiagram
357
357
 
358
358
  ## 🧪 Run Tests
359
359
 
360
+ Install these additional dependencies for running the unit tests:
361
+ ```bash
362
+ python -m pip install pytest-asyncio pytest-cov langsmith
363
+ ```
364
+
360
365
  To run unit tests, use:
361
366
  ```bash
362
367
  python -m pytest .\tests\unit -v --cov --cov-report=html
@@ -0,0 +1,20 @@
1
+ litellm~=1.103.2
2
+ pydantic~=2.12.5
3
+ python-dotenv~=1.2.4
4
+ e2b-code-interpreter~=2.6.0
5
+ requests~=2.34.2
6
+ json-repair>=0.63.5
7
+ tenacity~=9.1.4
8
+ aiohttp~=3.14.3
9
+ protobuf~=6.33.5
10
+ h11~=0.16.0
11
+ rich~=15.0.0
12
+ ddgs~=9.16.0
13
+ lxml~=6.1.3
14
+ beautifulsoup4~=4.15.0
15
+ markitdown[docx,pdf,xlsx]~=0.1.8
16
+ youtube-transcript-api~=1.2.4
17
+ wikipedia~=1.4.0
18
+ arxiv~=4.0.1
19
+ urllib3~=2.8.0
20
+ langfuse<3,>=2
@@ -1,27 +0,0 @@
1
- litellm~=1.87.1 # Higher versions require incompatible aiohttp
2
- pydantic~=2.12.5
3
- python-dotenv~=1.2.2 # Downgrade to avoid issues with litellm
4
- e2b-code-interpreter~=2.6.0
5
- requests~=2.33.1
6
- json_repair~=0.59.10
7
- tenacity~=9.1.4
8
- aiohttp~=3.14.0
9
- protobuf~=6.33.5
10
- h11~=0.16.0
11
-
12
- # Dependency for colored display on terminals
13
- rich~=15.0.0
14
-
15
- # Dependencies for the tools
16
- ddgs~=9.14.4
17
- lxml~=6.1.1
18
- beautifulsoup4~=4.14.3
19
- markitdown[pdf, docx, xlsx]~=0.1.5
20
- youtube-transcript-api~=1.2.4
21
- wikipedia~=1.4.0
22
- arxiv~=4.0.0
23
- urllib3~=2.7.0
24
-
25
- # Observability
26
- langfuse>=2,<3
27
- # langsmith==0.3.32
@@ -1,20 +0,0 @@
1
- litellm~=1.87.1
2
- pydantic~=2.12.5
3
- python-dotenv~=1.2.2
4
- e2b-code-interpreter~=2.6.0
5
- requests~=2.33.1
6
- json_repair~=0.59.10
7
- tenacity~=9.1.4
8
- aiohttp~=3.14.0
9
- protobuf~=6.33.5
10
- h11~=0.16.0
11
- rich~=15.0.0
12
- ddgs~=9.14.4
13
- lxml~=6.1.1
14
- beautifulsoup4~=4.14.3
15
- markitdown[docx,pdf,xlsx]~=0.1.5
16
- youtube-transcript-api~=1.2.4
17
- wikipedia~=1.4.0
18
- arxiv~=4.0.0
19
- urllib3~=2.7.0
20
- langfuse<3,>=2
File without changes
File without changes
File without changes
File without changes