Skip to content

Add AI types and available() method to AI tool#103

Merged
KrisBraun merged 3 commits intomainfrom
feature/ai-preferences
Mar 8, 2026
Merged

Add AI types and available() method to AI tool#103
KrisBraun merged 3 commits intomainfrom
feature/ai-preferences

Conversation

@KrisBraun
Copy link
Copy Markdown
Contributor

@KrisBraun KrisBraun commented Mar 8, 2026

Summary

  • Adds AIOptions type ({ required?: boolean }) for configuring whether AI is required or optional in a twist
  • Adds AICapabilities type ({ prompt: boolean, embed: boolean }) describing runtime AI availability
  • Adds available(): AICapabilities abstract method to the AI class so twists can check what's available before calling AI

🤖 Generated with Claude Code

KrisBraun and others added 3 commits March 8, 2026 12:51
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KrisBraun KrisBraun merged commit 59f839c into main Mar 8, 2026
1 check passed
@KrisBraun KrisBraun deleted the feature/ai-preferences branch March 8, 2026 17:00
@github-actions github-actions bot mentioned this pull request Mar 8, 2026
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.

1 participant