Skip to content

invoke Snowflake Agents from Mendix - #11736

Open
katarzyna-koltun-mx wants to merge 1 commit into
developmentfrom
kk-snow-cortexagent
Open

invoke Snowflake Agents from Mendix#11736
katarzyna-koltun-mx wants to merge 1 commit into
developmentfrom
kk-snow-cortexagent

Conversation

@katarzyna-koltun-mx

Copy link
Copy Markdown
Collaborator

No description provided.

* **ToolUseType** – Specifies how the agent should use tools during the conversation.
* The user's message is stored in the **CortexAgentMessage** object, which is associated with the **CortexAgentRequest**. Set the following attributes:

* **Role** – Set to `user` to indicate the message is from the end user.

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.

🚫 [vale] reported by reviewdog 🐶
[Mendix.CompoundWords] Use 'end-user' instead of 'end user'

2. In Mendix, a **CortexAgentRequest** is created with **AgentName** set to `SNOWFLAKETESTAGENT`, the appropriate **Database** and **Schema** values, and a CortexContent text of *"How many tickets are in Open status?"*.
3. The **CortexAgent** microflow is called, which authenticates and serializes the request, and sends it to the Snowflake Agent REST API.
4. The agent reasons over the question, invokes the custom tool, and returns a response.
5. The **Text** field from **CortexAgentContent** in the response is displayed in the Mendix conversational UI as a markdown-formatted answer, for example, *"There are 42 tickets currently in Open status."* No newline at end of file

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.

🚫 [vale] reported by reviewdog 🐶
[Mendix.Capitalization] Use ''Markdown'' (capitalized)

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.

1 participant