Add 'apps/core/' from commit 'ea2a7395f4023f5b9fab03e6273db3b64a1181d5'
git-subtree-dir: apps/core git-subtree-mainline: a8963e11e7a5a0059acbc849ce768e1eee80df61 git-subtree-split: ea2a7395f4023f5b9fab03e6273db3b64a1181d5
This commit is contained in:
28
tests/test_tool_schema_parsing_files/all_python_complex.py
Normal file
28
tests/test_tool_schema_parsing_files/all_python_complex.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
def check_order_status(
|
||||
order_number: int,
|
||||
customer_name: str,
|
||||
related_tickets: List[str],
|
||||
related_ticket_reasons: dict,
|
||||
severity: float,
|
||||
metadata: Optional[dict],
|
||||
):
|
||||
"""
|
||||
Check the status for an order number (integer value).
|
||||
|
||||
Args:
|
||||
order_number (int): The order number to check on.
|
||||
customer_name (str): The name of the customer who placed the order.
|
||||
related_tickets (List[str]): A list of ticket numbers related to the order.
|
||||
related_ticket_reasons (dict): A dictionary of reasons for the related tickets.
|
||||
severity (float): The severity of the request (between 0 and 1).
|
||||
metadata (Optional[dict]): Additional metadata about the order.
|
||||
|
||||
Returns:
|
||||
str: The status of the order (e.g. cancelled, refunded, processed, processing, shipping).
|
||||
"""
|
||||
# TODO replace this with a real query to a database
|
||||
dummy_message = f"Order {order_number} is currently processing."
|
||||
return dummy_message
|
||||
Reference in New Issue
Block a user