kodeagent 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.
- kodeagent/__init__.py +73 -0
- kodeagent/kodeagent.py +1984 -0
- kodeagent/kutils.py +298 -0
- kodeagent/prompts/agent_plan.txt +17 -0
- kodeagent/prompts/contextual_summary.txt +14 -0
- kodeagent/prompts/observation.txt +46 -0
- kodeagent/prompts/relevant_tools.txt +16 -0
- kodeagent/prompts/salvage_response.txt +14 -0
- kodeagent/prompts/update_plan.txt +20 -0
- kodeagent-0.1.0.dist-info/METADATA +215 -0
- kodeagent-0.1.0.dist-info/RECORD +14 -0
- kodeagent-0.1.0.dist-info/WHEEL +5 -0
- kodeagent-0.1.0.dist-info/licenses/LICENSE +202 -0
- kodeagent-0.1.0.dist-info/top_level.txt +1 -0
kodeagent/__init__.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""KodeAgent: An intelligent code agent"""
|
|
2
|
+
|
|
3
|
+
from .kodeagent import (
|
|
4
|
+
tool,
|
|
5
|
+
llm_vision_support,
|
|
6
|
+
calculator,
|
|
7
|
+
search_web,
|
|
8
|
+
download_file,
|
|
9
|
+
search_arxiv,
|
|
10
|
+
extract_file_contents_as_markdown,
|
|
11
|
+
search_wikipedia,
|
|
12
|
+
get_youtube_transcript,
|
|
13
|
+
get_audio_transcript,
|
|
14
|
+
Agent,
|
|
15
|
+
ReActAgent,
|
|
16
|
+
CodeActAgent,
|
|
17
|
+
ChatMessage,
|
|
18
|
+
ReActChatMessage,
|
|
19
|
+
CodeActChatMessage,
|
|
20
|
+
AgentPlan,
|
|
21
|
+
PlanStep,
|
|
22
|
+
Planner,
|
|
23
|
+
Task,
|
|
24
|
+
Observer,
|
|
25
|
+
ObserverResponse,
|
|
26
|
+
CodeRunner,
|
|
27
|
+
AgentResponse
|
|
28
|
+
)
|
|
29
|
+
from .kutils import (
|
|
30
|
+
is_it_url,
|
|
31
|
+
detect_file_type,
|
|
32
|
+
is_image_file,
|
|
33
|
+
make_user_message
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# Alphabetical order is recommended
|
|
37
|
+
__all__ = [
|
|
38
|
+
'Agent',
|
|
39
|
+
'AgentPlan',
|
|
40
|
+
'AgentResponse',
|
|
41
|
+
'ChatMessage',
|
|
42
|
+
'CodeActAgent',
|
|
43
|
+
'CodeActChatMessage',
|
|
44
|
+
'CodeRunner',
|
|
45
|
+
'Observer',
|
|
46
|
+
'ObserverResponse',
|
|
47
|
+
'PlanStep',
|
|
48
|
+
'Planner',
|
|
49
|
+
'ReActAgent',
|
|
50
|
+
'ReActChatMessage',
|
|
51
|
+
'Task',
|
|
52
|
+
'calculator',
|
|
53
|
+
'detect_file_type',
|
|
54
|
+
'download_file',
|
|
55
|
+
'extract_file_contents_as_markdown',
|
|
56
|
+
'get_audio_transcript',
|
|
57
|
+
'get_youtube_transcript',
|
|
58
|
+
'is_image_file',
|
|
59
|
+
'is_it_url',
|
|
60
|
+
'llm_vision_support',
|
|
61
|
+
'make_user_message',
|
|
62
|
+
'search_arxiv',
|
|
63
|
+
'search_web',
|
|
64
|
+
'search_wikipedia',
|
|
65
|
+
'tool',
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
try:
|
|
70
|
+
from importlib.metadata import version as _pkg_version # Python 3.8+
|
|
71
|
+
__version__ = _pkg_version('kodeagent')
|
|
72
|
+
except Exception:
|
|
73
|
+
__version__ = '0.1.0'
|