Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/en/docs/genai/v2/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ The following components are available in Agents Kit 2.
| Module | Description | Latest Released Version |
| --- | --- | --- |
| [Agent Commons](/agents/agents-kit-2/reference-guide/agent-commons/) | Build agentic functionality by defining, testing, and evaluating agents at runtime. Iterate on prompts and agent configurations without app redeployment through the integrated Agent Builder UI. | 4.4.0 |
| [Agent Editor](/agents/agents-kit-2/reference-guide/agent-editor/) | Define agents as version-controlled documents in Studio Pro at design time. Author prompts, configure tools and knowledge bases, test locally, and deploy agents as part of your app model. | 2.7.0 |
| [Agent Editor](/agents/agents-kit-2/reference-guide/agent-editor/) | Define agents as version-controlled documents in Studio Pro at design time. Author prompts, configure tools and knowledge bases, test locally, and deploy agents as part of your app model. | 2.8.0 |
| [Conversational UI](/agents/agents-kit-2/reference-guide/conversational-ui/) | Create chat interfaces for full-screen, sidebar, or modal GenAI conversations. Monitor token consumption and trace interactions with UI features built on GenAI Commons. | 7.4.0 |
| [GenAI Commons](/agents/agents-kit-2/reference-guide/commons/) | Integrate GenAI connectors with other modules using common capabilities provided by this base module. Required dependency for both core and connector modules. You can also implement your own connector based on this module. | 7.3.0 |
| [GenAI Commons](/agents/agents-kit-2/reference-guide/commons/) | Integrate GenAI connectors with other modules using common capabilities provided by this base module. Required dependency for both core and connector modules. You can also implement your own connector based on this module. | 7.4.0 |

### Connector Modules {#connectors}

Expand All @@ -48,10 +48,10 @@ All connectors depend on GenAI Commons and can be used with the other [core modu
| Module | Description | Latest Released Version |
| --- | --- | --- |
| [Amazon Bedrock Connector](/agents/agents-kit-2/reference-guide/external-connectors/bedrock/) | Connect to Amazon Bedrock. | 11.3.0 |
| [Google Gemini Connector](/agents/agents-kit-2/reference-guide/external-connectors/gemini/) | Connect to Google Gemini. | 2.2.0 |
| [Google Gemini Connector](/agents/agents-kit-2/reference-guide/external-connectors/gemini/) | Connect to Google Gemini. | 2.3.0 |
| [Mendix Cloud GenAI Connector](/agents/agents-kit-2/mx-cloud-genai/mxgenai-connector/) | Connect to Mendix Cloud and use Mendix Cloud GenAI resource packs directly within your Mendix application. | 7.4.0 |
| [Mistral Connector](/agents/agents-kit-2/reference-guide/external-connectors/mistral/) | Connect to Mistral AI. | 2.2.0 |
| [OpenAI Connector](/agents/agents-kit-2/reference-guide/external-connectors/openai/) | Connect to OpenAI and Microsoft Foundry. | 9.4.0 |
| [Mistral Connector](/agents/agents-kit-2/reference-guide/external-connectors/mistral/) | Connect to Mistral AI. | 2.3.0 |
| [OpenAI Connector](/agents/agents-kit-2/reference-guide/external-connectors/openai/) | Connect to OpenAI and Microsoft Foundry. | 9.5.0 |
| [PgVector Knowledge Base](/agents/agents-kit-2/reference-guide/external-connectors/pgvector/) | Manage and interact with a PostgreSQL PgVector knowledge base. | 7.1.0 |

### MCP Modules {#mcp-modules}
Expand Down
5 changes: 4 additions & 1 deletion content/en/docs/genai/v2/how-to/byo_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ If your provider's API is identical or very similar to OpenAI's, you may be able
* Small changes in the request/response payload (for example, extra or fewer fields, slightly different JSON structure)
* Modifying the base URL to align with the provider's endpoint structure
* Adding additional query parameters in the URL or payload
* Adapting the authentication mechanism (for example, switching from API Key to OAuth)

For token-based authentication, such as OAuth, you do not need to change the authentication mechanism. The OpenAI connector can get the HTTP headers that authorize a request from a microflow before every request. For more information, see [Authenticating with a Microflow](/agents/agents-kit-2/reference-guide/external-connectors/openai/#get-credentials-microflow).

This approach reuses a well-structured connector, minimizes development effort, and ensures compatibility with [ConversationalUI](/agents/agents-kit-2/reference-guide/conversational-ui/) and [GenAICommons](/agents/agents-kit-2/reference-guide/commons/).

Expand Down Expand Up @@ -122,6 +123,8 @@ To enable seamless model invocation, Mendix recommends creating an entity to sto

When storing sensitive authentication data, use encryption methods to keep the application secure. The Echo connector implementation in the GenAI Showcase App provides an example of this setup.

Some credentials, such as short-lived OAuth access tokens or tokens that are specific to the current user, change more often than an administrator can update a `Configuration` object. For these cases, consider letting app developers select a microflow that returns the credentials, and run it before every request to the provider. The OpenAI connector uses this pattern: its `GetCredentialsMicroflow` returns a list of `System.HttpHeader` objects, which the connector adds to each request. To store the name of such a microflow, you can use the `GetCredentialsMicroflow` attribute of the `GenAICommons.ConsumedModelResource` entity. For more information, see [Authenticating with a Microflow](/agents/agents-kit-2/reference-guide/external-connectors/openai/#get-credentials-microflow) in the OpenAI connector documentation.

#### Microflow

Set the `Microflow` attribute in the generic `DeployedModel` entity when creating or saving `DeployedModel` objects. This attribute determines which microflow executes when invoking `ChatCompletions_WithHistory` and ensures that the correct process runs based on the specified microflow. This design keeps the action provider-agnostic and allows different models to integrate seamlessly as long as they follow the same `request-in` and `response-out` interface.
Expand Down
15 changes: 13 additions & 2 deletions content/en/docs/genai/v2/reference-guide/agent-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,17 @@ Model configuration is document-based and can be managed directly in Studio Pro:

#### For Azure AI Foundry {#define-model-azure}

* Configure the **Project endpoint** and **API key**, each with a String constant. Obtain the **Project endpoint** and **API key** from the [Azure AI Foundry Portal](https://ai.azure.com/home). For more information, refer to [OpenAI Connector](/agents/agents-kit-2/reference-guide/external-connectors/openai/#azure-resource-name).
* Click **List Deployments** to validate the connectivity. A table shows all the available model deployments in the Azure AI resource. Note that only deployments that support chat completions are currently usable by Agents in a Mendix app.
Select the **Authentication** type and configure the fields for that type:

* **API key** – Authenticate with an Azure API key.
* Configure the **Project endpoint** and **API key**, each with a String constant. Obtain the **Project endpoint** and **API key** from the [Azure AI Foundry Portal](https://ai.azure.com/home). For more information, refer to [OpenAI Connector](/agents/agents-kit-2/reference-guide/external-connectors/openai/#azure-resource-name).
* Click **List deployments** to validate the connectivity. A table shows all the available model deployments in the Azure AI resource. Note that only deployments that support chat completions are currently usable by Agents in a Mendix app.
* **Microflow** – Get the credentials from a microflow at runtime. Use this type when your organization requires other credentials than an API key, such as Microsoft Entra ID tokens, or when requests go through an API gateway, such as Azure API Management.
* Configure the **Endpoint** with a String constant. The endpoint is the base URL in front of `/openai`, for example, `https://your-resource-name.openai.azure.com` or the URL of your API gateway. Do not use a project endpoint.
* Select a **Credentials microflow** that returns the HTTP headers to authenticate requests. The microflow must return a list of `System.HttpHeader` objects and have either no input parameters or a single `OpenAIConnector.Configuration` parameter. For more information, see [Authenticating with a Microflow](/agents/agents-kit-2/reference-guide/external-connectors/openai/#get-credentials-microflow).
* In the **Deployments** section, click **Add deployment** to add each deployment name that agents and evaluators can select. Enter each deployment name exactly as it appears in Azure. You can copy and paste the names directly from Azure. With this authentication type, deployments cannot be listed automatically.

The playground in Studio Pro calls the credentials microflow without a signed-in user. If the microflow relies on credentials of the signed-in user, such as the user's Microsoft Entra token, testing the agent in the playground fails. To test in the playground, make the microflow return other credentials when no user is signed in, for example, an app token. Alternatively, test the agent in the running app as a signed-in user.

{{% alert color="info" %}}
The value you use for a constant in Studio Pro can be different from the value used in cloud environments. Constant values can be overridden per environment during deployment. For example, you can locally connect to a text generation resource using a different key than the one used for production.
Expand Down Expand Up @@ -327,6 +336,8 @@ To add tools, click **New** in the **Tools** section and configure the following

This error is typically due to incorrect model configuration or an exception originating from the API call of the large language model. Check the **Console** pane in Studio Pro for detailed logs. Additionally, verify that the `ASU_AgentEditor` microflow is added to your after-startup logic as described in the [First-Time Setup](#setup) section, and that the app startup has completed fully.

If the agent uses an Azure AI Foundry model with the **Microflow** authentication type, check that the credentials microflow returns valid headers when no user is signed in. For more information, see the [For Azure AI Foundry](#define-model-azure) section.

### Testing the Agent From Studio Pro Is Disabled

Executing a test requires a running local app and synchronized Agent documents to the runtime. Make sure the app has been deployed locally after the last change in any agent-related document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ The following inputs are required for the Gemini configuration:
| ----------- | ------------------------------------------------------------ |
| Display name | This is the name identifier of a configuration (for example, *MyConfiguration*). |
| Endpoint | This is the API endpoint (for example, `https://generativelanguage.googleapis.com/v1beta/openai/`) |
| Token | This is the access token to authorize your API call. <br />To get an API key, follow the steps mentioned in the [Gemini API quickstart](https://ai.google.dev/gemini-api/docs/quickstart). |
| Authentication type | This is the way your API calls are authorized. Select **API Key** to use a stored API key, or **Microflow** to get the credentials from a microflow before each request. |
| Token | This is the access token to authorize your API call. It is only used for the **API Key** authentication type. <br />To get an API key, follow the steps mentioned in the [Gemini API quickstart](https://ai.google.dev/gemini-api/docs/quickstart). |
| Get credentials microflow | This is the microflow that returns the HTTP headers to authorize your API call. It is only used for the **Microflow** authentication type. The microflow must return a list of `System.HttpHeader` objects and can have either no input parameters or a single input parameter of type `GoogleGeminiConnector.GeminiConfiguration` or `OpenAIConnector.Configuration`. For more information, see [Authenticating with a Microflow](/agents/agents-kit-2/reference-guide/external-connectors/openai/#get-credentials-microflow) in the OpenAI connector documentation. |

#### Configuring the Gemini Deployed Models

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ The following inputs are required for the Mistral configuration:
| ----------- | ------------------------------------------------------------ |
| Display name | The name identifier of a configuration (for example, *MyConfiguration*). |
| Endpoint | The API endpoint (for example, `https://api.mistral.ai/agents-kit-1/`). |
| Token | The access token to authorize your API call. <br />To get an API key, see the [Quickstart](https://docs.mistral.ai/getting-started/quickstart). |
| Authentication type | The way your API calls are authorized. Select **API Key** to use a stored API key, or **Microflow** to get the credentials from a microflow before each request. |
| Token | Only for the **API Key** authentication type. The access token to authorize your API call. <br />To get an API key, see the [Quickstart](https://docs.mistral.ai/getting-started/quickstart). |
| Get credentials microflow | Only for the **Microflow** authentication type. The microflow that returns the HTTP headers to authorize your API call. The microflow must return a list of `System.HttpHeader` objects and can have either no input parameters or a single input parameter of type `MistralConnector.MistralConfiguration` or `OpenAIConnector.Configuration`. For more information, see [Authenticating with a Microflow](/agents/agents-kit-2/reference-guide/external-connectors/openai/#get-credentials-microflow) in the OpenAI connector documentation. |

#### Configuring the Mistral Deployed Models

Expand Down
Loading