dm-aioaiagent 0.1.0__tar.gz → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dm-aioaiagent
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: This is my custom aioaiagent client
5
5
  Home-page: https://pypi.org/project/dm-aioaiagent
6
6
  Author: dimka4621
@@ -32,8 +32,6 @@ Requires-Dist: langchain-openai==0.2.0
32
32
 
33
33
  ## Usage
34
34
 
35
- ### Example of using DMAioAIAgent without tools
36
-
37
35
  Analogue to `DMAioAIAgent` is the synchronous client `DMAIAgent`.
38
36
 
39
37
  ```python
@@ -53,6 +51,7 @@ async def main():
53
51
 
54
52
  # create an agent
55
53
  ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
54
+ # you can set input_output_logging=False, if you don't want to see the input and output messages from agent
56
55
 
57
56
  # define the conversation messages
58
57
  messages = [
@@ -64,11 +63,9 @@ async def main():
64
63
  # start the agent
65
64
  state = await ai_agent.run(messages)
66
65
 
67
- # print answer
68
- print(state["answer"])
69
-
70
66
  # if you define tools, you can see the context of the tools
71
- print(state["answer"])
67
+ answer = state["answer"]
68
+ print(state["context"])
72
69
 
73
70
 
74
71
  if __name__ == "__main__":
@@ -9,8 +9,6 @@
9
9
 
10
10
  ## Usage
11
11
 
12
- ### Example of using DMAioAIAgent without tools
13
-
14
12
  Analogue to `DMAioAIAgent` is the synchronous client `DMAIAgent`.
15
13
 
16
14
  ```python
@@ -30,6 +28,7 @@ async def main():
30
28
 
31
29
  # create an agent
32
30
  ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
31
+ # you can set input_output_logging=False, if you don't want to see the input and output messages from agent
33
32
 
34
33
  # define the conversation messages
35
34
  messages = [
@@ -41,11 +40,9 @@ async def main():
41
40
  # start the agent
42
41
  state = await ai_agent.run(messages)
43
42
 
44
- # print answer
45
- print(state["answer"])
46
-
47
43
  # if you define tools, you can see the context of the tools
48
- print(state["answer"])
44
+ answer = state["answer"]
45
+ print(state["context"])
49
46
 
50
47
 
51
48
  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.2
4
4
  Summary: This is my custom aioaiagent client
5
5
  Home-page: https://pypi.org/project/dm-aioaiagent
6
6
  Author: dimka4621
@@ -32,8 +32,6 @@ Requires-Dist: langchain-openai==0.2.0
32
32
 
33
33
  ## Usage
34
34
 
35
- ### Example of using DMAioAIAgent without tools
36
-
37
35
  Analogue to `DMAioAIAgent` is the synchronous client `DMAIAgent`.
38
36
 
39
37
  ```python
@@ -53,6 +51,7 @@ async def main():
53
51
 
54
52
  # create an agent
55
53
  ai_agent = DMAioAIAgent(system_message, tools, model=model_name)
54
+ # you can set input_output_logging=False, if you don't want to see the input and output messages from agent
56
55
 
57
56
  # define the conversation messages
58
57
  messages = [
@@ -64,11 +63,9 @@ async def main():
64
63
  # start the agent
65
64
  state = await ai_agent.run(messages)
66
65
 
67
- # print answer
68
- print(state["answer"])
69
-
70
66
  # if you define tools, you can see the context of the tools
71
- print(state["answer"])
67
+ answer = state["answer"]
68
+ print(state["context"])
72
69
 
73
70
 
74
71
  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.2',
12
12
  author='dimka4621',
13
13
  author_email='mismartconfig@gmail.com',
14
14
  description='This is my custom aioaiagent client',
File without changes