- Vue d'ensemble (Overview)
- Commencer avec les agents UiPath
- Premiers pas avec les agents UiPath utilisant LangGraph
- Créer un agent low-code dans Studio Web
- Ajouter des outils à votre agent UiPath
- Introduction
- Créer le workflow d’API
- Connectez-vous à votre agent
- Tester de bout en bout
Exécutez l'agent à l'aide de l'outil de bout en bout, vérifiez les appels d'API autonomes et confirmez le pipeline complet de l'agent.
Une fois l’outil connecté et le contrat de l’agent mis à jour, vous êtes prêt à tester l’ensemble du pipeline.
Étape 5 - Tester de bout en bout
To test the agent end-to-end, use the Debug button from the toolbar at the top of the agent builder. This opens up the Debug configuration dialog, then do the following:
- Open the Entrypoint arguments tab
- Enter a quest description from the code block below
- Then select Save & Debug to run it
The villagers report a massive creature has been destroying farms on the edge of the forest at night.
The villagers report a massive creature has been destroying farms on the edge of the forest at night.
After you click on Save & Debug, you can watch the Execution Trail at the bottom of the agent builder as it executes. The Execution Trail shows the agent's full decision process. For a tool-using agent, expect at least three events:
- The agent's initial analysis of the quest
- The tool call with the search term it chose
- The tool response with the candidate list
The agent then reasons over those candidates before producing its final output.
Vous devriez voir:
- L'agent appelle Monitor Query avec un terme de recherche qu'il a choisi en fonction de la requête.
- L’outil renvoie une liste de candidats.
- L'agent sélectionne la meilleure correspondance et renvoie les cinq champs de sortie.
Select the HTTP Request - Open5e Monster Query span to see the request the tool actually sent: the v2/creatures/ URL, the search term the agent chose in name__icontains, and the document__key and fields values you configured in Step 1. The response below it carries the key identifier for each candidate.
Verify the output contains all five fields: monsterIndex, monsterName, monsterType, monsterCr, and monsterReasoning. monsterIndex is the API's key, so it carries the srd_ prefix - for example srd_giant-ape. The monsterReasoning field should explain why the agent chose this monster for the quest.
Ce que vous avez créé
Vous avez créé le premier composant de UiPathsearch:
- Built a live API connector that searches the 5e SRD: one input, one HTTP request, one output.
- Connecté à votre agent en tant qu'outil avec une seule sélection dans l'Agent Builder.
- L'agent décide désormais de manière autonome quand appeler l'outil, ce qu'il faut rechercher et quel candidat correspond le mieux à la requête.
La chaîne de raisonnement en deux étapes (sélection des termes de recherche et évaluation des candidats) est exactement le type de trajectoire qui produit un signal d’évaluation significatif; c'est le sujet du prochain lab.
Et après
- Documents de l'API Open5e : explorez l'API de recherche Monstre pour comprendre les champs disponibles.
- UiPath Integration Service - créez des outils qui se connectent aux API SaaS sans écrire un workflow personnalisé.
- Community UiPath : forum, pratiques et discussions des développeurs.