Skip to content

SAS-1810: tech ref agent editor#10980

Draft
tswarmerdam-mx wants to merge 23 commits intomendix:developmentfrom
tswarmerdam-mx:agent-editor
Draft

SAS-1810: tech ref agent editor#10980
tswarmerdam-mx wants to merge 23 commits intomendix:developmentfrom
tswarmerdam-mx:agent-editor

Conversation

@tswarmerdam-mx
Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +222 to +225
* The app model has no consistency errors in Studio Pro (as shown in the **Errors** pane).
* The app is running locally.
* The text generation resource configured in the Model document is reachable.
* Values are provided for all placeholders so a concrete test case can be constructed.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add something about the ASU?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, done

Comment on lines +286 to +287
### MCP tools cannot be listed or called
If **List tools** fails, verify the consumed MCP service configuration: endpoint constant value, protocol version, and credentials microflow (when authentication is required). If possible, also confirm that the target endpoint is reachable from the running app runtime, for example by temporarily configuring it manually in the [MCP Client module](/appstore/modules/genai/mcp-modules/mcp-client/).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also point them to log files or developer tools to get more insights?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinaengel-mx I included some extra lines, please check


## Installation {#installation}

If you are starting from a blank app or adding agent-editing functionality to an existing project, you need to manually install the [Agent Editor](https://marketplace.mendix.com/link/component/257918) package from the Mendix Marketplace. After download, you might see a warning asking for permission to add an extension to your app. Make sure to click `Trust module and enable extension` in the popup for the agent editor to be installed.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a similar note about private constant value permissions? And maybe something in troubleshooting if they did not give permission in the first place?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add that according to the order and texts that are shown when reviewing the typescript? I havent' gone through that flow yet. For troubleshooting I don't think we need it, because it's a design time thing only and there are banners for that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep it out, since we have banners and developers can chnage permissions later.


2. With the `IT_Ticket_Helper` Agent document open, go to the Playground section of the editor.

3. Provide a value for the `UserInput` variable, for example: `How can I implement an agent in my Mendix app?`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the collection caontain data about this?


1. On the **TicketHelper_Agent** page, edit the button's **On click** event to call a microflow. Click **New** to create a microflow named `ACT_TicketHelper_CallAgent_Editor`.

2. Grant your module roles access in the microflow properties under **Security** and **Allowed roles**.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to specify which roles?

4. Configure the action:

* **Agent**: select the `IT_Ticket_Helper` Agent document
* **Context object**: `TicketHelper` (input parameter)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this automatically be added to the MF as input when created from the page? It probably should start with $ then


6. Save the microflow and run the project.

You can now open the **TicketHelper_Agent** page and click **Ask the agent** to execute the agent from your app logic. When the model determines that a tool or knowledge base is needed, it will use the configuration that you added in the Agent document.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do they need to login as a specific user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants