@@ -8,6 +8,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/types';
88import { t , tct } from 'sentry/locale' ;
99import { SdkUpdateAlert } from 'sentry/views/insights/pages/agents/components/sdkUpdateAlert' ;
1010import { ManualInstrumentationNote } from 'sentry/views/insights/pages/agents/llmOnboardingInstructions' ;
11+ import { AgentIntegration } from 'sentry/views/insights/pages/agents/utils/agentIntegrations' ;
1112
1213import { getPythonInstallCodeBlock } from './utils' ;
1314
@@ -293,29 +294,30 @@ sentry_sdk.init(
293294 ] ,
294295 } ;
295296
296- const selected = ( params . platformOptions as any ) ?. integration ?? 'openai' ;
297- if ( selected === 'openai' ) {
297+ const selected =
298+ ( params . platformOptions as any ) ?. integration ?? AgentIntegration . OPENAI ;
299+ if ( selected === AgentIntegration . OPENAI ) {
298300 return [ openaiSdkStep ] ;
299301 }
300- if ( selected === 'anthropic' ) {
302+ if ( selected === AgentIntegration . ANTHROPIC ) {
301303 return [ anthropicSdkStep ] ;
302304 }
303- if ( selected === 'langchain' ) {
305+ if ( selected === AgentIntegration . LANGCHAIN ) {
304306 return [ langchainStep ] ;
305307 }
306- if ( selected === 'langgraph' ) {
308+ if ( selected === AgentIntegration . LANGGRAPH ) {
307309 return [ langgraphStep ] ;
308310 }
309- if ( selected === 'litellm' ) {
311+ if ( selected === AgentIntegration . LITTELLM ) {
310312 return [ liteLLMStep ] ;
311313 }
312- if ( selected === 'google_genai' ) {
314+ if ( selected === AgentIntegration . GOOGLE_GENAI ) {
313315 return [ googleGenAIStep ] ;
314316 }
315- if ( selected === 'pydantic_ai' ) {
317+ if ( selected === AgentIntegration . PYDANTIC_AI ) {
316318 return [ pydanticAiStep ] ;
317319 }
318- if ( selected === 'manual' ) {
320+ if ( selected === AgentIntegration . MANUAL ) {
319321 return [ manualStep ] ;
320322 }
321323 return [ openaiAgentsStep ] ;
@@ -565,29 +567,30 @@ print(result.output)
565567 ] ,
566568 } ;
567569
568- const selected = ( params . platformOptions as any ) ?. integration ?? 'openai' ;
569- if ( selected === 'openai' ) {
570+ const selected =
571+ ( params . platformOptions as any ) ?. integration ?? AgentIntegration . OPENAI ;
572+ if ( selected === AgentIntegration . OPENAI ) {
570573 return [ openaiSdkVerifyStep ] ;
571574 }
572- if ( selected === 'anthropic' ) {
575+ if ( selected === AgentIntegration . ANTHROPIC ) {
573576 return [ anthropicSdkVerifyStep ] ;
574577 }
575- if ( selected === 'langchain' ) {
578+ if ( selected === AgentIntegration . LANGCHAIN ) {
576579 return [ langchainVerifyStep ] ;
577580 }
578- if ( selected === 'langgraph' ) {
581+ if ( selected === AgentIntegration . LANGGRAPH ) {
579582 return [ langgraphVerifyStep ] ;
580583 }
581- if ( selected === 'litellm' ) {
584+ if ( selected === AgentIntegration . LITTELLM ) {
582585 return [ liteLLMVerifyStep ] ;
583586 }
584- if ( selected === 'google_genai' ) {
587+ if ( selected === AgentIntegration . GOOGLE_GENAI ) {
585588 return [ googleGenAIVerifyStep ] ;
586589 }
587- if ( selected === 'pydantic_ai' ) {
590+ if ( selected === AgentIntegration . PYDANTIC_AI ) {
588591 return [ pydanticAiVerifyStep ] ;
589592 }
590- if ( selected === 'manual' ) {
593+ if ( selected === AgentIntegration . MANUAL ) {
591594 return [ manualVerifyStep ] ;
592595 }
593596 return [ openaiAgentsVerifyStep ] ;
0 commit comments