Skip to content

feat(demo): real LLM governance demo with multi-backend support#186

Merged
imran-siddique merged 2 commits intomainfrom
feat/live-governance-demo
Mar 11, 2026
Merged

feat(demo): real LLM governance demo with multi-backend support#186
imran-siddique merged 2 commits intomainfrom
feat/live-governance-demo

Conversation

@imran-siddique
Copy link
Copy Markdown
Member

Replaces mock demo with real LLM calls through governance middleware. Supports OpenAI, Azure OpenAI, Google Gemini with auto-detection and graceful error handling.

imran-siddique and others added 2 commits March 11, 2026 14:47
- Replace simulated agents with real LLM API calls (OpenAI, Azure OpenAI, Google Gemini)
- Auto-detect backend from environment variables (GOOGLE_API_KEY, OPENAI_API_KEY, AZURE_OPENAI_*)
- Add Scenario 4: pre-LLM content filtering (blocks dangerous prompts before API call)
- Normalize responses across backends for consistent tool-call handling
- Add --model and --verbose flags, remove --live flag
- Remove internal references (Show & Tell, VP review)
- Update demo README with new architecture and usage docs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add Google Gemini as LLM backend (auto-detect GOOGLE_API_KEY)
- Normalize tool calls across OpenAI/Azure/Gemini backends
- Gracefully catch API errors (quota, auth) with simulated fallback
- Governance middleware always runs real, even when LLM fails

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 11, 2026
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@imran-siddique imran-siddique merged commit cde6636 into main Mar 11, 2026
18 of 30 checks passed
@github-actions github-actions bot added the size/XL Extra large PR (500+ lines) label Mar 11, 2026
@imran-siddique imran-siddique deleted the feat/live-governance-demo branch March 12, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant