test(translation): vendor the google characterization corpus (vertex_gemini/gemini/vertex_anthropic)

This commit is contained in:
mateo-berri
2026-06-12 00:55:35 +00:00
parent d93446cebb
commit f0ff8caddd
113 changed files with 4158 additions and 0 deletions
@@ -0,0 +1,33 @@
{
"id": "cache_control_messages",
"messages": [
{
"content": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "You are a terse geographer.",
"type": "text"
}
],
"role": "system"
},
{
"content": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,54 @@
{
"id": "cache_control_tools",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
},
{
"cache_control": {
"type": "ephemeral"
},
"function": {
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {}
}
@@ -0,0 +1,76 @@
{
"id": "full_combo",
"messages": [
{
"content": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "You are a terse geographer.",
"type": "text"
}
],
"role": "system"
},
{
"content": "Weather in Paris?",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"city\": \"Paris\"}",
"name": "get_weather"
},
"id": "call_char_001",
"type": "function"
}
]
},
{
"content": "18C, clear",
"role": "tool",
"tool_call_id": "call_char_001"
},
{
"content": "Summarize, then check the weather again.",
"role": "user"
}
],
"params": {
"max_tokens": 2048,
"temperature": 1,
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
},
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {
"azure": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)",
"openai": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)"
}
}
@@ -0,0 +1,24 @@
{
"id": "image_base64",
"messages": [
{
"content": [
{
"text": "Describe this image.",
"type": "text"
},
{
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
},
"type": "image_url"
}
],
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,29 @@
{
"id": "image_url",
"messages": [
{
"content": [
{
"text": "Describe this image.",
"type": "text"
},
{
"image_url": {
"url": "https://example.com/cat.png"
},
"type": "image_url"
}
],
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {
"bedrock_converse": "v1 downloads URL media for bedrock transforms (network)",
"bedrock_invoke": "v1 downloads URL media for bedrock transforms (network)",
"gemini": "v1 downloads URL media for google ai studio transforms (network); the vertex_ai gemini route passes the URL through as fileData and is pinned",
"vertex_anthropic": "v1 downloads URL media for claude-on-vertex transforms (network); native anthropic passes the URL through and is pinned"
}
}
@@ -0,0 +1,13 @@
{
"id": "max_completion_tokens",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_completion_tokens": 512
},
"skip": {}
}
@@ -0,0 +1,21 @@
{
"id": "multi_turn",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
},
{
"content": "Paris.",
"role": "assistant"
},
{
"content": "And of Italy?",
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,20 @@
{
"id": "params_sampling",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 128,
"stop": [
"\n\n",
"END"
],
"temperature": 0.2,
"top_p": 0.9,
"user": "char-user-1234"
},
"skip": {}
}
@@ -0,0 +1,25 @@
{
"id": "pdf_base64",
"messages": [
{
"content": [
{
"text": "Summarize this document.",
"type": "text"
},
{
"file": {
"file_data": "data:application/pdf;base64,JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=",
"filename": "char.pdf"
},
"type": "file"
}
],
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,13 @@
{
"id": "plain_text",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,17 @@
{
"id": "reasoning_effort_low",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 2048,
"reasoning_effort": "low"
},
"skip": {
"azure": "v1 get_optional_params raises UnsupportedParamsError for `reasoning_effort` on gpt-4.1 (non-reasoning openai-family model)",
"openai": "v1 get_optional_params raises UnsupportedParamsError for `reasoning_effort` on gpt-4.1 (non-reasoning openai-family model)"
}
}
@@ -0,0 +1,16 @@
{
"id": "response_format_json_object",
"messages": [
{
"content": "Reply in JSON: capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"response_format": {
"type": "json_object"
}
},
"skip": {}
}
@@ -0,0 +1,32 @@
{
"id": "response_format_json_schema",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"response_format": {
"json_schema": {
"name": "capital",
"schema": {
"additionalProperties": false,
"properties": {
"capital": {
"type": "string"
}
},
"required": [
"capital"
],
"type": "object"
},
"strict": true
},
"type": "json_schema"
}
},
"skip": {}
}
@@ -0,0 +1,17 @@
{
"id": "system_prompt",
"messages": [
{
"content": "You are a terse geographer.",
"role": "system"
},
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256
},
"skip": {}
}
@@ -0,0 +1,20 @@
{
"id": "thinking_enabled",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 2048,
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
}
},
"skip": {
"azure": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)",
"openai": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)"
}
}
@@ -0,0 +1,35 @@
{
"id": "thinking_history_blocks",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
},
{
"content": "Paris.",
"role": "assistant",
"thinking_blocks": [
{
"signature": "sig-char-deadbeef",
"thinking": "The user asks about France; the capital is Paris.",
"type": "thinking"
}
]
},
{
"content": "And of Italy?",
"role": "user"
}
],
"params": {
"max_tokens": 2048,
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
}
},
"skip": {
"azure": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)",
"openai": "v1 get_optional_params raises UnsupportedParamsError for `thinking` on gpt-4.1 (non-reasoning openai-family model)"
}
}
@@ -0,0 +1,34 @@
{
"id": "tools_basic",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"tool_choice": "auto",
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {}
}
@@ -0,0 +1,39 @@
{
"id": "tools_forced_choice",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"tool_choice": {
"function": {
"name": "get_weather"
},
"type": "function"
},
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {}
}
@@ -0,0 +1,52 @@
{
"id": "tools_parallel",
"messages": [
{
"content": "What is the capital of France?",
"role": "user"
}
],
"params": {
"max_tokens": 256,
"parallel_tool_calls": true,
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
},
{
"function": {
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {}
}
@@ -0,0 +1,83 @@
{
"id": "tools_streamed_args_roundtrip",
"messages": [
{
"content": "Weather and time in Paris?",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"function": {
"arguments": "{\"city\": \"Paris\"}",
"name": "get_weather"
},
"id": "call_char_001",
"type": "function"
},
{
"function": {
"arguments": "{\"tz\": \"Europe/Paris\"}",
"name": "get_time"
},
"id": "call_char_002",
"type": "function"
}
]
},
{
"content": "18C, clear",
"role": "tool",
"tool_call_id": "call_char_001"
},
{
"content": "14:05",
"role": "tool",
"tool_call_id": "call_char_002"
}
],
"params": {
"max_tokens": 256,
"tools": [
{
"function": {
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
"type": "function"
},
{
"function": {
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
},
"type": "function"
}
]
},
"skip": {}
}
@@ -0,0 +1,36 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "The capital of France is Paris."
}
]
},
"finishReason": "STOP",
"avgLogprobs": -0.0125
}
],
"usageMetadata": {
"promptTokenCount": 8,
"candidatesTokenCount": 8,
"totalTokenCount": 16,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 8
}
],
"candidatesTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 8
}
]
},
"modelVersion": "gemini-2.5-flash",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-gemini-text-0001"
}
@@ -0,0 +1,48 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "The user asks about France. The capital is Paris.",
"thought": true,
"thoughtSignature": "c2lnLWNoYXItdmVydGV4LWdlbWluaQ=="
},
{
"text": "The capital of France is Paris."
}
]
},
"finishReason": "STOP"
}
],
"usageMetadata": {
"promptTokenCount": 1290,
"candidatesTokenCount": 8,
"totalTokenCount": 1450,
"thoughtsTokenCount": 152,
"cachedContentTokenCount": 1024,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 1290
}
],
"cacheTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 1024
}
],
"candidatesTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 8
}
]
},
"modelVersion": "gemini-2.5-flash",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-gemini-think-0001"
}
@@ -0,0 +1,48 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"functionCall": {
"name": "get_weather",
"args": {
"city": "Paris"
}
}
},
{
"functionCall": {
"name": "get_time",
"args": {
"tz": "Europe/Paris"
}
}
}
]
},
"finishReason": "STOP"
}
],
"usageMetadata": {
"promptTokenCount": 74,
"candidatesTokenCount": 22,
"totalTokenCount": 96,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 74
}
],
"candidatesTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 22
}
]
},
"modelVersion": "gemini-2.5-flash",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-gemini-tool-0001"
}
@@ -0,0 +1,16 @@
{
"id": "msg_vrtx_01CharVtxText0001",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-20250514",
"content": [{"type": "text", "text": "The capital of France is Paris."}],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 14,
"output_tokens": 9,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"service_tier": "standard"
}
}
@@ -0,0 +1,23 @@
{
"id": "msg_vrtx_01CharVtxThink001",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-20250514",
"content": [
{
"type": "thinking",
"thinking": "The user asks about France. The capital is Paris.",
"signature": "sig-char-vertex-anthropic-001"
},
{"type": "text", "text": "The capital of France is Paris."}
],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 42,
"output_tokens": 71,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"service_tier": "standard"
}
}
@@ -0,0 +1,24 @@
{
"id": "msg_vrtx_01CharVtxTool0001",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-20250514",
"content": [
{"type": "text", "text": "I'll check the weather in Paris."},
{
"type": "tool_use",
"id": "toolu_vrtx_01CharWeather01",
"name": "get_weather",
"input": {"city": "Paris"}
}
],
"stop_reason": "tool_use",
"stop_sequence": null,
"usage": {
"input_tokens": 410,
"output_tokens": 67,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"service_tier": "standard"
}
}
@@ -0,0 +1,23 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [{"text": "The capital of France is Paris."}]
},
"finishReason": "STOP",
"avgLogprobs": -0.0125
}
],
"usageMetadata": {
"promptTokenCount": 8,
"candidatesTokenCount": 8,
"totalTokenCount": 16,
"promptTokensDetails": [{"modality": "TEXT", "tokenCount": 8}],
"candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 8}],
"trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-vertex-gemini-text-0001"
}
@@ -0,0 +1,32 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "The user asks about France. The capital is Paris.",
"thought": true,
"thoughtSignature": "c2lnLWNoYXItdmVydGV4LWdlbWluaQ=="
},
{"text": "The capital of France is Paris."}
]
},
"finishReason": "STOP"
}
],
"usageMetadata": {
"promptTokenCount": 1290,
"candidatesTokenCount": 8,
"totalTokenCount": 1450,
"thoughtsTokenCount": 152,
"cachedContentTokenCount": 1024,
"promptTokensDetails": [{"modality": "TEXT", "tokenCount": 1290}],
"cacheTokensDetails": [{"modality": "TEXT", "tokenCount": 1024}],
"candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 8}],
"trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-vertex-gemini-think-0001"
}
@@ -0,0 +1,25 @@
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{"functionCall": {"name": "get_weather", "args": {"city": "Paris"}}},
{"functionCall": {"name": "get_time", "args": {"tz": "Europe/Paris"}}}
]
},
"finishReason": "STOP"
}
],
"usageMetadata": {
"promptTokenCount": 74,
"candidatesTokenCount": 22,
"totalTokenCount": 96,
"promptTokensDetails": [{"modality": "TEXT", "tokenCount": 74}],
"candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 22}],
"trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro",
"createTime": "2025-05-24T00:00:00.000000Z",
"responseId": "char-vertex-gemini-tool-0001"
}
@@ -0,0 +1,6 @@
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": "Paris is the"}]}}], "modelVersion": "gemini-2.5-flash", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-gemini-stream-text-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": " capital of France."}]}}], "modelVersion": "gemini-2.5-flash", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-gemini-stream-text-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": ""}]}, "finishReason": "STOP"}], "usageMetadata": {"promptTokenCount": 8, "candidatesTokenCount": 8, "totalTokenCount": 16, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 8}], "candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 8}]}, "modelVersion": "gemini-2.5-flash", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-gemini-stream-text-0001"}
@@ -0,0 +1,4 @@
data: {"candidates": [{"content": {"role": "model", "parts": [{"functionCall": {"name": "get_weather", "args": {"city": "Paris"}}}]}}], "modelVersion": "gemini-2.5-flash", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-gemini-stream-tool-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"functionCall": {"name": "get_time", "args": {"tz": "Europe/Paris"}}}]}, "finishReason": "STOP"}], "usageMetadata": {"promptTokenCount": 74, "candidatesTokenCount": 22, "totalTokenCount": 96, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 74}], "candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 22}]}, "modelVersion": "gemini-2.5-flash", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-gemini-stream-tool-0001"}
@@ -0,0 +1,23 @@
event: message_start
data: {"type":"message_start","message":{"id":"msg_vrtx_01CharVtxStrTxt01","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":12,"output_tokens":1}}}
event: ping
data: {"type": "ping"}
event: content_block_start
data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Paris is the"}}
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" capital of France."}}
event: content_block_stop
data: {"type":"content_block_stop","index":0}
event: message_delta
data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":9}}
event: message_stop
data: {"type":"message_stop"}
@@ -0,0 +1,29 @@
event: message_start
data: {"type":"message_start","message":{"id":"msg_vrtx_01CharVtxStrTul01","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":410,"output_tokens":3}}}
event: content_block_start
data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
event: content_block_delta
data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"I'll check the weather in Paris."}}
event: content_block_stop
data: {"type":"content_block_stop","index":0}
event: content_block_start
data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_vrtx_01CharWeather01","name":"get_weather","input":{}}}
event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"city\""}}
event: content_block_delta
data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":": \"Paris\"}"}}
event: content_block_stop
data: {"type":"content_block_stop","index":1}
event: message_delta
data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"output_tokens":67}}
event: message_stop
data: {"type":"message_stop"}
@@ -0,0 +1,6 @@
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": "Paris is the"}]}}], "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-text-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": " capital of France."}]}}], "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-text-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": ""}]}, "finishReason": "STOP"}], "usageMetadata": {"promptTokenCount": 8, "candidatesTokenCount": 8, "totalTokenCount": 16, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 8}], "candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 8}], "trafficType": "ON_DEMAND"}, "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-text-0001"}
@@ -0,0 +1,6 @@
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": "The user asks about France.", "thought": true}]}}], "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-think-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": " The capital is Paris.", "thought": true, "thoughtSignature": "c2lnLWNoYXItdmVydGV4LWdlbWluaQ=="}]}}], "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-think-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"text": "The capital of France is Paris."}]}, "finishReason": "STOP"}], "usageMetadata": {"promptTokenCount": 42, "candidatesTokenCount": 8, "totalTokenCount": 202, "thoughtsTokenCount": 152, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 42}], "candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 8}], "trafficType": "ON_DEMAND"}, "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-think-0001"}
@@ -0,0 +1,4 @@
data: {"candidates": [{"content": {"role": "model", "parts": [{"functionCall": {"name": "get_weather", "args": {"city": "Paris"}}}]}}], "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-tool-0001"}
data: {"candidates": [{"content": {"role": "model", "parts": [{"functionCall": {"name": "get_time", "args": {"tz": "Europe/Paris"}}}]}, "finishReason": "STOP"}], "usageMetadata": {"promptTokenCount": 74, "candidatesTokenCount": 22, "totalTokenCount": 96, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 74}], "candidatesTokensDetails": [{"modality": "TEXT", "tokenCount": 22}], "trafficType": "ON_DEMAND"}, "modelVersion": "gemini-2.5-pro", "createTime": "2025-05-24T00:00:00.000000Z", "responseId": "char-vertex-gemini-stream-tool-0001"}
@@ -0,0 +1,4 @@
{
"stream_url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse",
"url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent"
}
@@ -0,0 +1,4 @@
{
"stream_url": "https://us-east5-aiplatform.googleapis.com/v1/projects/char-test-project/locations/us-east5/publishers/anthropic/models/claude-sonnet-4@20250514:streamRawPredict",
"url": "https://us-east5-aiplatform.googleapis.com/v1/projects/char-test-project/locations/us-east5/publishers/anthropic/models/claude-sonnet-4@20250514:rawPredict"
}
@@ -0,0 +1,4 @@
{
"stream_url": "https://us-central1-aiplatform.googleapis.com/v1/projects/char-test-project/locations/us-central1/publishers/google/models/gemini-2.5-pro:streamGenerateContent?alt=sse",
"url": "https://us-central1-aiplatform.googleapis.com/v1/projects/char-test-project/locations/us-central1/publishers/google/models/gemini-2.5-pro:generateContent"
}
@@ -0,0 +1,22 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
}
}
@@ -0,0 +1,51 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,82 @@
{
"contents": [
{
"parts": [
{
"text": "Weather in Paris?"
}
],
"role": "user"
},
{
"parts": [
{
"function_call": {
"args": {
"city": "Paris"
},
"name": "get_weather"
}
}
],
"role": "model"
},
{
"parts": [
{
"function_response": {
"name": "get_weather",
"response": {
"content": "18C, clear"
}
}
}
],
"role": "user"
},
{
"parts": [
{
"text": "Summarize, then check the weather again."
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"temperature": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "Describe this image."
},
{
"inline_data": {
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
"mime_type": "image/png"
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,15 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 512
}
}
@@ -0,0 +1,31 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
},
{
"parts": [
{
"text": "Paris."
}
],
"role": "model"
},
{
"parts": [
{
"text": "And of Italy?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 128,
"stop_sequences": [
"\n\n",
"END"
],
"temperature": 0.2,
"top_p": 0.9
}
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "Summarize this document."
},
{
"inline_data": {
"data": "JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=",
"mime_type": "application/pdf"
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,15 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,19 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,16 @@
{
"contents": [
{
"parts": [
{
"text": "Reply in JSON: capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256,
"response_mime_type": "application/json"
}
}
@@ -0,0 +1,28 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256,
"response_json_schema": {
"additionalProperties": false,
"properties": {
"capital": {
"type": "string"
}
},
"required": [
"capital"
],
"type": "object"
},
"response_mime_type": "application/json"
}
}
@@ -0,0 +1,22 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
}
}
@@ -0,0 +1,19 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,39 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
},
{
"parts": [
{
"text": "The user asks about France; the capital is Paris.",
"thoughtSignature": "sig-char-deadbeef"
},
{
"text": "Paris."
}
],
"role": "model"
},
{
"parts": [
{
"text": "And of Italy?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,41 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"toolConfig": {
"functionCallingConfig": {
"mode": "AUTO"
}
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,44 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"toolConfig": {
"functionCallingConfig": {
"allowed_function_names": [
"get_weather"
],
"mode": "ANY"
}
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,51 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,93 @@
{
"contents": [
{
"parts": [
{
"text": "Weather and time in Paris?"
}
],
"role": "user"
},
{
"parts": [
{
"function_call": {
"args": {
"city": "Paris"
},
"name": "get_weather"
}
},
{
"function_call": {
"args": {
"tz": "Europe/Paris"
},
"name": "get_time"
}
}
],
"role": "model"
},
{
"parts": [
{
"function_response": {
"name": "get_weather",
"response": {
"content": "18C, clear"
}
}
},
{
"function_response": {
"name": "get_time",
"response": {
"content": "14:05"
}
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,27 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"system": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "You are a terse geographer.",
"type": "text"
}
]
}
@@ -0,0 +1,52 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
},
{
"cache_control": {
"type": "ephemeral"
},
"description": "Get current time for a timezone.",
"input_schema": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
},
"name": "get_time",
"type": "custom"
}
]
}
@@ -0,0 +1,74 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 2048,
"messages": [
{
"content": [
{
"text": "Weather in Paris?",
"type": "text"
}
],
"role": "user"
},
{
"content": [
{
"id": "call_char_001",
"input": {
"city": "Paris"
},
"name": "get_weather",
"type": "tool_use"
}
],
"role": "assistant"
},
{
"content": [
{
"content": "18C, clear",
"tool_use_id": "call_char_001",
"type": "tool_result"
},
{
"text": "Summarize, then check the weather again.",
"type": "text"
}
],
"role": "user"
}
],
"system": [
{
"cache_control": {
"type": "ephemeral"
},
"text": "You are a terse geographer.",
"type": "text"
}
],
"temperature": 1,
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
},
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
}
]
}
@@ -0,0 +1,23 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "Describe this image.",
"type": "text"
},
{
"source": {
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
"media_type": "image/png",
"type": "base64"
},
"type": "image"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,15 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 512,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,33 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
},
{
"content": [
{
"text": "Paris.",
"type": "text"
}
],
"role": "assistant"
},
{
"content": [
{
"text": "And of Italy?",
"type": "text"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,24 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 128,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"metadata": {
"user_id": "char-user-1234"
},
"stop_sequences": [
"\n\n",
"END"
],
"temperature": 0.2,
"top_p": 0.9
}
@@ -0,0 +1,23 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "Summarize this document.",
"type": "text"
},
{
"source": {
"data": "JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=",
"media_type": "application/pdf",
"type": "base64"
},
"type": "document"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,15 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,19 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 2048,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
}
}
@@ -0,0 +1,15 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "Reply in JSON: capital of France?",
"type": "text"
}
],
"role": "user"
}
]
}
@@ -0,0 +1,36 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"tool_choice": {
"name": "json_tool_call",
"type": "tool"
},
"tools": [
{
"input_schema": {
"additionalProperties": false,
"properties": {
"capital": {
"type": "string"
}
},
"required": [
"capital"
],
"type": "object"
},
"name": "json_tool_call"
}
]
}
@@ -0,0 +1,21 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"system": [
{
"text": "You are a terse geographer.",
"type": "text"
}
]
}
@@ -0,0 +1,19 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 2048,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
}
}
@@ -0,0 +1,42 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 2048,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
},
{
"content": [
{
"signature": "sig-char-deadbeef",
"thinking": "The user asks about France; the capital is Paris.",
"type": "thinking"
},
{
"text": "Paris.",
"type": "text"
}
],
"role": "assistant"
},
{
"content": [
{
"text": "And of Italy?",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"budget_tokens": 1024,
"type": "enabled"
}
}
@@ -0,0 +1,36 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"tool_choice": {
"type": "auto"
},
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
}
]
}
@@ -0,0 +1,37 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"tool_choice": {
"name": "get_weather",
"type": "tool"
},
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
}
]
}
@@ -0,0 +1,53 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "What is the capital of France?",
"type": "text"
}
],
"role": "user"
}
],
"tool_choice": {
"disable_parallel_tool_use": false,
"type": "auto"
},
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
},
{
"description": "Get current time for a timezone.",
"input_schema": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
},
"name": "get_time",
"type": "custom"
}
]
}
@@ -0,0 +1,85 @@
{
"anthropic_version": "vertex-2023-10-16",
"max_tokens": 256,
"messages": [
{
"content": [
{
"text": "Weather and time in Paris?",
"type": "text"
}
],
"role": "user"
},
{
"content": [
{
"id": "call_char_001",
"input": {
"city": "Paris"
},
"name": "get_weather",
"type": "tool_use"
},
{
"id": "call_char_002",
"input": {
"tz": "Europe/Paris"
},
"name": "get_time",
"type": "tool_use"
}
],
"role": "assistant"
},
{
"content": [
{
"content": "18C, clear",
"tool_use_id": "call_char_001",
"type": "tool_result"
},
{
"content": "14:05",
"tool_use_id": "call_char_002",
"type": "tool_result"
}
],
"role": "user"
}
],
"tools": [
{
"description": "Get current weather for a city.",
"input_schema": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
},
"name": "get_weather",
"type": "custom"
},
{
"description": "Get current time for a timezone.",
"input_schema": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
},
"name": "get_time",
"type": "custom"
}
]
}
@@ -0,0 +1,22 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
}
}
@@ -0,0 +1,51 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,82 @@
{
"contents": [
{
"parts": [
{
"text": "Weather in Paris?"
}
],
"role": "user"
},
{
"parts": [
{
"function_call": {
"args": {
"city": "Paris"
},
"name": "get_weather"
}
}
],
"role": "model"
},
{
"parts": [
{
"function_response": {
"name": "get_weather",
"response": {
"content": "18C, clear"
}
}
}
],
"role": "user"
},
{
"parts": [
{
"text": "Summarize, then check the weather again."
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"temperature": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "Describe this image."
},
{
"inline_data": {
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",
"mime_type": "image/png"
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "Describe this image."
},
{
"file_data": {
"file_uri": "https://example.com/cat.png",
"mime_type": "image/png"
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,15 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 512
}
}
@@ -0,0 +1,31 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
},
{
"parts": [
{
"text": "Paris."
}
],
"role": "model"
},
{
"parts": [
{
"text": "And of Italy?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 128,
"stop_sequences": [
"\n\n",
"END"
],
"temperature": 0.2,
"top_p": 0.9
}
}
@@ -0,0 +1,21 @@
{
"contents": [
{
"parts": [
{
"text": "Summarize this document."
},
{
"inline_data": {
"data": "JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=",
"mime_type": "application/pdf"
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,15 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
}
}
@@ -0,0 +1,19 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,16 @@
{
"contents": [
{
"parts": [
{
"text": "Reply in JSON: capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256,
"response_mime_type": "application/json"
}
}
@@ -0,0 +1,28 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256,
"response_json_schema": {
"additionalProperties": false,
"properties": {
"capital": {
"type": "string"
}
},
"required": [
"capital"
],
"type": "object"
},
"response_mime_type": "application/json"
}
}
@@ -0,0 +1,22 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"system_instruction": {
"parts": [
{
"text": "You are a terse geographer."
}
]
}
}
@@ -0,0 +1,19 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,39 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
},
{
"parts": [
{
"text": "The user asks about France; the capital is Paris.",
"thoughtSignature": "sig-char-deadbeef"
},
{
"text": "Paris."
}
],
"role": "model"
},
{
"parts": [
{
"text": "And of Italy?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 2048,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 1024
}
}
}
@@ -0,0 +1,41 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"toolConfig": {
"functionCallingConfig": {
"mode": "AUTO"
}
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,44 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"toolConfig": {
"functionCallingConfig": {
"allowed_function_names": [
"get_weather"
],
"mode": "ANY"
}
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,51 @@
{
"contents": [
{
"parts": [
{
"text": "What is the capital of France?"
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,93 @@
{
"contents": [
{
"parts": [
{
"text": "Weather and time in Paris?"
}
],
"role": "user"
},
{
"parts": [
{
"function_call": {
"args": {
"city": "Paris"
},
"name": "get_weather"
}
},
{
"function_call": {
"args": {
"tz": "Europe/Paris"
},
"name": "get_time"
}
}
],
"role": "model"
},
{
"parts": [
{
"function_response": {
"name": "get_weather",
"response": {
"content": "18C, clear"
}
}
},
{
"function_response": {
"name": "get_time",
"response": {
"content": "14:05"
}
}
}
],
"role": "user"
}
],
"generationConfig": {
"max_output_tokens": 256
},
"tools": [
{
"function_declarations": [
{
"description": "Get current weather for a city.",
"name": "get_weather",
"parameters": {
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}
},
{
"description": "Get current time for a timezone.",
"name": "get_time",
"parameters": {
"properties": {
"tz": {
"type": "string"
}
},
"required": [
"tz"
],
"type": "object"
}
}
]
}
]
}
@@ -0,0 +1,41 @@
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "The capital of France is Paris.",
"function_call": null,
"images": [],
"role": "assistant",
"thinking_blocks": [],
"tool_calls": null
}
}
],
"created": 1718064000,
"id": "char-gemini-text-0001",
"model": "gemini-2.5-flash",
"object": "chat.completion",
"system_fingerprint": null,
"usage": {
"cache_read_input_tokens": null,
"completion_tokens": 8,
"completion_tokens_details": {
"text_tokens": 8
},
"prompt_tokens": 8,
"prompt_tokens_details": {
"audio_tokens": null,
"cached_tokens": null,
"image_tokens": null,
"text_tokens": 8,
"video_tokens": null
},
"total_tokens": 16
},
"vertex_ai_citation_metadata": [],
"vertex_ai_grounding_metadata": [],
"vertex_ai_safety_results": [],
"vertex_ai_url_context_metadata": []
}
@@ -0,0 +1,54 @@
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "The capital of France is Paris.",
"function_call": null,
"images": [],
"provider_specific_fields": {
"thought_signatures": [
"c2lnLWNoYXItdmVydGV4LWdlbWluaQ=="
]
},
"reasoning_content": "The user asks about France. The capital is Paris.",
"role": "assistant",
"thinking_blocks": [
{
"signature": "c2lnLWNoYXItdmVydGV4LWdlbWluaQ==",
"thinking": "The user asks about France. The capital is Paris.",
"type": "thinking"
}
],
"tool_calls": null
}
}
],
"created": 1718064000,
"id": "char-gemini-think-0001",
"model": "gemini-2.5-flash",
"object": "chat.completion",
"system_fingerprint": null,
"usage": {
"cache_read_input_tokens": 1024,
"completion_tokens": 160,
"completion_tokens_details": {
"reasoning_tokens": 152,
"text_tokens": 8
},
"prompt_tokens": 1290,
"prompt_tokens_details": {
"audio_tokens": null,
"cached_tokens": 1024,
"image_tokens": null,
"text_tokens": 266,
"video_tokens": null
},
"total_tokens": 1450
},
"vertex_ai_citation_metadata": [],
"vertex_ai_grounding_metadata": [],
"vertex_ai_safety_results": [],
"vertex_ai_url_context_metadata": []
}
@@ -0,0 +1,60 @@
{
"choices": [
{
"finish_reason": "tool_calls",
"index": 0,
"message": {
"content": null,
"function_call": null,
"images": [],
"role": "assistant",
"thinking_blocks": [],
"tool_calls": [
{
"function": {
"arguments": "{\"city\": \"Paris\"}",
"name": "get_weather"
},
"id": "call_0000000000000000000000000000",
"index": 0,
"type": "function"
},
{
"function": {
"arguments": "{\"tz\": \"Europe/Paris\"}",
"name": "get_time"
},
"id": "call_0000000000000000000000000000",
"index": 1,
"type": "function"
}
]
}
}
],
"created": 1718064000,
"id": "char-gemini-tool-0001",
"model": "gemini-2.5-flash",
"object": "chat.completion",
"system_fingerprint": null,
"usage": {
"cache_read_input_tokens": null,
"completion_tokens": 22,
"completion_tokens_details": {
"text_tokens": 22
},
"prompt_tokens": 74,
"prompt_tokens_details": {
"audio_tokens": null,
"cached_tokens": null,
"image_tokens": null,
"text_tokens": 74,
"video_tokens": null
},
"total_tokens": 96
},
"vertex_ai_citation_metadata": [],
"vertex_ai_grounding_metadata": [],
"vertex_ai_safety_results": [],
"vertex_ai_url_context_metadata": []
}

Some files were not shown because too many files have changed in this diff Show More