protobuf with python example
- User
protobuf with python example
- Assistant
syntax = "proto3";
message Person { string name = 1; int32 id = 2; repeated string emails = 3; }
message Address { string street = 1; string city = 2; string zip_code = 3; }
message Order { int32 order_id = 1; string customer_name = 2; map<string, int32> items = 3; int64 total_price = 4; repeated Address shipping_address = 5; repeated Address billing_address = 6; }
message Review { string customer_name = 1; string comment = 2; int32 rating = 3; }
message ShoppingCart { repeated Order order_history = 1; map<string, int32> current_items = 2; }
message Product { string name = 1; string description = 2; int32 price = 3; int32 quantity_in_stock = 4; repeated string tags = 5; }
message Wishlist { repeated Product products = 1; }
message Inventory { map<string, int32> products = 1; }
message Sale { string product_name = 1; int32 discount_percentage = 2; int32 start_date = 3; int32 end_date = 4; }
message SearchQuery { string query = 1; repeated string filters = 2; }
message Recommendation { repeated Product recommended_products = 1; }
message RecommendationEngine { repeated Product similar_products = 2; repeated Product popular_products = 3; repeated Product trending_products = 4; }
message RecommendationRequest { string customer_name = 1; repeated string viewed_products = 2; repeated string purchased_products = 3; }
message RecommendationResponse { repeated Recommendation recommendation = 1; }
}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.