Expand description
GitHub Copilot provider GitHub Copilot AI provider adapter
Implements the AIProvider port using GitHub’s AI model inference gateway.
Authenticates with a GitHub personal access token (PAT) or GitHub App token.
Routes requests to GitHub’s hosted AI models endpoint.
§Example
use stygian_graph::adapters::ai::copilot::{CopilotProvider, CopilotConfig};
use stygian_graph::ports::AIProvider;
use serde_json::json;
let provider = CopilotProvider::new("ghp_...".to_string());
let schema = json!({"type": "object", "properties": {"title": {"type": "string"}}});
// let result = provider.extract("<html>Hello</html>".to_string(), schema).await.unwrap();Structs§
- Copilot
Config - Configuration for the GitHub Copilot provider
- Copilot
Provider - GitHub Copilot AI provider adapter