knowledge_graph
Manage an onboard knowledge graph to organize, connect, and analyze webset results through entities, relations, and observations for structured data representation.
Instructions
Maintain an onboard knowledge graph of webset results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| entities | No | ||
| relations | No | ||
| observations | No | ||
| deletions | No | ||
| names | No | ||
| query | No |
Input Schema (JSON Schema)
{
"properties": {
"deletions": {
"items": {
"additionalProperties": false,
"properties": {
"entityName": {
"type": "string"
},
"observations": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"entityName",
"observations"
],
"type": "object"
},
"type": "array"
},
"entities": {
"items": {
"additionalProperties": false,
"properties": {
"entityType": {
"type": "string"
},
"name": {
"type": "string"
},
"observations": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"name",
"entityType"
],
"type": "object"
},
"type": "array"
},
"names": {
"items": {
"type": "string"
},
"type": "array"
},
"observations": {
"items": {
"additionalProperties": false,
"properties": {
"contents": {
"items": {
"type": "string"
},
"type": "array"
},
"entityName": {
"type": "string"
}
},
"required": [
"entityName",
"contents"
],
"type": "object"
},
"type": "array"
},
"operation": {
"enum": [
"create_entities",
"create_relations",
"add_observations",
"delete_entities",
"delete_observations",
"delete_relations",
"read_graph",
"search_nodes",
"open_nodes"
],
"type": "string"
},
"query": {
"type": "string"
},
"relations": {
"items": {
"additionalProperties": false,
"properties": {
"from": {
"type": "string"
},
"relationType": {
"type": "string"
},
"to": {
"type": "string"
}
},
"required": [
"from",
"to",
"relationType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"operation"
],
"type": "object"
}