{"modulePath":"github.com/GoCodeAlone/workflow-plugin-data-engineering","version":"v0.3.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package graph\n\nPackage graph implements the graph.neo4j module and associated steps.\n\n## Functions\n\n```go\nfunc GraphModuleSchemas() []sdk.ModuleSchemaData\n```\nGraphModuleSchemas returns schema metadata for all graph module types.\n\n```go\nfunc NewGraphExtractEntitiesLLMStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphExtractEntitiesLLMStep creates a new step.graph\\_extract\\_entities\\_llm instance.\n\n```go\nfunc NewGraphExtractEntitiesStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphExtractEntitiesStep creates a new step.graph\\_extract\\_entities instance.\n\n```go\nfunc NewGraphImportStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphImportStep creates a new step.graph\\_import instance.\n\n```go\nfunc NewGraphLinkStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphLinkStep creates a new step.graph\\_link instance.\n\n```go\nfunc NewGraphQueryStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphQueryStep creates a new step.graph\\_query instance.\n\n```go\nfunc NewGraphWriteStep(name string, _ map[string]any) (sdk.StepInstance, error)\n```\nNewGraphWriteStep creates a new step.graph\\_write instance.\n\n```go\nfunc NewNeo4jModule(name string, config map[string]any) (sdk.ModuleInstance, error)\n```\nNewNeo4jModule creates a new graph.neo4j module.\n\n```go\nfunc RegisterNeo4jModule(name string, m *Neo4jModule) error\n```\nRegisterNeo4jModule registers a Neo4jModule under the given name.\n\n```go\nfunc UnregisterNeo4jModule(name string)\n```\nUnregisterNeo4jModule removes a registered Neo4jModule.\n\n## Types\n\n```go\ntype Entity struct {\n\tType  string `json:\"type\"`\n\tValue string `json:\"value\"`\n\tStart int    `json:\"start\"`\n\tEnd   int    `json:\"end\"`\n}\n```\nEntity represents an extracted entity from text.\n\n```go\ntype GraphResult interface {\n\tNext(ctx context.Context) bool\n\tRecord() *neo4j.Record\n\tErr() error\n}\n```\nGraphResult is a narrow interface over neo4j.ResultWithContext for testability.\n\n```go\ntype GraphSession interface {\n\tRun(ctx context.Context, cypher string, params map[string]any) (GraphResult, error)\n\tClose(ctx context.Context) error\n}\n```\nGraphSession is a narrow interface over neo4j.SessionWithContext for testability.\n\n```go\ntype LLMClient interface {\n\tExtractEntities(ctx context.Context, text string, types []string) ([]LLMEntity, error)\n}\n```\nLLMClient is the interface for LLM-based entity extraction.\n\n```go\nfunc NewClaudeClient(apiKey, model string) LLMClient\n```\nNewClaudeClient creates an LLM client backed by the Anthropic Messages API.\n\n```go\nfunc NewOpenAIClient(apiKey, model string) LLMClient\n```\nNewOpenAIClient creates an LLM client backed by the OpenAI Chat Completions API.\n\n```go\ntype LLMEntity struct {\n\tType       string  `json:\"type\"`\n\tValue      string  `json:\"value\"`\n\tContext    string  `json:\"context\"`\n\tConfidence float64 `json:\"confidence\"`\n}\n```\nLLMEntity is an entity extracted by an LLM.\n\n```go\ntype Neo4jConfig struct {\n\tURI                          string        `json:\"uri\"                          yaml:\"uri\"`\n\tDatabase                     string        `json:\"database\"                     yaml:\"database\"`\n\tUsername                     string        `json:\"username\"                     yaml:\"username\"`\n\tPassword                     string        `json:\"password\"                     yaml:\"password\"`\n\tMaxConnectionPoolSize        int           `json:\"maxConnectionPoolSize\"        yaml:\"maxConnectionPoolSize\"`\n\tConnectionAcquisitionTimeout time.Duration `json:\"connectionAcquisitionTimeout\" yaml:\"connectionAcquisitionTimeout\"`\n}\n```\nNeo4jConfig holds configuration for the graph.neo4j module.\n\n```go\ntype Neo4jDriver interface {\n\tNewSession(ctx context.Context, config neo4j.SessionConfig) GraphSession\n\tVerifyConnectivity(ctx context.Context) error\n\tClose(ctx context.Context) error\n}\n```\nNeo4jDriver is a narrow interface over neo4j.DriverWithContext for testability.\n\n```go\ntype Neo4jModule struct {\n\t// contains filtered or unexported fields\n}\n```\nNeo4jModule implements the graph.neo4j module.\n\n```go\nfunc LookupNeo4jModule(name string) (*Neo4jModule, error)\n```\nLookupNeo4jModule returns the registered Neo4jModule by name.\n\n```go\nfunc NewNeo4jModuleForTest(name string, driver Neo4jDriver) *Neo4jModule\n```\nNewNeo4jModuleForTest creates a Neo4jModule with an injected driver for integration testing.\n\n```go\nfunc (m *Neo4jModule) ExecuteCypher(ctx context.Context, cypher string, params map[string]any) ([]map[string]any, error)\n```\nExecuteCypher runs a Cypher query and returns all rows as maps.\n\n```go\nfunc (m *Neo4jModule) Init() error\n```\nInit validates configuration.\n\n```go\nfunc (m *Neo4jModule) Start(ctx context.Context) error\n```\nStart creates the driver and verifies connectivity.\n\n```go\nfunc (m *Neo4jModule) Stop(ctx context.Context) error\n```\nStop closes the driver and unregisters the module.\n\n","path":"github.com/GoCodeAlone/workflow-plugin-data-engineering/internal/graph","name":"graph","synopsis":"Package graph implements the graph.neo4j module and associated steps.","isRedistributable":true}
