mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-04-25 11:18:06 +00:00
delete unnecessary files
This commit is contained in:
parent
c2dd7abd55
commit
546884980d
@ -1,2 +0,0 @@
|
|||||||
def hello(name: str) -> str:
|
|
||||||
return f"Hello {name}"
|
|
||||||
@ -1,74 +0,0 @@
|
|||||||
version: 0.0.1
|
|
||||||
vars: {}
|
|
||||||
graph:
|
|
||||||
id: middle_east_news_analysis
|
|
||||||
description: Fetch and analyze latest Middle East news using web search
|
|
||||||
log_level: INFO
|
|
||||||
is_majority_voting: false
|
|
||||||
start:
|
|
||||||
- News Researcher
|
|
||||||
end:
|
|
||||||
- News Analyst
|
|
||||||
nodes:
|
|
||||||
- id: News Researcher
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are a News Researcher. Your task is to search for the latest Middle East news using web search.
|
|
||||||
|
|
||||||
[Instructions]
|
|
||||||
1. Use the web_search tool to search for latest Middle East news
|
|
||||||
2. Search for multiple relevant queries to get comprehensive coverage
|
|
||||||
3. Save the news results to a file named middle_east_news.txt
|
|
||||||
|
|
||||||
[Search Queries to Try]
|
|
||||||
- Middle East latest news today
|
|
||||||
- Israel Palestine news 2025
|
|
||||||
- Iran Saudi Arabia tensions
|
|
||||||
- Syria Lebanon situation
|
|
||||||
|
|
||||||
Output the search results to the file.
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: web_search
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
- name: read_text_file_snippet
|
|
||||||
- id: News Analyst
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are a Middle East Political Analyst. Your task is to analyze the fetched news and provide a comprehensive situation report.
|
|
||||||
|
|
||||||
[Your Output Should Include]
|
|
||||||
1. Key Events: List the most important recent developments
|
|
||||||
2. Country-by-Country Breakdown: Analyze the situation in major countries
|
|
||||||
3. Regional Dynamics: Explain the relationships between different actors
|
|
||||||
4. Future Outlook: Provide analysis on potential developments
|
|
||||||
|
|
||||||
[Format]
|
|
||||||
Write a detailed report in Chinese with clear sections and bullet points.
|
|
||||||
|
|
||||||
First, read the news file to understand the content.
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
- name: read_text_file_snippet
|
|
||||||
edges: []
|
|
||||||
@ -1,280 +0,0 @@
|
|||||||
version: 0.0.1
|
|
||||||
vars: {}
|
|
||||||
graph:
|
|
||||||
id: middle_east_simulation
|
|
||||||
description: Simulate Middle East situation from multiple parties perspectives
|
|
||||||
log_level: INFO
|
|
||||||
is_majority_voting: false
|
|
||||||
start:
|
|
||||||
- Situation Brief
|
|
||||||
end:
|
|
||||||
- Final Report
|
|
||||||
nodes:
|
|
||||||
- id: Situation Brief
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are a News Analyst. Your task is to search for the latest Middle East news and create a situation brief.
|
|
||||||
|
|
||||||
[Instructions]
|
|
||||||
1. Use web_search to get the latest Middle East news
|
|
||||||
2. Focus on: US-Israel operations, Iran tensions, Lebanon/Syria situation, Gulf states response
|
|
||||||
3. Create a brief summary (2-3 paragraphs) of the current situation
|
|
||||||
|
|
||||||
[Output]
|
|
||||||
Save the situation brief to a file named situation_brief.txt
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: web_search
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: US Perspective
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are playing the role of the United States Government. Analyze the current Middle East situation from the US perspective.
|
|
||||||
|
|
||||||
[Your Role]
|
|
||||||
- You represent American strategic interests
|
|
||||||
- Support Israel right to self-defense
|
|
||||||
- Want to contain Iran influence
|
|
||||||
- Protect US military personnel in the region
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
Based on the situation brief, write 2-3 paragraphs analyzing:
|
|
||||||
1. Current US objectives in the Middle East
|
|
||||||
2. How US views Iran, Israel, and other actors
|
|
||||||
3. What US likely will do next
|
|
||||||
|
|
||||||
Write in first person as the US government. Be realistic and strategic.
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: Israel Perspective
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are playing the role of the Israeli Government. Analyze the current Middle East situation from Israel perspective.
|
|
||||||
|
|
||||||
[Your Role]
|
|
||||||
- You represent Israeli security interests
|
|
||||||
- Face existential threats from Iran and proxies
|
|
||||||
- Need to maintain military superiority
|
|
||||||
- Navigate international pressure
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
Based on the situation brief, write 2-3 paragraphs analyzing:
|
|
||||||
1. Israel current security concerns
|
|
||||||
2. How Israel views Iran, Hezbollah, Hamas
|
|
||||||
3. What Israel likely will do next
|
|
||||||
|
|
||||||
Write in first person as the Israeli government. Be defensive but determined.
|
|
||||||
|
|
||||||
[Note: This is a simulation for educational purposes]
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: Iran Perspective
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are playing the role of the Iranian Government. Analyze the current Middle East situation from Iran perspective.
|
|
||||||
|
|
||||||
[Your Role]
|
|
||||||
- You represent Iranian regional interests
|
|
||||||
- Support Axis of Resistance (Hezbollah, Hamas, Houthis)
|
|
||||||
- Face US/Israel military pressure
|
|
||||||
- Navigate internal political challenges
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
Based on the situation brief, write 2-3 paragraphs analyzing:
|
|
||||||
1. Iran regional strategy and allies
|
|
||||||
2. How Iran views US, Israel, Saudi Arabia
|
|
||||||
3. What Iran likely will do next
|
|
||||||
|
|
||||||
Write in first person as the Iranian government. Be defensive about sovereignty.
|
|
||||||
|
|
||||||
[Note: This is a simulation for educational purposes]
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: Arab League Perspective
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are playing the role of the Arab League / Gulf States. Analyze the current Middle East situation from the Arab world perspective.
|
|
||||||
|
|
||||||
[Your Role]
|
|
||||||
- You represent Saudi Arabia, UAE, and other Gulf states
|
|
||||||
- Compete with Iran for regional influence
|
|
||||||
- Concerned about instability and refugees
|
|
||||||
- Have normalization deals with Israel but cautious
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
Based on the situation brief, write 2-3 paragraphs analyzing:
|
|
||||||
1. How Arab states view the US-Iran-Israel triangle
|
|
||||||
2. Regional stability concerns
|
|
||||||
3. What Arab states likely will do
|
|
||||||
|
|
||||||
Write in first person as the Arab League.
|
|
||||||
|
|
||||||
[Note: This is a simulation for educational purposes]
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: Simulation Orchestrator
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are a Political Simulation Orchestrator. Your task is to synthesize all perspectives and create an interactive simulation scenario.
|
|
||||||
|
|
||||||
[Input]
|
|
||||||
You have perspective analyses from:
|
|
||||||
- United States
|
|
||||||
- Israel
|
|
||||||
- Iran
|
|
||||||
- Arab League
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
1. Read all perspective files
|
|
||||||
2. Identify key conflicts and opportunities for dialogue
|
|
||||||
3. Create 3-5 simulation scenarios showing how these parties might interact
|
|
||||||
4. For each scenario, predict possible outcomes
|
|
||||||
|
|
||||||
[Output Format]
|
|
||||||
Create a simulation scenarios document with:
|
|
||||||
- Brief: Current deadlock points
|
|
||||||
- Scenario 1: [Title] - How parties might react
|
|
||||||
- Scenario 2: [Title] - How parties might react
|
|
||||||
- Scenario 3: [Title] - How parties might react
|
|
||||||
- Risk Assessment: What could trigger major escalation
|
|
||||||
- De-escalation Path: What could lead to peace
|
|
||||||
|
|
||||||
Write in English, use clear formatting.
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
- id: Final Report
|
|
||||||
type: agent
|
|
||||||
context_window: -1
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
name: gpt-4o
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
role: |-
|
|
||||||
You are a Senior Political Analyst. Create a final comprehensive report on the Middle East simulation.
|
|
||||||
|
|
||||||
[Task]
|
|
||||||
Compile all inputs into a professional analysis report:
|
|
||||||
|
|
||||||
1. Executive Summary (1 paragraph)
|
|
||||||
2. Current Situation Overview
|
|
||||||
3. Party Perspectives Summary:
|
|
||||||
- US Position
|
|
||||||
- Israel Position
|
|
||||||
- Iran Position
|
|
||||||
- Arab States Position
|
|
||||||
4. Simulation Scenarios
|
|
||||||
5. Key Takeaways
|
|
||||||
6. Outlook (next 3-6 months)
|
|
||||||
|
|
||||||
[Format]
|
|
||||||
Use markdown. Write in Chinese (Simplified). Make it comprehensive but readable.
|
|
||||||
|
|
||||||
This is for educational/analytical purposes only.
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: describe_available_files
|
|
||||||
- name: load_file
|
|
||||||
|
|
||||||
edges:
|
|
||||||
- from: Situation Brief
|
|
||||||
to: US Perspective
|
|
||||||
condition: true
|
|
||||||
- from: Situation Brief
|
|
||||||
to: Israel Perspective
|
|
||||||
condition: true
|
|
||||||
- from: Situation Brief
|
|
||||||
to: Iran Perspective
|
|
||||||
condition: true
|
|
||||||
- from: Situation Brief
|
|
||||||
to: Arab League Perspective
|
|
||||||
condition: true
|
|
||||||
- from: US Perspective
|
|
||||||
to: Simulation Orchestrator
|
|
||||||
condition: true
|
|
||||||
- from: Israel Perspective
|
|
||||||
to: Simulation Orchestrator
|
|
||||||
condition: true
|
|
||||||
- from: Iran Perspective
|
|
||||||
to: Simulation Orchestrator
|
|
||||||
condition: true
|
|
||||||
- from: Arab League Perspective
|
|
||||||
to: Simulation Orchestrator
|
|
||||||
condition: true
|
|
||||||
- from: Simulation Orchestrator
|
|
||||||
to: Final Report
|
|
||||||
condition: true
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
version: 0.4.0
|
|
||||||
vars: {}
|
|
||||||
graph:
|
|
||||||
id: url_summarize
|
|
||||||
description: 爬取URL内容并总结
|
|
||||||
is_majority_voting: false
|
|
||||||
log_level: INFO
|
|
||||||
start:
|
|
||||||
- Web Fetcher
|
|
||||||
nodes:
|
|
||||||
- id: Web Fetcher
|
|
||||||
type: agent
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
name: gpt-4o
|
|
||||||
role: |
|
|
||||||
你是网页内容抓取助手。你的任务是从URL提取内容。
|
|
||||||
|
|
||||||
[关键指令]
|
|
||||||
1. 必须使用 read_webpage_content 工具来抓取网页
|
|
||||||
2. URL格式: {"url": "https://example.com"}
|
|
||||||
3. 返回提取的内容
|
|
||||||
tooling:
|
|
||||||
- type: function
|
|
||||||
config:
|
|
||||||
auto_load: true
|
|
||||||
tools:
|
|
||||||
- name: web:All
|
|
||||||
- id: Content Summarizer
|
|
||||||
type: agent
|
|
||||||
config:
|
|
||||||
provider: openai
|
|
||||||
base_url: ${BASE_URL}
|
|
||||||
api_key: ${API_KEY}
|
|
||||||
name: gpt-4o
|
|
||||||
role: |
|
|
||||||
总结网页内容。
|
|
||||||
|
|
||||||
输出格式(中文):
|
|
||||||
## 摘要
|
|
||||||
<2-3句总结>
|
|
||||||
|
|
||||||
## 关键点
|
|
||||||
- <point 1>
|
|
||||||
- <point 2>
|
|
||||||
- <point 3>
|
|
||||||
edges:
|
|
||||||
- from: Web Fetcher
|
|
||||||
to: Content Summarizer
|
|
||||||
keep_message: true
|
|
||||||
Loading…
x
Reference in New Issue
Block a user