Context Reasoning

Answer questions accurately based on a given document or knowledge source — without hallucinating what isn't there. The core skill behind doc Q&A, support bots, and internal knowledge lookup.

100
Duration
7s
Input Tokens
6
Output Tokens
188
Cost
$0.78
Context
Input
In the blogpost 'Agentic customer service chatbot with tools, tracing and evals' a python function is created to identify the user intent. What is the name of this function? def name_of_function(messages)
Expected output
determine_intent
Model output
The function is called `determine_intent(messages)`. It analyzes the conversation messages and classifies the user's intent into categories like 'get_order_status', 'query_products', or 'unsupported', using a structured IntentClassification output type with 'thoughts' and 'intent' fields.