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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dm-aioaiagent
3
- Version: 0.1.0
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
- print(state["answer"])
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
- print(state["answer"])
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.0
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
- print(state["answer"])
69
+ answer = state["answer"]
70
+ print(state["context"])
72
71
 
73
72
 
74
73
  if __name__ == "__main__":
@@ -8,7 +8,7 @@ def readme():
8
8
 
9
9
  setup(
10
10
  name='dm-aioaiagent',
11
- version='v0.1.0',
11
+ version='v0.1.1',
12
12
  author='dimka4621',
13
13
  author_email='mismartconfig@gmail.com',
14
14
  description='This is my custom aioaiagent client',
File without changes