Repository navigation
Feat/studio universal llm schema copilot - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Summary of Changes
This PR introduces the Universal AI Schema Copilot (BYO-LLM) into AutoGraphQL Studio (
/studio). It allows developers to generate and refine production-grade GraphQL SDL schemas using natural language prompts, with native understanding of AutoGraphQL's custom AST directive system (@model,@tenantScoped,@ownerScoped,@history,@relation,@clamp,@validate, etc.).🌟 Key Highlights & Capabilities
gcloud auth application-default login) — supportsgemini-2.5-flash,gemini-2.0-flash, andgemini-1.5-prowith zero client-side token pasting.http://localhost:11434/v1withllama3.2,qwen3, etc.), vLLM, LocalAI, and LM Studio.gpt-4o,o3-mini), Google Gemini API (gemini-2.0-flash), Anthropic Claude (claude-3-5-sonnet), Groq (llama-3.3-70b), and OpenRouter.localStorage.x-ai-provider,x-ai-key,x-ai-model,x-ai-base-url) and never written to disk, database, or server logs.@model(database: postgres)or MongoDB default.@tenantScoped(field: "tenantId", claim: "tenantId"),@ownerScoped.@history.@relation(name: "...", direction: "OUT" | "IN" | "BOTH")and@relationalMeta.@clamp(min, max),@validate(regex),@defaultValue(value),@unique.@trim,@nameCase,@upperCase,@lowerCase,@slug.@readOnly,@writeOnly,@filterOff,@encrypted.enum Status { ... }alongside types..graphqlfiles inschemas/and dynamically injects active entities into the system prompt context so the AI can automatically link foreign keys and relationships to existing models (e.g.User,Category).model Coursetype Course).graphql.parse. If an AST syntax error is detected, an automated self-healing retry loop provides AST error feedback to correct the schema before presenting it to the user.⚡ Sync to Visual Builder: Dynamically parses generated or edited SDL into the Visual Model Builder cards, fields, constraints, and custom enums.Deploy Model ⚡: 1-click deployment compiles the schema straight intoschemas/<Model>.graphql.