Back to Prompt Library
planning

Initial Agent System Design for Cyber Threat Response

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Cyberthreat Orchestrator Agent

Format
Code-aware
Lines
15
Sections
4
Linked challenge
Cyberthreat Orchestrator Agent

Prompt source

Original prompt text with formatting preserved for inspection.

15 lines
4 sections
No variables
1 code block
You are tasked with designing the core LangGraph workflow for an autonomous cyber threat detection and remediation system. Define the initial nodes for 'Threat Detection', 'Threat Analysis', 'Remediation Planning', and 'Action Orchestration'. Describe how LangGraph's state and conditional edges will manage the flow between these stages. Specify the role of Gemini 2.5 Pro in 'Threat Analysis' and provide a pseudocode snippet for creating a basic LangGraph state and initial graph definition.

```python
from langchain_core.messages import BaseMessage
from typing import TypedDict, List

class AgentState(TypedDict):
    input: str
    threat_detected: bool
    threat_type: str
    severity: str
    remediation_plan: List[str]
    messages: List[BaseMessage]

def build_graph():
    # ... your LangGraph definition here ...
    pass
```

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the role framing, objective, and reporting structure so comparison runs stay coherent.

Tune next

Swap in your own domain constraints, anomaly thresholds, and examples before you branch variants.

Verify after

Check whether the prompt asks for the right evidence, confidence signal, and escalation path.