From f2164d6035a5a9df624e7f72bc19ed26b8b92247 Mon Sep 17 00:00:00 2001 From: David Motsonashvili Date: Tue, 1 Oct 2024 12:56:54 -0700 Subject: [PATCH] Add test data with more complex JSON object (#19) * add more complex test * more complex object for future testing --------- Co-authored-by: David Motsonashvili --- ...ss-function-call-complex-json-literal.json | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 mock-responses/unary-success-function-call-complex-json-literal.json diff --git a/mock-responses/unary-success-function-call-complex-json-literal.json b/mock-responses/unary-success-function-call-complex-json-literal.json new file mode 100644 index 0000000..4cafae8 --- /dev/null +++ b/mock-responses/unary-success-function-call-complex-json-literal.json @@ -0,0 +1,48 @@ +{ + "candidates": [ + { + "content": { + "parts": [ + { + "functionCall": { + "name": "functionName", + "args": { + "original_title": "Longer String", + "current": true, + "testObject": { + "testProperty": "string property" + } + } + } + } + ], + "role": "model" + }, + "finishReason": "STOP", + "index": 0, + "safetyRatings": [ + { + "category": "HARM_CATEGORY_HARASSMENT", + "probability": "NEGLIGIBLE" + }, + { + "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "probability": "NEGLIGIBLE" + }, + { + "category": "HARM_CATEGORY_DANGEROUS_CONTENT", + "probability": "NEGLIGIBLE" + }, + { + "category": "HARM_CATEGORY_HATE_SPEECH", + "probability": "NEGLIGIBLE" + } + ] + } + ], + "usageMetadata": { + "promptTokenCount": 774, + "candidatesTokenCount": 4176, + "totalTokenCount": 4950 + } +}