vastly improved prompt history

This commit is contained in:
Steve Androulakis
2025-01-03 11:15:01 -08:00
parent dde076f3ed
commit 20d375b4ea
6 changed files with 82 additions and 96 deletions

View File

@@ -4,4 +4,5 @@ def create_invoice(args: dict) -> dict:
return {
"invoiceStatus": "generated",
"invoiceURL": "https://pay.example.com/invoice/12345",
"reference": "INV-12345",
}

View File

@@ -16,8 +16,8 @@ def search_flights(args: dict) -> dict:
return {
"tool": "SearchFlights",
"searchResults": [
"QF 123: $1200",
"VA 456: $1000",
"QF123: $1200",
"VA456: $1000",
],
"status": "search-complete",
"args": args,

View File

@@ -48,7 +48,7 @@ search_flights_tool = ToolDefinition(
# 3) Define the CreateInvoice tool
create_invoice_tool = ToolDefinition(
name="CreateInvoice",
description="Generate an invoice with flight information or other items to purchase",
description="Generate an invoice with flight information.",
arguments=[
ToolArgument(
name="amount",
@@ -58,7 +58,7 @@ create_invoice_tool = ToolDefinition(
ToolArgument(
name="flightDetails",
type="string",
description="A summary of the flights, e.g., flight numbers, price breakdown",
description="A summary of the flights, e.g., flight number and airport codes",
),
],
)