0
0
Agentic AIml~10 mins

Monitoring agent behavior in production in Agentic AI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start the monitoring agent.

Agentic AI
agent.start_monitoring([1])
Drag options to blanks, or click blank then click option'
Ainterval=10
Bverbose=True
Cmode='silent'
Ddebug=False
Attempts:
3 left
💡 Hint
Common Mistakes
Using verbose or debug flags instead of interval
Setting mode to silent disables monitoring
2fill in blank
medium

Complete the code to log agent errors to a file.

Agentic AI
agent.configure_logging(log_file=[1])
Drag options to blanks, or click blank then click option'
ANone
B'/var/log/agent.log'
CTrue
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Passing boolean or number instead of a file path
Using None disables logging
3fill in blank
hard

Fix the error in the code to correctly set the alert threshold.

Agentic AI
agent.set_alert_threshold([1]=75)
Drag options to blanks, or click blank then click option'
Aalert
Blevel
Climit
Dthreshold
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names like alert or limit
Misspelling threshold
4fill in blank
hard

Fill both blanks to filter logs by severity and time.

Agentic AI
filtered_logs = agent.get_logs(severity=[1], since=[2])
Drag options to blanks, or click blank then click option'
A'ERROR'
B'WARNING'
C'2024-01-01T00:00:00Z'
D'2023-12-31T23:59:59Z'
Attempts:
3 left
💡 Hint
Common Mistakes
Using lower severity levels
Incorrect timestamp formats
5fill in blank
hard

Fill all three blanks to create a summary report with filters.

Agentic AI
report = agent.create_report(type=[1], start_date=[2], end_date=[3])
Drag options to blanks, or click blank then click option'
A'performance'
B'2024-04-01'
C'2024-04-30'
D'errors'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing wrong report type
Swapping start and end dates
Using invalid date formats