File tree Expand file tree Collapse file tree
testcases/quickstart-agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
32
43cd /app/testcases/quickstart-agent
54
@@ -11,22 +10,6 @@ uv sync
1110echo " Authenticating with UiPath..."
1211uv run uipath auth --client-id=" $CLIENT_ID " --client-secret=" $CLIENT_SECRET " --base-url=" $BASE_URL "
1312
14- # Load the auth configuration into environment
15- # Check what uipath auth created
16- echo " === Checking auth artifacts ==="
17- if [ -f ~ /.config/uipath/auth.json ]; then
18- echo " Auth config exists:"
19- cat ~ /.config/uipath/auth.json
20-
21- # Extract and export the required environment variables
22- export UIPATH_URL=$( jq -r ' .base_url // .url // empty' ~ /.config/uipath/auth.json)
23- export UIPATH_ACCESS_TOKEN=$( jq -r ' .access_token // .token // empty' ~ /.config/uipath/auth.json)
24-
25- echo " UIPATH_URL: $UIPATH_URL "
26- echo " UIPATH_ACCESS_TOKEN: ${UIPATH_ACCESS_TOKEN: 0: 20} ..."
27- fi
28- echo " ==============================="
29-
3013# Pack the agent
3114echo " Packing agent..."
3215uv run uipath pack
Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ class JokeFlow(Workflow):
2929 async def generate_joke (self , ev : TopicEvent ) -> JokeEvent :
3030 topic = ev .topic
3131
32+ # Debug logging
33+ import os
34+ print (f"DEBUG: BASE_URL from env: { os .environ .get ('UIPATH_URL' , 'NOT SET' )} " )
35+ if hasattr (self .llm , '_client' ):
36+ print (f"DEBUG: Client base URL: { self .llm ._client ._base_url } " )
37+ if hasattr (self .llm , 'azure_endpoint' ):
38+ print (f"DEBUG: Azure endpoint: { self .llm .azure_endpoint } " )
39+
3240 prompt = f"Write your best joke about { topic } ."
3341 response = await self .llm .acomplete (prompt )
3442 return JokeEvent (joke = str (response ))
You can’t perform that action at this time.
0 commit comments