Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

AG-2 in Practice #3 – Creating a Multi-Agent Workflow (Researcher + Writer)

Welcome back to the series! So far, we’ve learned what AG-2 is and created a basic single-agent app. Now we’re moving to the fun part: collaboration between agents. In this post, we’ll build a simple multi-agent pipeline: A Researcher a…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Welcome back to the series!



So far, we’ve learned what AG-2 is and created a basic single-agent app. Now we’re moving to the fun part: collaboration between agents.



In this post, we’ll build a simple multi-agent pipeline:




  • A Researcher agent that finds information

  • A Writer agent that turns that info into a summary



This will show you how to chain agents, pass messages between them, and use AG-2's orchestration features.









What We’re Building



We’ll simulate this conversation:




You: “Write a summary about climate change.”

Researcher: “Climate change refers to long-term shifts…”

Writer: “Sure! Here's a concise summary of that…”










Step 1: Install or Update AG-2 (if needed)



Make sure you're using the latest AG-2:




pip install --upgrade ag2












Step 2: Define Two Agents



Create a file called multi_agent_pipeline.py:




from ag2 import Agent, Orchestrator, Conversation
import os

os.environ["OPENAI_API_KEY"] = "your-api-key-here"

# Researcher agent
researcher = Agent(
name="researcher",
llm="openai/gpt-4",
system_message="You are a helpful researcher. Given a topic, find relevant and accurate information.",
)

# Writer agent
writer = Agent(
name="writer",
llm="openai/gpt-4",
system_message="You are a professional writer. Based on research findings, write clear summaries.",
)












Step 3: Orchestrate the Conversation



Now we’ll define the flow between them.




# Define orchestrator logic
orchestrator = Orchestrator(
agents=[researcher, writer],
rules=[
{"from": "user", "to": "researcher"},
{"from": "researcher", "to": "writer"},
{"from": "writer", "to": "user"},
]
)

# Start the conversation
conv = Conversation(orchestrator=orchestrator)
conv.send("Please write a short summary about climate change.")






This defines a simple linear message flow from the user to Researcher → Writer → back to user.









Step 4: Run It






python multi_agent_pipeline.py






You should see something like:




User: Please write a short summary about climate change.

Researcher: Climate change refers to...

Writer: Sure! Here's a summary: ...




Success! You just built a multi-agent reasoning chain.









What’s Next?



In the next post, we’ll:




  • Explore Patterns in AG-2 (like debate, delegation, human review)

  • Add tool use in multi-agent chains

  • Start designing more dynamic workflows






Keep coding

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - AG-2 in Practice #3 – Creating a Multi-Agent Workflow (Researcher + Writer)
id: 23c0f220-41cf-4131-8c8e-fb75ed1bbf58
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "AG-2 in Practice #3 – Creating" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("AG-2 in Practice 3  Creating a Multi-Age")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*AG-2 in Practice 3  Creating a Multi-Age*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "AG-2 in Practice 3  Creating a Multi-Age"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich AG-2 in Practice #3 – Creating a Multi-A.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten AG-2 in Practice #3 – Creating a Multi-Agent Workflow (Researcher + Writer)

Thematisch verwandte Begriffe: Practice, Creating, MultiAgent, Workflow · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97898 | Insecure Direct Object Reference / missing object-level authorization in…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag