# langchain_azure_ai

> Python package

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai)

## Classes

- [`FDPResourceService`](https://reference.langchain.com/python/langchain-azure-ai/_resources/FDPResourceService)
- [`AIServicesService`](https://reference.langchain.com/python/langchain-azure-ai/_resources/AIServicesService)
- [`ModelInferenceService`](https://reference.langchain.com/python/langchain-azure-ai/_resources/ModelInferenceService)
- [`AzureAIEmbeddingsModel`](https://reference.langchain.com/python/langchain-azure-ai/embeddings/inference/AzureAIEmbeddingsModel)
- [`AzureAIOpenAIApiEmbeddingsModel`](https://reference.langchain.com/python/langchain-azure-ai/embeddings/openai/AzureAIOpenAIApiEmbeddingsModel)
- [`AzureAIServicesToolkit`](https://reference.langchain.com/python/langchain-azure-ai/tools/AzureAIServicesToolkit)
- [`AzureAIProjectToolbox`](https://reference.langchain.com/python/langchain-azure-ai/tools/_toolbox/AzureAIProjectToolbox)
- [`ImageGenerationInput`](https://reference.langchain.com/python/langchain-azure-ai/tools/_openai_tools/ImageGenerationInput)
- [`AzureOpenAIModelImageGenTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/_openai_tools/AzureOpenAIModelImageGenTool)
- [`SpeechToTextInput`](https://reference.langchain.com/python/langchain-azure-ai/tools/_openai_tools/SpeechToTextInput)
- [`AzureOpenAITranscriptionsTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/_openai_tools/AzureOpenAITranscriptionsTool)
- [`MemoryRetrieverInput`](https://reference.langchain.com/python/langchain-azure-ai/tools/_azure_ai_memory/MemoryRetrieverInput)
- [`AzureAIMemoryRetrieverTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/_azure_ai_memory/AzureAIMemoryRetrieverTool)
- [`AzureLogicAppTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/logic_apps/AzureLogicAppTool)
- [`BuiltinTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/BuiltinTool)
- [`CodeInterpreterTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/CodeInterpreterTool)
- [`WebSearchTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/WebSearchTool)
- [`FileSearchTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/FileSearchTool)
- [`ImageGenerationTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/ImageGenerationTool)
- [`McpTool`](https://reference.langchain.com/python/langchain-azure-ai/tools/builtin/_tools/McpTool)
- [`AzureAIContentUnderstandingLoader`](https://reference.langchain.com/python/langchain-azure-ai/document_loaders/content_understanding/AzureAIContentUnderstandingLoader)
- [`AzureAISearchRetriever`](https://reference.langchain.com/python/langchain-azure-ai/retrievers/azure_ai_search/AzureAISearchRetriever)
- [`AzureCognitiveSearchRetriever`](https://reference.langchain.com/python/langchain-azure-ai/retrievers/azure_ai_search/AzureCognitiveSearchRetriever)
- [`AzureAIMemoryRetriever`](https://reference.langchain.com/python/langchain-azure-ai/retrievers/azure_ai_memory_retriever/AzureAIMemoryRetriever)
- [`DistanceStrategy`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/utils/DistanceStrategy)
- [`AzureSearch`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/azuresearch/AzureSearch)
- [`AzureSearchVectorStoreRetriever`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/azuresearch/AzureSearchVectorStoreRetriever)
- [`AzureCosmosDBMongoVCoreSemanticCache`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/cache/AzureCosmosDBMongoVCoreSemanticCache)
- [`BaseInstrumentor`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/BaseInstrumentor)
- [`AzureAIOpenTelemetryInstrumentor`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/AzureAIOpenTelemetryInstrumentor)
- [`Attrs`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/inference_tracing/Attrs)
- [`AzureAIOpenTelemetryTracer`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/inference_tracing/AzureAIOpenTelemetryTracer)
- [`AgentServiceFactory`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v1/agent_service/AgentServiceFactory)
- [`AgentServiceBaseTool`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v1/prebuilt/tools/AgentServiceBaseTool)
- [`PromptBasedAgentNode`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v1/prebuilt/declarative/PromptBasedAgentNode)
- [`AzureAIMemoryMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/_azure_ai_memory/AzureAIMemoryMiddleware)
- [`ImageModerationInput`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_image/ImageModerationInput)
- [`AzureContentModerationForImagesMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_image/AzureContentModerationForImagesMiddleware)
- [`PromptInjectionEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_prompt_shield/PromptInjectionEvaluation)
- [`PromptShieldInput`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_prompt_shield/PromptShieldInput)
- [`AzurePromptShieldMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_prompt_shield/AzurePromptShieldMiddleware)
- [`ContentSafetyViolationError`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyViolationError)
- [`ContentSafetyEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyEvaluation)
- [`ContentModerationEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentModerationEvaluation)
- [`ContentSafetyAnnotationPayload`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyAnnotationPayload)
- [`BlocklistEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_text/BlocklistEvaluation)
- [`TextModerationInput`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_text/TextModerationInput)
- [`AzureContentModerationMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_text/AzureContentModerationMiddleware)
- [`GroundednessEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_groundedness/GroundednessEvaluation)
- [`GroundednessInput`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_groundedness/GroundednessInput)
- [`AzureGroundednessMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_groundedness/AzureGroundednessMiddleware)
- [`ProtectedMaterialEvaluation`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_protected_material/ProtectedMaterialEvaluation)
- [`AzureProtectedMaterialMiddleware`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_protected_material/AzureProtectedMaterialMiddleware)
- [`HostingFeature`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/HostingFeature)
- [`InvocationStateStore`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invocation_store/InvocationStateStore)
- [`FileInvocationStateStore`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invocation_store/FileInvocationStateStore)
- [`FoundryInvocationStateStore`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invocation_store/FoundryInvocationStateStore)
- [`ResponsesHostServer`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses_host/ResponsesHostServer)
- [`FoundryCheckpointSaver`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_foundry_checkpoint_saver/FoundryCheckpointSaver)
- [`InvocationsHostServer`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invoke_host/InvocationsHostServer)
- [`HostingRunnableConfig`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses/hosting_runnable_config/HostingRunnableConfig)
- [`CheckpointRef`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses/checkpoint_ref/CheckpointRef)
- [`TaskStorageManager`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses/task_storage_manager/TaskStorageManager)
- [`ConversationChainStoreProtocol`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses/conversation_chain_store/ConversationChainStoreProtocol)
- [`FoundryConversationChainStore`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_responses/conversation_chain_store/FoundryConversationChainStore)
- [`UsageAccumulator`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_stream/UsageAccumulator)
- [`StreamConverter`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_stream/StreamConverter)
- [`AgentServiceAgentState`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/base/AgentServiceAgentState)
- [`ResponsesAgentNode`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/base/ResponsesAgentNode)
- [`AgentServiceBaseTool`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/tools/AgentServiceBaseTool)
- [`ImageGenTool`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/tools/ImageGenTool)
- [`CodeInterpreterTool`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/tools/CodeInterpreterTool)
- [`MCPTool`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/tools/MCPTool)
- [`AgentServiceFactory`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/factory/AgentServiceFactory)
- [`AzureAIMemoryChatMessageHistory`](https://reference.langchain.com/python/langchain-azure-ai/chat_history/azure_ai_memory/AzureAIMemoryChatMessageHistory)
- [`FoundryEvalResult`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/foundry/FoundryEvalResult)
- [`FoundryEvaluator`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/foundry/FoundryEvaluator)
- [`FoundryEvaluatorSuite`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/foundry/FoundryEvaluatorSuite)
- [`AzureAIAnthropicChatModel`](https://reference.langchain.com/python/langchain-azure-ai/chat_models/anthropic/AzureAIAnthropicChatModel)
- [`AzureAIChatCompletionsModel`](https://reference.langchain.com/python/langchain-azure-ai/chat_models/inference/AzureAIChatCompletionsModel)
- [`AzureAIOpenAIApiChatModel`](https://reference.langchain.com/python/langchain-azure-ai/chat_models/openai/AzureAIOpenAIApiChatModel)

## Functions

- [`add_user_agent_prefix()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/add_user_agent_prefix)
- [`set_user_agent_prefix()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/set_user_agent_prefix)
- [`is_hosted_environment()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/is_hosted_environment)
- [`get_user_agent()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/get_user_agent)
- [`with_user_agent()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/with_user_agent)
- [`reset_for_testing()`](https://reference.langchain.com/python/langchain-azure-ai/_user_agent/reset_for_testing)
- [`maximal_marginal_relevance()`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/utils/maximal_marginal_relevance)
- [`filter_complex_metadata()`](https://reference.langchain.com/python/langchain-azure-ai/vectorstores/utils/filter_complex_metadata)
- [`unwrap()`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/unwrap)
- [`enable_auto_tracing()`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/enable_auto_tracing)
- [`disable_auto_tracing()`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/disable_auto_tracing)
- [`is_auto_tracing_enabled()`](https://reference.langchain.com/python/langchain-azure-ai/callbacks/tracers/auto_instrument/is_auto_tracing_enabled)
- [`external_tools_condition()`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v1/agent_service/external_tools_condition)
- [`get_content_safety_annotations()`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/get_content_safety_annotations)
- [`print_content_safety_annotations()`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/print_content_safety_annotations)
- [`get_hosting_user_agent()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/get_hosting_user_agent)
- [`get_hosting_features()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/get_hosting_features)
- [`create_invocation_state_store()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invocation_store/create_invocation_state_store)
- [`main()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/run/main)
- [`state_to_events()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_final/state_to_events)
- [`detect_pending_interrupts()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/detect_pending_interrupts)
- [`track_pending_interrupts()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/track_pending_interrupts)
- [`interrupt_arguments_json()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/interrupt_arguments_json)
- [`interrupt_output_items()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/interrupt_output_items)
- [`hitl_call_ids()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/hitl_call_ids)
- [`parse_resume_command()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/parse_resume_command)
- [`detect_approval_rejection()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/detect_approval_rejection)
- [`emit_interrupts()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/emit_interrupts)
- [`stream_graph_to_events()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_stream/stream_graph_to_events)
- [`is_messages_state_schema()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_utils/is_messages_state_schema)
- [`extract_text()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_utils/extract_text)
- [`extract_reasoning_summary_fragments()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_utils/extract_reasoning_summary_fragments)
- [`last_ai_message_text()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_utils/last_ai_message_text)
- [`items_to_messages()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_request/items_to_messages)
- [`build_messages_input()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_request/build_messages_input)
- [`build_messages_input_from_text()`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_request/build_messages_input_from_text)
- [`external_tools_condition()`](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/prebuilt/factory/external_tools_condition)
- [`create_eval_optimize_subgraph()`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/helpers/create_eval_optimize_subgraph)
- [`create_analyst_subgraph()`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/helpers/create_analyst_subgraph)
- [`messages_to_foundry_format()`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/converter/messages_to_foundry_format)
- [`tool_schemas_to_foundry_format()`](https://reference.langchain.com/python/langchain-azure-ai/evaluation/converter/tool_schemas_to_foundry_format)
- [`to_inference_message()`](https://reference.langchain.com/python/langchain-azure-ai/chat_models/inference/to_inference_message)
- [`from_inference_message()`](https://reference.langchain.com/python/langchain-azure-ai/chat_models/inference/from_inference_message)

## Types

- [`InvocationInput`](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_invoke_host/InvocationInput)
