add_entity
Adds a named entity to the knowledge graph with optional type and metadata, returning the created entity's ID.
Instructions
Add an entity to the knowledge graph.
Args: name: Entity name (e.g., "MyClass", "Authentication", "Paris"). type: Entity type (class, function, concept, person, place, etc.). metadata: Optional metadata dict.
Returns: Created entity details including entity_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | No | concept | |
| metadata | No |