-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation
Milestone
Description
My agent executes multiple tool call simulataneously. One of tool is get_customer_data
which saves customer_id
in session state. But in database I don't find it persisted.
def get_customer_data(customer_id: str, tool_context: ToolContext) -> dict:
"""
Retrieve customer data based on customer ID
Args:
customer_id (str): customer id.
tool_context: ToolContext object.
Returns:
dict: dictionary containing customer data with fields - id and name, loan_amount, account_history, interest loan, pre-approved loan.
"""
# this is not persisting, will figure out
tool_context.state['customer_id'] = customer_id
customer_data = make_get_call("get_customer_data", customer_id)
if not customer_data:
return {
"name": "Unknown",
}
return customer_data
Metadata
Metadata
Assignees
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation