dm-aioaiagent 0.1.0__tar.gz → 0.1.1__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.
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/PKG-INFO +4 -5
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/README.md +3 -4
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent.egg-info/PKG-INFO +4 -5
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/setup.py +1 -1
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent/__init__.py +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent/ai_agent.py +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent/async_ai_agent.py +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent.egg-info/SOURCES.txt +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent.egg-info/dependency_links.txt +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent.egg-info/requires.txt +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/dm_aioaiagent.egg-info/top_level.txt +0 -0
- {dm_aioaiagent-0.1.0 → dm_aioaiagent-0.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dm-aioaiagent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: This is my custom aioaiagent client
|
|
5
5
|
Home-page: https://pypi.org/project/dm-aioaiagent
|
|
6
6
|
Author: dimka4621
|
|
@@ -53,6 +53,7 @@ async def main():
|
|
|
53
53
|
|
|
54
54
|
# create an agent
|
|
55
55
|
ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
|
|
56
|
+
# you can set input_output_logging=False, if you don't want to see the input and output messages from agent
|
|
56
57
|
|
|
57
58
|
# define the conversation messages
|
|
58
59
|
messages = [
|
|
@@ -64,11 +65,9 @@ async def main():
|
|
|
64
65
|
# start the agent
|
|
65
66
|
state = await ai_agent.run(messages)
|
|
66
67
|
|
|
67
|
-
# print answer
|
|
68
|
-
print(state["answer"])
|
|
69
|
-
|
|
70
68
|
# if you define tools, you can see the context of the tools
|
|
71
|
-
|
|
69
|
+
answer = state["answer"]
|
|
70
|
+
print(state["context"])
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
if __name__ == "__main__":
|
|
@@ -30,6 +30,7 @@ async def main():
|
|
|
30
30
|
|
|
31
31
|
# create an agent
|
|
32
32
|
ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
|
|
33
|
+
# you can set input_output_logging=False, if you don't want to see the input and output messages from agent
|
|
33
34
|
|
|
34
35
|
# define the conversation messages
|
|
35
36
|
messages = [
|
|
@@ -41,11 +42,9 @@ async def main():
|
|
|
41
42
|
# start the agent
|
|
42
43
|
state = await ai_agent.run(messages)
|
|
43
44
|
|
|
44
|
-
# print answer
|
|
45
|
-
print(state["answer"])
|
|
46
|
-
|
|
47
45
|
# if you define tools, you can see the context of the tools
|
|
48
|
-
|
|
46
|
+
answer = state["answer"]
|
|
47
|
+
print(state["context"])
|
|
49
48
|
|
|
50
49
|
|
|
51
50
|
if __name__ == "__main__":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dm-aioaiagent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: This is my custom aioaiagent client
|
|
5
5
|
Home-page: https://pypi.org/project/dm-aioaiagent
|
|
6
6
|
Author: dimka4621
|
|
@@ -53,6 +53,7 @@ async def main():
|
|
|
53
53
|
|
|
54
54
|
# create an agent
|
|
55
55
|
ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
|
|
56
|
+
# you can set input_output_logging=False, if you don't want to see the input and output messages from agent
|
|
56
57
|
|
|
57
58
|
# define the conversation messages
|
|
58
59
|
messages = [
|
|
@@ -64,11 +65,9 @@ async def main():
|
|
|
64
65
|
# start the agent
|
|
65
66
|
state = await ai_agent.run(messages)
|
|
66
67
|
|
|
67
|
-
# print answer
|
|
68
|
-
print(state["answer"])
|
|
69
|
-
|
|
70
68
|
# if you define tools, you can see the context of the tools
|
|
71
|
-
|
|
69
|
+
answer = state["answer"]
|
|
70
|
+
print(state["context"])
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
if __name__ == "__main__":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|