Skip to content

Commit 6a5a1cb

Browse files
committed
feat: update movie ID in CLI script and log validation process in main application
1 parent fe1f2d9 commit 6a5a1cb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/movie_poster_agent_svc/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def create_agent(self) -> ChatAgent:
8484
agent_name="MoviePosterValidator",
8585
)
8686
# Enable Azure AI observability (optional but recommended)
87-
await chat_client.setup_azure_ai_observability()
87+
# DEPRECATED await chat_client.setup_azure_ai_observability()
8888

8989
return ChatAgent(
9090
chat_client=chat_client,

src/movie_poster_agent_svc/cli_curl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
2-
set -ex
2+
#set -ex
33
source .env
44

5-
MOVIE_ID="1369_3170_Family_59954"
5+
MOVIE_ID="525_268153_Comedy_47573"
66

77

88
curl -X GET "$MOVIE_GALLERY_ENDPOINT/movies/$MOVIE_ID" | jq .
@@ -22,4 +22,5 @@ curl -X POST "$MOVIE_POSTER_AGENT_ENDPOINT/validate" \
2222
-d "poster_url=${STORAGE_ACCOUNT_BLOB_URL}movieposters/${MOVIE_ID}.png" \
2323
-d "movie_title=${movie_title}" \
2424
-d "movie_genre=${genre}" \
25+
-d "movie_id=${MOVIE_ID}" \
2526
-d "language=french" | jq .

src/movie_poster_agent_svc/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async def validate_poster_endpoint(
8686
language: str = Form("en", description="Language for the validation response")
8787
):
8888
"""Validate a movie poster image and description."""
89+
logger.info(f"Validation for movie ID: {movie_id}")
8990
try:
9091
# Validate input
9192

0 commit comments

Comments
 (0)