RelationshipTypeDefinition
org.llm4s.knowledgegraph.extraction.RelationshipTypeDefinition
case class RelationshipTypeDefinition(name: String, description: String, sourceTypes: Seq[String], targetTypes: Seq[String])
Defines a relationship type expected in the extraction schema.
Value parameters
- description
-
Optional description used as a hint for the LLM
- name
-
The relationship type name (e.g., "WORKS_FOR", "LOCATED_IN")
- sourceTypes
-
Valid source entity types for this relationship (empty means any)
- targetTypes
-
Valid target entity types for this relationship (empty means any)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article