dm-aioaiagent 0.1.0__py3-none-any.whl → 0.1.2__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.
@@ -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__":
@@ -1,7 +1,7 @@
1
1
  dm_aioaiagent/__init__.py,sha256=Hhgz18uMAnR0ezLOukoWCe1sFS4Q4LC26xbRKdu9FFw,118
2
2
  dm_aioaiagent/ai_agent.py,sha256=R08RvKc80yyxIgX7VRioqdwhQoLAdeTFtr2AJ5mPsvc,6956
3
3
  dm_aioaiagent/async_ai_agent.py,sha256=eGRg5IWR-lz8py_n6z4yB2cdKHwZNbcngIUxuOGN-hc,2396
4
- dm_aioaiagent-0.1.0.dist-info/METADATA,sha256=2oH3lfL4sigpzhY8EgK3Tzoe1pXOoGNj0lcW1L542Mc,2519
5
- dm_aioaiagent-0.1.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
- dm_aioaiagent-0.1.0.dist-info/top_level.txt,sha256=CbasLH0KI7zA77XwT6JDCnmRascxKNGvUVV9MgYjHAU,14
7
- dm_aioaiagent-0.1.0.dist-info/RECORD,,
4
+ dm_aioaiagent-0.1.2.dist-info/METADATA,sha256=2edZuBh8dQ8pavOBnEHIPRfz6zVHE7wGKUwPOn6fbc8,2565
5
+ dm_aioaiagent-0.1.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
+ dm_aioaiagent-0.1.2.dist-info/top_level.txt,sha256=CbasLH0KI7zA77XwT6JDCnmRascxKNGvUVV9MgYjHAU,14
7
+ dm_aioaiagent-0.1.2.dist-info/RECORD,,