oskaragent 0.1.38a0__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.
- oskaragent/__init__.py +49 -0
- oskaragent/agent.py +1911 -0
- oskaragent/agent_config.py +328 -0
- oskaragent/agent_mcp_tools.py +102 -0
- oskaragent/agent_tools.py +962 -0
- oskaragent/helpers.py +175 -0
- oskaragent-0.1.38a0.dist-info/METADATA +29 -0
- oskaragent-0.1.38a0.dist-info/RECORD +30 -0
- oskaragent-0.1.38a0.dist-info/WHEEL +5 -0
- oskaragent-0.1.38a0.dist-info/licenses/LICENSE +21 -0
- oskaragent-0.1.38a0.dist-info/top_level.txt +2 -0
- tests/1a_test_basico.py +43 -0
- tests/1b_test_history.py +72 -0
- tests/1c_test_basico.py +61 -0
- tests/2a_test_tool_python.py +50 -0
- tests/2b_test_tool_calculator.py +54 -0
- tests/2c_test_tool_savefile.py +50 -0
- tests/3a_test_upload_md.py +46 -0
- tests/3b_test_upload_img.py +43 -0
- tests/3c_test_upload_pdf_compare.py +44 -0
- tests/4_test_RAG.py +56 -0
- tests/5_test_MAS.py +58 -0
- tests/6a_test_MCP_tool_CRM.py +77 -0
- tests/6b_test_MCP_tool_ITSM.py +72 -0
- tests/6c_test_MCP_tool_SQL.py +69 -0
- tests/6d_test_MCP_tool_DOC_SQL.py +45 -0
- tests/7a_test_BI_CSV.py +37 -0
- tests/7b_test_BI_SQL.py +47 -0
- tests/8a_test_external_tool.py +194 -0
- tests/helpers.py +60 -0
oskaragent/__init__.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""oskaragent agent package.
|
|
2
|
+
|
|
3
|
+
Exports:
|
|
4
|
+
- `oskaragent`: main agent class
|
|
5
|
+
- `AgentConfig`: configuration class for the agent
|
|
6
|
+
- Tool utilities and contexts from `.agent_tools` for convenience
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from .agent import Oskar
|
|
12
|
+
from .agent_config import AgentConfig
|
|
13
|
+
from .converters import (
|
|
14
|
+
convert_csv_to_markdown_table,
|
|
15
|
+
convert_docx_to_markdown,
|
|
16
|
+
convert_pptx_to_markdown,
|
|
17
|
+
convert_markdown_to_html,
|
|
18
|
+
convert_markdown_to_html_block,
|
|
19
|
+
convert_markdown_to_pdf,
|
|
20
|
+
convert_pdf_to_markdown,
|
|
21
|
+
convert_dict_to_markdown,
|
|
22
|
+
convert_json_to_markdown,
|
|
23
|
+
convert_json_to_csv,
|
|
24
|
+
|
|
25
|
+
decode_file_from_str,
|
|
26
|
+
encode_file,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"Oskar",
|
|
32
|
+
"AgentConfig",
|
|
33
|
+
|
|
34
|
+
# converters
|
|
35
|
+
"convert_csv_to_markdown_table",
|
|
36
|
+
"convert_dict_to_markdown",
|
|
37
|
+
"convert_docx_to_markdown",
|
|
38
|
+
"convert_markdown_to_html",
|
|
39
|
+
"convert_markdown_to_html_block",
|
|
40
|
+
"convert_markdown_to_pdf",
|
|
41
|
+
"convert_pdf_to_markdown",
|
|
42
|
+
"convert_pptx_to_markdown",
|
|
43
|
+
"convert_json_to_markdown",
|
|
44
|
+
"convert_json_to_csv",
|
|
45
|
+
|
|
46
|
+
# encoders
|
|
47
|
+
"decode_file_from_str",
|
|
48
|
+
"encode_file",
|
|
49
|
+
]
|