agentx-python 0.3.1__tar.gz → 0.3.3__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.2
2
2
  Name: agentx-python
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Offical Python SDK for AgentX (https://www.agentx.so/)
5
5
  Home-page: https://github.com/AgentX-ai/AgentX-python-sdk
6
6
  Author: Robin Wang and AgentX Team
@@ -23,12 +23,25 @@ Dynamic: requires-dist
23
23
  Dynamic: requires-python
24
24
  Dynamic: summary
25
25
 
26
- # AgentX Python SDK API library
26
+ ![Logo](https://agentx-resources.s3.us-west-1.amazonaws.com/AgentX-logo-387x60.png)
27
27
 
28
28
  [![PyPI version](https://img.shields.io/pypi/v/agentx-python)](https://pypi.org/project/agentx-python/)
29
29
 
30
- The AgentX Python SDK provides a convenient way to access to your Agent programmatically.
31
- This is a python SDK for AgentX (https://www.agentx.so/)
30
+ ---
31
+
32
+ ## Fast way to build AI Agents and create agent workforce
33
+
34
+ The official AgentX Python SDK for [AgentX](https://www.agentx.so/)
35
+
36
+ Why build AI agent with AgentX?
37
+
38
+ - Simplicity, Agent - Conversation - Message structure.
39
+ - Include chain-of-thoughts.
40
+ - Choose from most open and closed sourced LLM vendors.
41
+ - Built-in Voice(ASR, TTS), Image Gen, Document, CSV/excel tool, OCR, etc.
42
+ - Support all running MCP (model context protocol).
43
+ - Support RAG with built-in re-rank.
44
+ - Multi-agent workforce orchestration.
32
45
 
33
46
  ## Installation
34
47
 
@@ -44,7 +57,7 @@ You can get an API key from https://app.agentx.so
44
57
  ### Agent
45
58
 
46
59
  ```python
47
- from agentx_python import AgentX
60
+ from agentx import AgentX
48
61
 
49
62
  client = AgentX(api_key="<your api key here>")
50
63
 
@@ -61,7 +74,13 @@ Each Conversation has `agents` and `users` tied to it.
61
74
  my_agent = client.get_agent(id="<agent id here>")
62
75
 
63
76
  # Get the list of conversation from this agent
64
- print(my_agent.list_conversations())
77
+ existing_conversations = my_agent.list_conversations()
78
+ print(existing_conversations)
79
+
80
+ # Get the list of history messages from a conversation
81
+ last_conversation = existing_conversations[-1]
82
+ msgs = last_conversation.list_messages()
83
+ print(msgs)
65
84
  ```
66
85
 
67
86
  ### Chat
@@ -71,10 +90,23 @@ A `chat` needs to happen in the conversation. You can do `stream` response too,
71
90
  ```python
72
91
  a_conversation = my_agent.get_conversation(id="<conversation id here>")
73
92
 
74
- response = a_conversation.chat("Hello, what is your name?", stream=True)
93
+ response = a_conversation.chat_stream("Hello, what is your name?")
75
94
  for chunk in response:
76
- print(chunk, end="")
95
+ print(chunk)
96
+ ```
97
+
98
+ output looks like:
77
99
 
78
- # output:
79
- # My name is Rosita. I'm an AI assistant created by AgentX. It's nice to meet you! How can I help you today?
80
100
  ```
101
+ text=None cot='The user is greeting and asking for my ' botId='xxx'
102
+ text=None cot='name, which are casual, straightforward questions.' botId='xxx'
103
+ text=None cot=' I can answer these directly' botId='xxx'
104
+ text='Hello' cot=None botId='xxx'
105
+ text='!' cot=None botId='xxx'
106
+ text=' I' cot=None botId='xxx'
107
+ text=' am' cot=None botId='xxx'
108
+ text=' AgentX' cot=None botId='xxx'
109
+ text=None cot=None botId='xxx'
110
+ ```
111
+
112
+ \*`cot` stands for chain-of-thoughts
@@ -0,0 +1,87 @@
1
+ ![Logo](https://agentx-resources.s3.us-west-1.amazonaws.com/AgentX-logo-387x60.png)
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/agentx-python)](https://pypi.org/project/agentx-python/)
4
+
5
+ ---
6
+
7
+ ## Fast way to build AI Agents and create agent workforce
8
+
9
+ The official AgentX Python SDK for [AgentX](https://www.agentx.so/)
10
+
11
+ Why build AI agent with AgentX?
12
+
13
+ - Simplicity, Agent - Conversation - Message structure.
14
+ - Include chain-of-thoughts.
15
+ - Choose from most open and closed sourced LLM vendors.
16
+ - Built-in Voice(ASR, TTS), Image Gen, Document, CSV/excel tool, OCR, etc.
17
+ - Support all running MCP (model context protocol).
18
+ - Support RAG with built-in re-rank.
19
+ - Multi-agent workforce orchestration.
20
+
21
+ ## Installation
22
+
23
+ ```bash
24
+ pip install --upgrade agentx-python
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Provide an `api_key` inline or set `AGENTX_API_KEY` as an environment variable.
30
+ You can get an API key from https://app.agentx.so
31
+
32
+ ### Agent
33
+
34
+ ```python
35
+ from agentx import AgentX
36
+
37
+ client = AgentX(api_key="<your api key here>")
38
+
39
+ # Get the list of agents you have
40
+ print(client.list_agents())
41
+ ```
42
+
43
+ ### Conversation
44
+
45
+ Each Conversation has `agents` and `users` tied to it.
46
+
47
+ ```python
48
+ # get agent
49
+ my_agent = client.get_agent(id="<agent id here>")
50
+
51
+ # Get the list of conversation from this agent
52
+ existing_conversations = my_agent.list_conversations()
53
+ print(existing_conversations)
54
+
55
+ # Get the list of history messages from a conversation
56
+ last_conversation = existing_conversations[-1]
57
+ msgs = last_conversation.list_messages()
58
+ print(msgs)
59
+ ```
60
+
61
+ ### Chat
62
+
63
+ A `chat` needs to happen in the conversation. You can do `stream` response too, default `False`.
64
+
65
+ ```python
66
+ a_conversation = my_agent.get_conversation(id="<conversation id here>")
67
+
68
+ response = a_conversation.chat_stream("Hello, what is your name?")
69
+ for chunk in response:
70
+ print(chunk)
71
+ ```
72
+
73
+ output looks like:
74
+
75
+ ```
76
+ text=None cot='The user is greeting and asking for my ' botId='xxx'
77
+ text=None cot='name, which are casual, straightforward questions.' botId='xxx'
78
+ text=None cot=' I can answer these directly' botId='xxx'
79
+ text='Hello' cot=None botId='xxx'
80
+ text='!' cot=None botId='xxx'
81
+ text=' I' cot=None botId='xxx'
82
+ text=' am' cot=None botId='xxx'
83
+ text=' AgentX' cot=None botId='xxx'
84
+ text=None cot=None botId='xxx'
85
+ ```
86
+
87
+ \*`cot` stands for chain-of-thoughts
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: agentx-python
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Offical Python SDK for AgentX (https://www.agentx.so/)
5
5
  Home-page: https://github.com/AgentX-ai/AgentX-python-sdk
6
6
  Author: Robin Wang and AgentX Team
@@ -23,12 +23,25 @@ Dynamic: requires-dist
23
23
  Dynamic: requires-python
24
24
  Dynamic: summary
25
25
 
26
- # AgentX Python SDK API library
26
+ ![Logo](https://agentx-resources.s3.us-west-1.amazonaws.com/AgentX-logo-387x60.png)
27
27
 
28
28
  [![PyPI version](https://img.shields.io/pypi/v/agentx-python)](https://pypi.org/project/agentx-python/)
29
29
 
30
- The AgentX Python SDK provides a convenient way to access to your Agent programmatically.
31
- This is a python SDK for AgentX (https://www.agentx.so/)
30
+ ---
31
+
32
+ ## Fast way to build AI Agents and create agent workforce
33
+
34
+ The official AgentX Python SDK for [AgentX](https://www.agentx.so/)
35
+
36
+ Why build AI agent with AgentX?
37
+
38
+ - Simplicity, Agent - Conversation - Message structure.
39
+ - Include chain-of-thoughts.
40
+ - Choose from most open and closed sourced LLM vendors.
41
+ - Built-in Voice(ASR, TTS), Image Gen, Document, CSV/excel tool, OCR, etc.
42
+ - Support all running MCP (model context protocol).
43
+ - Support RAG with built-in re-rank.
44
+ - Multi-agent workforce orchestration.
32
45
 
33
46
  ## Installation
34
47
 
@@ -44,7 +57,7 @@ You can get an API key from https://app.agentx.so
44
57
  ### Agent
45
58
 
46
59
  ```python
47
- from agentx_python import AgentX
60
+ from agentx import AgentX
48
61
 
49
62
  client = AgentX(api_key="<your api key here>")
50
63
 
@@ -61,7 +74,13 @@ Each Conversation has `agents` and `users` tied to it.
61
74
  my_agent = client.get_agent(id="<agent id here>")
62
75
 
63
76
  # Get the list of conversation from this agent
64
- print(my_agent.list_conversations())
77
+ existing_conversations = my_agent.list_conversations()
78
+ print(existing_conversations)
79
+
80
+ # Get the list of history messages from a conversation
81
+ last_conversation = existing_conversations[-1]
82
+ msgs = last_conversation.list_messages()
83
+ print(msgs)
65
84
  ```
66
85
 
67
86
  ### Chat
@@ -71,10 +90,23 @@ A `chat` needs to happen in the conversation. You can do `stream` response too,
71
90
  ```python
72
91
  a_conversation = my_agent.get_conversation(id="<conversation id here>")
73
92
 
74
- response = a_conversation.chat("Hello, what is your name?", stream=True)
93
+ response = a_conversation.chat_stream("Hello, what is your name?")
75
94
  for chunk in response:
76
- print(chunk, end="")
95
+ print(chunk)
96
+ ```
97
+
98
+ output looks like:
77
99
 
78
- # output:
79
- # My name is Rosita. I'm an AI assistant created by AgentX. It's nice to meet you! How can I help you today?
80
100
  ```
101
+ text=None cot='The user is greeting and asking for my ' botId='xxx'
102
+ text=None cot='name, which are casual, straightforward questions.' botId='xxx'
103
+ text=None cot=' I can answer these directly' botId='xxx'
104
+ text='Hello' cot=None botId='xxx'
105
+ text='!' cot=None botId='xxx'
106
+ text=' I' cot=None botId='xxx'
107
+ text=' am' cot=None botId='xxx'
108
+ text=' AgentX' cot=None botId='xxx'
109
+ text=None cot=None botId='xxx'
110
+ ```
111
+
112
+ \*`cot` stands for chain-of-thoughts
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="agentx-python",
5
- version="0.3.1", # Update this version number each time you make a release
5
+ version="0.3.3", # Update this version number each time you make a release
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "urllib3>=1.26.11",
@@ -1,55 +0,0 @@
1
- # AgentX Python SDK API library
2
-
3
- [![PyPI version](https://img.shields.io/pypi/v/agentx-python)](https://pypi.org/project/agentx-python/)
4
-
5
- The AgentX Python SDK provides a convenient way to access to your Agent programmatically.
6
- This is a python SDK for AgentX (https://www.agentx.so/)
7
-
8
- ## Installation
9
-
10
- ```bash
11
- pip install --upgrade agentx-python
12
- ```
13
-
14
- ## Usage
15
-
16
- Provide an `api_key` inline or set `AGENTX_API_KEY` as an environment variable.
17
- You can get an API key from https://app.agentx.so
18
-
19
- ### Agent
20
-
21
- ```python
22
- from agentx_python import AgentX
23
-
24
- client = AgentX(api_key="<your api key here>")
25
-
26
- # Get the list of agents you have
27
- print(client.list_agents())
28
- ```
29
-
30
- ### Conversation
31
-
32
- Each Conversation has `agents` and `users` tied to it.
33
-
34
- ```python
35
- # get agent
36
- my_agent = client.get_agent(id="<agent id here>")
37
-
38
- # Get the list of conversation from this agent
39
- print(my_agent.list_conversations())
40
- ```
41
-
42
- ### Chat
43
-
44
- A `chat` needs to happen in the conversation. You can do `stream` response too, default `False`.
45
-
46
- ```python
47
- a_conversation = my_agent.get_conversation(id="<conversation id here>")
48
-
49
- response = a_conversation.chat("Hello, what is your name?", stream=True)
50
- for chunk in response:
51
- print(chunk, end="")
52
-
53
- # output:
54
- # My name is Rosita. I'm an AI assistant created by AgentX. It's nice to meet you! How can I help you today?
55
- ```
File without changes
File without changes