Autonomous Agent Knowledge Graph Design
knowledge skill
Designs a knowledge graph schema for an autonomous agent by defining node types, relationships, and constraints from provided requirements. Produces a machine-readable graph definition file for downstream graph database ingestion.
Worked examples
- {"input": {"requirements_text": "Build a knowledge graph for a logistics agent tracking shipments, packages, and delivery routes. Shipments contain packages, routes link warehouses, and packages have statuses.", "domain_constraints": {"max_package_weight_kg": 30}, "existing_schema": {}}, "output": {"graph_schema": {"nodes": [{"name": "Shipment", "properties": ["id", "status"]}, {"name": "Package", "properties": ["id", "weight_kg", "status"]}, {"name": "Route", "properties": ["id", "distance_km"]}, {"name": "Warehouse", "properties": ["id", "location"]}], "edges": [{"source": "Shipment", "target": "Package", "type": "contains"}, {"source": "Route", "target": "Warehouse", "type": "links"}, {"source": "Package", "target": "Route", "type": "assigned_to"}]}, "constraints": {"Package": {"weight_kg": {"max": 30}}}, "validation_rules": ["Package.weight_kg <= 30"]}}
- {"input": {"requirements_text": "Medical agent needs to track patients, doctors, and treatments. Patients have conditions, doctors prescribe treatments, and treatments may have side effects.", "domain_constraints": {"max_prescriptions_per_patient": 5}, "existing_schema": {"Patient": {"properties": ["id"]}}}, "output": {"graph_schema": {"nodes": [{"name": "Patient", "properties": ["id", "age", "gender"]}, {"name": "Doctor", "properties": ["id", "specialty"]}, {"name": "Treatment", "properties": ["id", "name", "dosage"]}, {"name": "Condition", "properties": ["id", "name"]}, {"name": "SideEffect", "properties": ["id", "description"]}], "edges": [{"source": "Patient", "target": "Condition", "type": "has"}, {"source": "Doctor", "target": "Treatment", "type": "prescribes"}, {"source": "Treatment", "target": "SideEffect", "type": "may_cause"}]}, "constraints": {"Patient": {"prescriptions": {"max": 5}}}, "validation_rules": ["Patient.prescriptions <= 5"]}}
Input
- requirements_text: str
- domain_constraints: dict
- existing_schema: dict
Output
- graph_schema: dict
- constraints: dict
- validation_rules: list
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0