repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | import { LLMConfig } from "../types"; |
| #2 | |
| #3 | export interface Neo4jConfig { |
| #4 | url: string | null; |
| #5 | username: string | null; |
| #6 | password: string | null; |
| #7 | } |
| #8 | |
| #9 | export interface GraphStoreConfig { |
| #10 | provider: string; |
| #11 | config: Neo4jConfig; |
| #12 | llm?: LLMConfig; |
| #13 | customPrompt?: string; |
| #14 | } |
| #15 | |
| #16 | export function validateNeo4jConfig(config: Neo4jConfig): void { |
| #17 | const { url, username, password } = config; |
| #18 | if (!url || !username || !password) { |
| #19 | throw new Error("Please provide 'url', 'username' and 'password'."); |
| #20 | } |
| #21 | } |
| #22 | |
| #23 | export function validateGraphStoreConfig(config: GraphStoreConfig): void { |
| #24 | const { provider } = config; |
| #25 | if (provider === "neo4j") { |
| #26 | validateNeo4jConfig(config.config); |
| #27 | } else { |
| #28 | throw new Error(`Unsupported graph store provider: ${provider}`); |
| #29 | } |
| #30 | } |
| #31 |