langchain-azure-ai: 0.1.7#
Azure AI Foundry integration with LangChain/LangGraph.
agents#
Classes
Factory to create and manage declarative chat agents in Azure AI Foundry. | |
A LangGraph node that represents a declarative chat agent in Azure AI Foundry. | |
A tool that interacts with Azure AI Foundry Agent Service. |
Functions
Determine the next node based on whether the AI message contains tool calls. |
chat_message_histories#
Classes
| Chat message history backed by Azure CosmosDB. |
chat_models#
Classes
Azure AI Chat Completions Model. |
Functions
Convert an inference message dict to generic message. | |
Converts a sequence of BaseMessage to ChatRequestMessage. |
embeddings#
Classes
Azure AI model inference for embeddings. |
query_constructors#
Classes
| A visitor that converts a StructuredQuery into an CosmosDB NO SQL query. |
retrievers#
Classes
Azure AI Search service retriever. | |
Azure Cognitive Search service retriever. |
tools#
Classes
| Tool that queries the Azure AI Document Intelligence API. |
The input document for the Azure AI Document Intelligence tool. | |
Tool that queries the Azure AI Services Image Analysis API. | |
The input document for the Azure AI Image Analysis tool. | |
| Tool that queries the Azure AI Text Analytics for Health API. |
A tool that interacts with Azure Logic Apps. |
utils#
Classes
| Custom JSON encoder for objects in LangChain. |
Functions
| Get a value from a dictionary or an environment variable. |
| Get a value from a dictionary or an environment variable. |
Row-wise cosine similarity between two equal-width matrices. | |
| Row-wise cosine similarity with optional top-k and score threshold filtering. |
| Detect if the file is local or remote. |
| Download audio from url to local. |
| Retrieves the endpoint and credentials required a given a project endpoint. |
vectorstores#
Classes
| Azure Cosmos DB for MongoDB vCore vector store. |
| Cosmos DB Similarity Type as enumerator. |
| Cosmos DB Vector Search Compression as enumerator. |
| Cosmos DB Vector Search Type as enumerator. |
| Azure Cosmos DB for NoSQL vector store. |
| Retriever that uses Azure CosmosDB No Sql Search. |
| Azure Cognitive Search vector store. |
Retriever that uses Azure Cognitive Search. | |
| Cache that uses Cosmos DB Mongo vCore vector-store backend. |
Cache that uses Cosmos DB NoSQL backend. | |
Enumerator of the Distance strategies for calculating distances between vectors. |
Functions
Filter out metadata types that are not supported for a vector store. | |
Calculate maximal marginal relevance. |