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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product