kodeagent 0.11.0__tar.gz → 0.11.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.
Files changed (40) hide show
  1. {kodeagent-0.11.0/src/kodeagent.egg-info → kodeagent-0.11.2}/PKG-INFO +8 -8
  2. {kodeagent-0.11.0 → kodeagent-0.11.2}/requirements.txt +7 -7
  3. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/_version.py +1 -1
  4. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/fca.py +18 -2
  5. {kodeagent-0.11.0 → kodeagent-0.11.2/src/kodeagent.egg-info}/PKG-INFO +8 -8
  6. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent.egg-info/requires.txt +7 -7
  7. {kodeagent-0.11.0 → kodeagent-0.11.2}/LICENSE +0 -0
  8. {kodeagent-0.11.0 → kodeagent-0.11.2}/MANIFEST.in +0 -0
  9. {kodeagent-0.11.0 → kodeagent-0.11.2}/README.md +0 -0
  10. {kodeagent-0.11.0 → kodeagent-0.11.2}/pyproject.toml +0 -0
  11. {kodeagent-0.11.0 → kodeagent-0.11.2}/setup.cfg +0 -0
  12. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/__init__.py +0 -0
  13. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/code_reviewer.py +0 -0
  14. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/code_runner.py +0 -0
  15. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/examples.py +0 -0
  16. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/file_tracker.py +0 -0
  17. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/history_formatter.py +0 -0
  18. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/kodeagent.py +0 -0
  19. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/kutils.py +0 -0
  20. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/models.py +0 -0
  21. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/orchestrator.py +0 -0
  22. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/pattern_detector.py +0 -0
  23. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/agent_plan.txt +0 -0
  24. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/code_guardrail.txt +0 -0
  25. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/contextual_summary.txt +0 -0
  26. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/observation.txt +0 -0
  27. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/salvage_response.txt +0 -0
  28. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/codeact.txt +0 -0
  29. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/function_calling.txt +0 -0
  30. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/observer.txt +0 -0
  31. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/plan_updater.txt +0 -0
  32. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/planner.txt +0 -0
  33. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/system/react.txt +0 -0
  34. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/prompts/update_plan.txt +0 -0
  35. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/tools.py +0 -0
  36. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/tracer.py +0 -0
  37. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent/usage_tracker.py +0 -0
  38. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent.egg-info/SOURCES.txt +0 -0
  39. {kodeagent-0.11.0 → kodeagent-0.11.2}/src/kodeagent.egg-info/dependency_links.txt +0 -0
  40. {kodeagent-0.11.0 → kodeagent-0.11.2}/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.11.0
3
+ Version: 0.11.2
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,23 +11,23 @@ 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.81.5
14
+ Requires-Dist: litellm~=1.82.2
15
15
  Requires-Dist: pydantic~=2.12.5
16
16
  Requires-Dist: python-dotenv~=1.2.1
17
17
  Requires-Dist: e2b-code-interpreter~=2.4.1
18
18
  Requires-Dist: requests~=2.32.5
19
- Requires-Dist: json_repair~=0.55.1
20
- Requires-Dist: tenacity~=9.1.2
19
+ Requires-Dist: json_repair~=0.58.5
20
+ Requires-Dist: tenacity~=9.1.4
21
21
  Requires-Dist: aiohttp~=3.13.3
22
22
  Requires-Dist: protobuf~=6.33.5
23
23
  Requires-Dist: h11~=0.16.0
24
- Requires-Dist: rich~=14.3.1
25
- Requires-Dist: ddgs~=9.10.0
24
+ Requires-Dist: rich~=14.3.3
25
+ Requires-Dist: ddgs~=9.11.3
26
26
  Requires-Dist: beautifulsoup4~=4.14.3
27
- Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.4
27
+ Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.5
28
28
  Requires-Dist: youtube-transcript-api~=1.2.4
29
29
  Requires-Dist: wikipedia~=1.4.0
30
- Requires-Dist: arxiv~=2.4.0
30
+ Requires-Dist: arxiv~=2.4.1
31
31
  Requires-Dist: urllib3~=2.6.3
32
32
  Requires-Dist: langfuse<3,>=2
33
33
  Dynamic: license-file
@@ -1,24 +1,24 @@
1
- litellm~=1.81.5
1
+ litellm~=1.82.2
2
2
  pydantic~=2.12.5
3
3
  python-dotenv~=1.2.1
4
4
  e2b-code-interpreter~=2.4.1
5
5
  requests~=2.32.5
6
- json_repair~=0.55.1
7
- tenacity~=9.1.2
6
+ json_repair~=0.58.5
7
+ tenacity~=9.1.4
8
8
  aiohttp~=3.13.3
9
9
  protobuf~=6.33.5
10
10
  h11~=0.16.0
11
11
 
12
12
  # Dependency for colored display on terminals
13
- rich~=14.3.1
13
+ rich~=14.3.3
14
14
 
15
15
  # Dependencies for the tools
16
- ddgs~=9.10.0
16
+ ddgs~=9.11.3
17
17
  beautifulsoup4~=4.14.3
18
- markitdown[pdf, docx, xlsx]~=0.1.4
18
+ markitdown[pdf, docx, xlsx]~=0.1.5
19
19
  youtube-transcript-api~=1.2.4
20
20
  wikipedia~=1.4.0
21
- arxiv~=2.4.0
21
+ arxiv~=2.4.1
22
22
  urllib3~=2.6.3
23
23
 
24
24
  # Observability
@@ -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.11.0'
10
+ __version__ = '0.11.2'
@@ -57,6 +57,7 @@ FINAL_ANSWER_TOOL_NAME = 'final_answer'
57
57
 
58
58
  def final_answer(result: str) -> str:
59
59
  """Provide the final answer to the user's task and end the conversation.
60
+ Always call this tool when you have enough information to answer.
60
61
 
61
62
  Args:
62
63
  result: The final answer or result of the task.
@@ -64,7 +65,12 @@ def final_answer(result: str) -> str:
64
65
  Returns:
65
66
  The final answer text in user-readable format.
66
67
  """
67
- return result
68
+ if isinstance(result, dict):
69
+ # Drop keys, combine the values
70
+ return '\n\n'.join(str(v) for v in result.values())
71
+ if isinstance(result, list):
72
+ return '\n\n'.join(str(item) for item in result)
73
+ return str(result) if not isinstance(result, str) else result
68
74
 
69
75
 
70
76
  class FunctionCallingAgent:
@@ -216,7 +222,7 @@ class FunctionCallingAgent:
216
222
  )
217
223
  else:
218
224
  tool_result = None
219
- for key in ('result', 'answer', 'response', 'output', 'reply'):
225
+ for key in ('result', 'reason', 'answer', 'response', 'output', 'reply'):
220
226
  value = args.get(key)
221
227
  if value is not None:
222
228
  tool_result = value
@@ -224,6 +230,11 @@ class FunctionCallingAgent:
224
230
 
225
231
  if tool_result is None:
226
232
  result = 'Error: `final_answer` called without a result.'
233
+ elif isinstance(tool_result, (dict, list)):
234
+ try:
235
+ result = json.dumps(tool_result, ensure_ascii=False, indent=2)
236
+ except (TypeError, ValueError):
237
+ result = str(tool_result)
227
238
  else:
228
239
  result = str(tool_result)
229
240
  else:
@@ -248,6 +259,11 @@ class FunctionCallingAgent:
248
259
  f'Error: Tool `{name}` returned an empty result. '
249
260
  'The query may have returned no data.'
250
261
  )
262
+ elif isinstance(tool_result, (dict, list)):
263
+ try:
264
+ result = json.dumps(tool_result, ensure_ascii=False, indent=2)
265
+ except (TypeError, ValueError):
266
+ result = str(tool_result)
251
267
  else:
252
268
  result = str(tool_result)
253
269
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kodeagent
3
- Version: 0.11.0
3
+ Version: 0.11.2
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,23 +11,23 @@ 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.81.5
14
+ Requires-Dist: litellm~=1.82.2
15
15
  Requires-Dist: pydantic~=2.12.5
16
16
  Requires-Dist: python-dotenv~=1.2.1
17
17
  Requires-Dist: e2b-code-interpreter~=2.4.1
18
18
  Requires-Dist: requests~=2.32.5
19
- Requires-Dist: json_repair~=0.55.1
20
- Requires-Dist: tenacity~=9.1.2
19
+ Requires-Dist: json_repair~=0.58.5
20
+ Requires-Dist: tenacity~=9.1.4
21
21
  Requires-Dist: aiohttp~=3.13.3
22
22
  Requires-Dist: protobuf~=6.33.5
23
23
  Requires-Dist: h11~=0.16.0
24
- Requires-Dist: rich~=14.3.1
25
- Requires-Dist: ddgs~=9.10.0
24
+ Requires-Dist: rich~=14.3.3
25
+ Requires-Dist: ddgs~=9.11.3
26
26
  Requires-Dist: beautifulsoup4~=4.14.3
27
- Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.4
27
+ Requires-Dist: markitdown[docx,pdf,xlsx]~=0.1.5
28
28
  Requires-Dist: youtube-transcript-api~=1.2.4
29
29
  Requires-Dist: wikipedia~=1.4.0
30
- Requires-Dist: arxiv~=2.4.0
30
+ Requires-Dist: arxiv~=2.4.1
31
31
  Requires-Dist: urllib3~=2.6.3
32
32
  Requires-Dist: langfuse<3,>=2
33
33
  Dynamic: license-file
@@ -1,19 +1,19 @@
1
- litellm~=1.81.5
1
+ litellm~=1.82.2
2
2
  pydantic~=2.12.5
3
3
  python-dotenv~=1.2.1
4
4
  e2b-code-interpreter~=2.4.1
5
5
  requests~=2.32.5
6
- json_repair~=0.55.1
7
- tenacity~=9.1.2
6
+ json_repair~=0.58.5
7
+ tenacity~=9.1.4
8
8
  aiohttp~=3.13.3
9
9
  protobuf~=6.33.5
10
10
  h11~=0.16.0
11
- rich~=14.3.1
12
- ddgs~=9.10.0
11
+ rich~=14.3.3
12
+ ddgs~=9.11.3
13
13
  beautifulsoup4~=4.14.3
14
- markitdown[docx,pdf,xlsx]~=0.1.4
14
+ markitdown[docx,pdf,xlsx]~=0.1.5
15
15
  youtube-transcript-api~=1.2.4
16
16
  wikipedia~=1.4.0
17
- arxiv~=2.4.0
17
+ arxiv~=2.4.1
18
18
  urllib3~=2.6.3
19
19
  langfuse<3,>=2
File without changes
File without changes
File without changes
File without changes
File without changes