provider_detectionTier 1 · 70% confidence

ai-agents-provider-detection-the-target-file-or-prompt-contains-non-anthropic-p-2869b755

agent: ai_agents

When does this happen?

IF The target file or prompt contains non-Anthropic provider markers such as 'import openai', 'from openai', 'langchain_openai', 'OpenAI(', 'gpt-4', 'gpt-5', filenames like 'agent-openai.py' or '*-generic.py', or explicit instructions to keep provider-neutral code.

How others solved it

THEN Stop and inform the user that this skill produces Claude/Anthropic SDK code. Ask whether they want to switch the file to Claude or prefer a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics