ag2 0.8.2rc0__py3-none-any.whl → 0.8.4__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.
Potentially problematic release.
This version of ag2 might be problematic. Click here for more details.
- {ag2-0.8.2rc0.dist-info → ag2-0.8.4.dist-info}/METADATA +79 -80
- ag2-0.8.4.dist-info/RECORD +6 -0
- ag2-0.8.2rc0.dist-info/RECORD +0 -6
- {ag2-0.8.2rc0.dist-info → ag2-0.8.4.dist-info}/LICENSE +0 -0
- {ag2-0.8.2rc0.dist-info → ag2-0.8.4.dist-info}/NOTICE.md +0 -0
- {ag2-0.8.2rc0.dist-info → ag2-0.8.4.dist-info}/WHEEL +0 -0
- {ag2-0.8.2rc0.dist-info → ag2-0.8.4.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ag2
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.4
|
|
4
4
|
Summary: Alias package for pyautogen
|
|
5
5
|
Home-page: https://github.com/ag2ai/ag2
|
|
6
6
|
Author: Chi Wang & Qingyun Wu
|
|
@@ -14,109 +14,109 @@ Requires-Python: >=3.9,<3.14
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
License-File: NOTICE.md
|
|
17
|
-
Requires-Dist: pyautogen==0.8.
|
|
17
|
+
Requires-Dist: pyautogen==0.8.4
|
|
18
18
|
Provides-Extra: anthropic
|
|
19
|
-
Requires-Dist: pyautogen[anthropic]==0.8.
|
|
19
|
+
Requires-Dist: pyautogen[anthropic]==0.8.4; extra == "anthropic"
|
|
20
20
|
Provides-Extra: autobuild
|
|
21
|
-
Requires-Dist: pyautogen[autobuild]==0.8.
|
|
21
|
+
Requires-Dist: pyautogen[autobuild]==0.8.4; extra == "autobuild"
|
|
22
22
|
Provides-Extra: bedrock
|
|
23
|
-
Requires-Dist: pyautogen[bedrock]==0.8.
|
|
23
|
+
Requires-Dist: pyautogen[bedrock]==0.8.4; extra == "bedrock"
|
|
24
24
|
Provides-Extra: blendsearch
|
|
25
|
-
Requires-Dist: pyautogen[blendsearch]==0.8.
|
|
25
|
+
Requires-Dist: pyautogen[blendsearch]==0.8.4; extra == "blendsearch"
|
|
26
26
|
Provides-Extra: browser-use
|
|
27
|
-
Requires-Dist: pyautogen[browser-use]==0.8.
|
|
27
|
+
Requires-Dist: pyautogen[browser-use]==0.8.4; extra == "browser-use"
|
|
28
28
|
Provides-Extra: captainagent
|
|
29
|
-
Requires-Dist: pyautogen[captainagent]==0.8.
|
|
29
|
+
Requires-Dist: pyautogen[captainagent]==0.8.4; extra == "captainagent"
|
|
30
30
|
Provides-Extra: cerebras
|
|
31
|
-
Requires-Dist: pyautogen[cerebras]==0.8.
|
|
31
|
+
Requires-Dist: pyautogen[cerebras]==0.8.4; extra == "cerebras"
|
|
32
32
|
Provides-Extra: cohere
|
|
33
|
-
Requires-Dist: pyautogen[cohere]==0.8.
|
|
33
|
+
Requires-Dist: pyautogen[cohere]==0.8.4; extra == "cohere"
|
|
34
34
|
Provides-Extra: commsagent-discord
|
|
35
|
-
Requires-Dist: pyautogen[commsagent-discord]==0.8.
|
|
35
|
+
Requires-Dist: pyautogen[commsagent-discord]==0.8.4; extra == "commsagent-discord"
|
|
36
36
|
Provides-Extra: commsagent-slack
|
|
37
|
-
Requires-Dist: pyautogen[commsagent-slack]==0.8.
|
|
37
|
+
Requires-Dist: pyautogen[commsagent-slack]==0.8.4; extra == "commsagent-slack"
|
|
38
38
|
Provides-Extra: commsagent-telegram
|
|
39
|
-
Requires-Dist: pyautogen[commsagent-telegram]==0.8.
|
|
39
|
+
Requires-Dist: pyautogen[commsagent-telegram]==0.8.4; extra == "commsagent-telegram"
|
|
40
40
|
Provides-Extra: cosmosdb
|
|
41
|
-
Requires-Dist: pyautogen[cosmosdb]==0.8.
|
|
41
|
+
Requires-Dist: pyautogen[cosmosdb]==0.8.4; extra == "cosmosdb"
|
|
42
42
|
Provides-Extra: crawl4ai
|
|
43
|
-
Requires-Dist: pyautogen[crawl4ai]==0.8.
|
|
43
|
+
Requires-Dist: pyautogen[crawl4ai]==0.8.4; extra == "crawl4ai"
|
|
44
44
|
Provides-Extra: deepseek
|
|
45
|
-
Requires-Dist: pyautogen[deepseek]==0.8.
|
|
45
|
+
Requires-Dist: pyautogen[deepseek]==0.8.4; extra == "deepseek"
|
|
46
46
|
Provides-Extra: dev
|
|
47
|
-
Requires-Dist: pyautogen[dev]==0.8.
|
|
47
|
+
Requires-Dist: pyautogen[dev]==0.8.4; extra == "dev"
|
|
48
48
|
Provides-Extra: docs
|
|
49
|
-
Requires-Dist: pyautogen[docs]==0.8.
|
|
49
|
+
Requires-Dist: pyautogen[docs]==0.8.4; extra == "docs"
|
|
50
50
|
Provides-Extra: flaml
|
|
51
|
-
Requires-Dist: pyautogen[flaml]==0.8.
|
|
51
|
+
Requires-Dist: pyautogen[flaml]==0.8.4; extra == "flaml"
|
|
52
52
|
Provides-Extra: gemini
|
|
53
|
-
Requires-Dist: pyautogen[gemini]==0.8.
|
|
53
|
+
Requires-Dist: pyautogen[gemini]==0.8.4; extra == "gemini"
|
|
54
54
|
Provides-Extra: gemini-realtime
|
|
55
|
-
Requires-Dist: pyautogen[gemini-realtime]==0.8.
|
|
55
|
+
Requires-Dist: pyautogen[gemini-realtime]==0.8.4; extra == "gemini-realtime"
|
|
56
56
|
Provides-Extra: google-search
|
|
57
|
-
Requires-Dist: pyautogen[google-search]==0.8.
|
|
57
|
+
Requires-Dist: pyautogen[google-search]==0.8.4; extra == "google-search"
|
|
58
58
|
Provides-Extra: graph
|
|
59
|
-
Requires-Dist: pyautogen[graph]==0.8.
|
|
59
|
+
Requires-Dist: pyautogen[graph]==0.8.4; extra == "graph"
|
|
60
60
|
Provides-Extra: graph-rag-falkor-db
|
|
61
|
-
Requires-Dist: pyautogen[graph-rag-falkor-db]==0.8.
|
|
61
|
+
Requires-Dist: pyautogen[graph-rag-falkor-db]==0.8.4; extra == "graph-rag-falkor-db"
|
|
62
62
|
Provides-Extra: groq
|
|
63
|
-
Requires-Dist: pyautogen[groq]==0.8.
|
|
63
|
+
Requires-Dist: pyautogen[groq]==0.8.4; extra == "groq"
|
|
64
64
|
Provides-Extra: interop
|
|
65
|
-
Requires-Dist: pyautogen[interop]==0.8.
|
|
65
|
+
Requires-Dist: pyautogen[interop]==0.8.4; extra == "interop"
|
|
66
66
|
Provides-Extra: interop-crewai
|
|
67
|
-
Requires-Dist: pyautogen[interop-crewai]==0.8.
|
|
67
|
+
Requires-Dist: pyautogen[interop-crewai]==0.8.4; extra == "interop-crewai"
|
|
68
68
|
Provides-Extra: interop-langchain
|
|
69
|
-
Requires-Dist: pyautogen[interop-langchain]==0.8.
|
|
69
|
+
Requires-Dist: pyautogen[interop-langchain]==0.8.4; extra == "interop-langchain"
|
|
70
70
|
Provides-Extra: interop-pydantic-ai
|
|
71
|
-
Requires-Dist: pyautogen[interop-pydantic-ai]==0.8.
|
|
71
|
+
Requires-Dist: pyautogen[interop-pydantic-ai]==0.8.4; extra == "interop-pydantic-ai"
|
|
72
72
|
Provides-Extra: jupyter-executor
|
|
73
|
-
Requires-Dist: pyautogen[jupyter-executor]==0.8.
|
|
73
|
+
Requires-Dist: pyautogen[jupyter-executor]==0.8.4; extra == "jupyter-executor"
|
|
74
74
|
Provides-Extra: lint
|
|
75
|
-
Requires-Dist: pyautogen[lint]==0.8.
|
|
75
|
+
Requires-Dist: pyautogen[lint]==0.8.4; extra == "lint"
|
|
76
76
|
Provides-Extra: lmm
|
|
77
|
-
Requires-Dist: pyautogen[lmm]==0.8.
|
|
77
|
+
Requires-Dist: pyautogen[lmm]==0.8.4; extra == "lmm"
|
|
78
78
|
Provides-Extra: long-context
|
|
79
|
-
Requires-Dist: pyautogen[long-context]==0.8.
|
|
79
|
+
Requires-Dist: pyautogen[long-context]==0.8.4; extra == "long-context"
|
|
80
80
|
Provides-Extra: mathchat
|
|
81
|
-
Requires-Dist: pyautogen[mathchat]==0.8.
|
|
81
|
+
Requires-Dist: pyautogen[mathchat]==0.8.4; extra == "mathchat"
|
|
82
82
|
Provides-Extra: mistral
|
|
83
|
-
Requires-Dist: pyautogen[mistral]==0.8.
|
|
83
|
+
Requires-Dist: pyautogen[mistral]==0.8.4; extra == "mistral"
|
|
84
84
|
Provides-Extra: neo4j
|
|
85
|
-
Requires-Dist: pyautogen[neo4j]==0.8.
|
|
85
|
+
Requires-Dist: pyautogen[neo4j]==0.8.4; extra == "neo4j"
|
|
86
86
|
Provides-Extra: ollama
|
|
87
|
-
Requires-Dist: pyautogen[ollama]==0.8.
|
|
87
|
+
Requires-Dist: pyautogen[ollama]==0.8.4; extra == "ollama"
|
|
88
88
|
Provides-Extra: openai
|
|
89
|
-
Requires-Dist: pyautogen[openai]==0.8.
|
|
89
|
+
Requires-Dist: pyautogen[openai]==0.8.4; extra == "openai"
|
|
90
90
|
Provides-Extra: openai-realtime
|
|
91
|
-
Requires-Dist: pyautogen[openai-realtime]==0.8.
|
|
91
|
+
Requires-Dist: pyautogen[openai-realtime]==0.8.4; extra == "openai-realtime"
|
|
92
92
|
Provides-Extra: rag
|
|
93
|
-
Requires-Dist: pyautogen[rag]==0.8.
|
|
93
|
+
Requires-Dist: pyautogen[rag]==0.8.4; extra == "rag"
|
|
94
94
|
Provides-Extra: redis
|
|
95
|
-
Requires-Dist: pyautogen[redis]==0.8.
|
|
95
|
+
Requires-Dist: pyautogen[redis]==0.8.4; extra == "redis"
|
|
96
96
|
Provides-Extra: retrievechat
|
|
97
|
-
Requires-Dist: pyautogen[retrievechat]==0.8.
|
|
97
|
+
Requires-Dist: pyautogen[retrievechat]==0.8.4; extra == "retrievechat"
|
|
98
98
|
Provides-Extra: retrievechat-couchbase
|
|
99
|
-
Requires-Dist: pyautogen[retrievechat-couchbase]==0.8.
|
|
99
|
+
Requires-Dist: pyautogen[retrievechat-couchbase]==0.8.4; extra == "retrievechat-couchbase"
|
|
100
100
|
Provides-Extra: retrievechat-mongodb
|
|
101
|
-
Requires-Dist: pyautogen[retrievechat-mongodb]==0.8.
|
|
101
|
+
Requires-Dist: pyautogen[retrievechat-mongodb]==0.8.4; extra == "retrievechat-mongodb"
|
|
102
102
|
Provides-Extra: retrievechat-pgvector
|
|
103
|
-
Requires-Dist: pyautogen[retrievechat-pgvector]==0.8.
|
|
103
|
+
Requires-Dist: pyautogen[retrievechat-pgvector]==0.8.4; extra == "retrievechat-pgvector"
|
|
104
104
|
Provides-Extra: retrievechat-qdrant
|
|
105
|
-
Requires-Dist: pyautogen[retrievechat-qdrant]==0.8.
|
|
105
|
+
Requires-Dist: pyautogen[retrievechat-qdrant]==0.8.4; extra == "retrievechat-qdrant"
|
|
106
106
|
Provides-Extra: teachable
|
|
107
|
-
Requires-Dist: pyautogen[teachable]==0.8.
|
|
107
|
+
Requires-Dist: pyautogen[teachable]==0.8.4; extra == "teachable"
|
|
108
108
|
Provides-Extra: test
|
|
109
|
-
Requires-Dist: pyautogen[test]==0.8.
|
|
109
|
+
Requires-Dist: pyautogen[test]==0.8.4; extra == "test"
|
|
110
110
|
Provides-Extra: together
|
|
111
|
-
Requires-Dist: pyautogen[together]==0.8.
|
|
111
|
+
Requires-Dist: pyautogen[together]==0.8.4; extra == "together"
|
|
112
112
|
Provides-Extra: twilio
|
|
113
|
-
Requires-Dist: pyautogen[twilio]==0.8.
|
|
113
|
+
Requires-Dist: pyautogen[twilio]==0.8.4; extra == "twilio"
|
|
114
114
|
Provides-Extra: types
|
|
115
|
-
Requires-Dist: pyautogen[types]==0.8.
|
|
115
|
+
Requires-Dist: pyautogen[types]==0.8.4; extra == "types"
|
|
116
116
|
Provides-Extra: websockets
|
|
117
|
-
Requires-Dist: pyautogen[websockets]==0.8.
|
|
117
|
+
Requires-Dist: pyautogen[websockets]==0.8.4; extra == "websockets"
|
|
118
118
|
Provides-Extra: websurfer
|
|
119
|
-
Requires-Dist: pyautogen[websurfer]==0.8.
|
|
119
|
+
Requires-Dist: pyautogen[websurfer]==0.8.4; extra == "websurfer"
|
|
120
120
|
|
|
121
121
|
<a name="readme-top"></a>
|
|
122
122
|
|
|
@@ -213,13 +213,13 @@ You can use the sample file `OAI_CONFIG_LIST_sample` as a template.
|
|
|
213
213
|
Create a script or a Jupyter Notebook and run your first agent.
|
|
214
214
|
|
|
215
215
|
```python
|
|
216
|
-
from autogen import AssistantAgent, UserProxyAgent,
|
|
216
|
+
from autogen import AssistantAgent, UserProxyAgent, LLMConfig
|
|
217
|
+
|
|
218
|
+
llm_config = LLMConfig.from_json(path="OAI_CONFIG_LIST")
|
|
217
219
|
|
|
218
|
-
llm_config = {
|
|
219
|
-
"config_list": config_list_from_json(env_or_file="OAI_CONFIG_LIST")
|
|
220
|
-
}
|
|
221
220
|
|
|
222
|
-
|
|
221
|
+
with llm_config:
|
|
222
|
+
assistant = AssistantAgent("assistant")
|
|
223
223
|
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False})
|
|
224
224
|
user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
|
|
225
225
|
# This initiates an automated chat between the two agents to solve the task
|
|
@@ -250,19 +250,18 @@ It serves as a base class for all agents in AG2.
|
|
|
250
250
|
```python
|
|
251
251
|
from autogen import ConversableAgent
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
)
|
|
253
|
+
with llm_config:
|
|
254
|
+
# Create an AI agent
|
|
255
|
+
assistant = ConversableAgent(
|
|
256
|
+
name="assistant",
|
|
257
|
+
system_message="You are an assistant that responds concisely.",
|
|
258
|
+
)
|
|
259
259
|
|
|
260
|
-
# Create another AI agent
|
|
261
|
-
fact_checker = ConversableAgent(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
)
|
|
260
|
+
# Create another AI agent
|
|
261
|
+
fact_checker = ConversableAgent(
|
|
262
|
+
name="fact_checker",
|
|
263
|
+
system_message="You are a fact-checking assistant.",
|
|
264
|
+
)
|
|
266
265
|
|
|
267
266
|
# Start the conversation
|
|
268
267
|
assistant.initiate_chat(
|
|
@@ -286,11 +285,11 @@ We created a class which sets the `human_input_mode` to `ALWAYS` for you. Its ca
|
|
|
286
285
|
from autogen import ConversableAgent
|
|
287
286
|
|
|
288
287
|
# Create an AI agent
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
)
|
|
288
|
+
with llm_config:
|
|
289
|
+
assistant = ConversableAgent(
|
|
290
|
+
name="assistant",
|
|
291
|
+
system_message="You are a helpful assistant.",
|
|
292
|
+
)
|
|
294
293
|
|
|
295
294
|
# Create a human agent with manual input mode
|
|
296
295
|
human = ConversableAgent(
|
|
@@ -356,11 +355,11 @@ def get_weekday(date_string: Annotated[str, "Format: YYYY-MM-DD"]) -> str:
|
|
|
356
355
|
return date.strftime("%A")
|
|
357
356
|
|
|
358
357
|
# 2. Agent for determining whether to run the tool
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
)
|
|
358
|
+
with llm_config:
|
|
359
|
+
date_agent = ConversableAgent(
|
|
360
|
+
name="date_agent",
|
|
361
|
+
system_message="You get the day of the week for a given date.",
|
|
362
|
+
)
|
|
364
363
|
|
|
365
364
|
# 3. And an agent for executing the tool
|
|
366
365
|
executor_agent = ConversableAgent(
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
ag2-0.8.4.dist-info/LICENSE,sha256=GEFQVNayAR-S_rQD5l8hPdgvgyktVdy4Bx5-v90IfRI,11384
|
|
2
|
+
ag2-0.8.4.dist-info/METADATA,sha256=z66LyyxLo1P35J_FP_nHsIOK8DBRT0ORCTvsvaAzA14,19682
|
|
3
|
+
ag2-0.8.4.dist-info/NOTICE.md,sha256=07iCPQGbth4pQrgkSgZinJGT5nXddkZ6_MGYcBd2oiY,1134
|
|
4
|
+
ag2-0.8.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
5
|
+
ag2-0.8.4.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
|
+
ag2-0.8.4.dist-info/RECORD,,
|
ag2-0.8.2rc0.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
ag2-0.8.2rc0.dist-info/LICENSE,sha256=GEFQVNayAR-S_rQD5l8hPdgvgyktVdy4Bx5-v90IfRI,11384
|
|
2
|
-
ag2-0.8.2rc0.dist-info/METADATA,sha256=5c0rgX5VR4gSfIekGb_i8VILpaRmZNlkb1aE9cwVtdo,19904
|
|
3
|
-
ag2-0.8.2rc0.dist-info/NOTICE.md,sha256=07iCPQGbth4pQrgkSgZinJGT5nXddkZ6_MGYcBd2oiY,1134
|
|
4
|
-
ag2-0.8.2rc0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
5
|
-
ag2-0.8.2rc0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
|
-
ag2-0.8.2rc0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|