Skip to content

Add AI executor plugin for scheduled AI-powered tasks#1909

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-ai-executor
Draft

Add AI executor plugin for scheduled AI-powered tasks#1909
Copilot wants to merge 3 commits intomainfrom
copilot/add-ai-executor

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 30, 2026

Proposed changes

New executor plugin enabling scheduled AI prompt execution against multiple model providers.

Supported providers:

  • openai - GPT-4o, GPT-4o-mini, etc.
  • anthropic - Claude 3 Opus, Sonnet, Haiku
  • local - Any OpenAI-compatible API (Ollama, LM Studio, vLLM)

Configuration options:

  • provider, apiKey, model, prompt (required based on provider)
  • baseUrl, maxTokens, temperature, timeout, debug (optional)

Example usage:

{
  "executor": "ai",
  "executor_config": {
    "provider": "openai",
    "apiKey": "sk-...",
    "model": "gpt-4o-mini",
    "prompt": "Generate a daily status report",
    "maxTokens": "500"
  }
}

Security:

  • API keys redacted from debug logs
  • local provider requires explicit baseUrl to prevent accidental data leaks to external APIs
  • Input validation for timeout, maxTokens, temperature ranges

Files added:

  • builtin/bins/dkron-executor-ai/ - Executor implementation
  • website/docs/usage/executors/ai.md - Documentation

21 unit tests covering validation, mock API responses, and error handling.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 30, 2026 08:53
Co-authored-by: vcastellm <47026+vcastellm@users.noreply.github.com>
Co-authored-by: vcastellm <47026+vcastellm@users.noreply.github.com>
Copilot AI changed the title [WIP] Add AI executor to run prompts against models Add AI executor plugin for scheduled AI-powered tasks Jan 30, 2026
Copilot AI requested a review from vcastellm January 30, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants