|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"contents": [{"parts": [{"text": "What''s the weather in San Francisco?"}], |
| 4 | + "role": "user"}], "systemInstruction": {"parts": [{"text": "You are a helpful |
| 5 | + weather assistant. Use the get_weather tool to answer questions about weather.\n\nYou |
| 6 | + are an agent. Your internal name is \"weather_agent\"."}], "role": "user"}, |
| 7 | + "tools": [{"functionDeclarations": [{"description": "Get the weather for a location.", |
| 8 | + "name": "get_weather", "parameters": {"properties": {"location": {"type": "STRING"}}, |
| 9 | + "required": ["location"], "type": "OBJECT"}}]}], "generationConfig": {}}' |
| 10 | + headers: |
| 11 | + accept: |
| 12 | + - '*/*' |
| 13 | + accept-encoding: |
| 14 | + - gzip, deflate |
| 15 | + connection: |
| 16 | + - keep-alive |
| 17 | + content-length: |
| 18 | + - '561' |
| 19 | + content-type: |
| 20 | + - application/json |
| 21 | + host: |
| 22 | + - generativelanguage.googleapis.com |
| 23 | + user-agent: |
| 24 | + - google-genai-sdk/1.31.0 gl-python/3.9.21 google-adk/1.14.1 gl-python/3.9.21 |
| 25 | + x-goog-api-client: |
| 26 | + - google-genai-sdk/1.31.0 gl-python/3.9.21 google-adk/1.14.1 gl-python/3.9.21 |
| 27 | + method: POST |
| 28 | + uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent |
| 29 | + response: |
| 30 | + body: |
| 31 | + string: !!binary | |
| 32 | + H4sIAAAAAAAC/61SXU+DMBR9768gfR4LMofG100TP4hTyWJijLnChTWWFttuy1z23y1fG0x9ExJS |
| 33 | + 7jk9596ebonj0BhEwhIwqOmF82IrjrOtviUmhUFhLNCWbLEAZQ7c+tl21paSLkVsmBQT4Ly3ucEF |
| 34 | + 5GjrNEPztkYwC1R0cEwClelfNluEyxhK+VLiCYRzpUDETMeSHnF35K+/w/r1YEyV5FVfuUyQt2K7 |
| 35 | + lkBTJphePCLoxju6n+37prDK7mRWKPletu2eDwPf98bBaeD59h2fjND1AtKaV7Z0qSHDEA3YAGA/ |
| 36 | + LLUieWEi+YFiIpdVAOOz2qiTVw8PGthIA7yPjAY/VPXUejLejbGTsB0fODObcsbo8jnqZGP1e021 |
| 37 | + Z0Q6R3nc4j+ZBX0v0iRThzVHpZsbkWFuc3L9oeemHPSiEqQKdSGFxuuk5Ez9NITwFqfhav1p9EzG |
| 38 | + XzebB4+SHfkGVtQS/hUDAAA= |
| 39 | + headers: |
| 40 | + Alt-Svc: |
| 41 | + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 |
| 42 | + Content-Encoding: |
| 43 | + - gzip |
| 44 | + Content-Type: |
| 45 | + - application/json; charset=UTF-8 |
| 46 | + Date: |
| 47 | + - Thu, 18 Sep 2025 20:09:51 GMT |
| 48 | + Server: |
| 49 | + - scaffolding on HTTPServer2 |
| 50 | + Server-Timing: |
| 51 | + - gfet4t7; dur=530 |
| 52 | + Transfer-Encoding: |
| 53 | + - chunked |
| 54 | + Vary: |
| 55 | + - Origin |
| 56 | + - X-Origin |
| 57 | + - Referer |
| 58 | + X-Content-Type-Options: |
| 59 | + - nosniff |
| 60 | + X-Frame-Options: |
| 61 | + - SAMEORIGIN |
| 62 | + X-XSS-Protection: |
| 63 | + - '0' |
| 64 | + status: |
| 65 | + code: 200 |
| 66 | + message: OK |
| 67 | +- request: |
| 68 | + body: '{"contents": [{"parts": [{"text": "What''s the weather in San Francisco?"}], |
| 69 | + "role": "user"}, {"parts": [{"functionCall": {"args": {"location": "San Francisco"}, |
| 70 | + "name": "get_weather"}}], "role": "model"}, {"parts": [{"functionResponse": |
| 71 | + {"name": "get_weather", "response": {"location": "San Francisco", "temperature": |
| 72 | + "72\u00b0F", "condition": "sunny", "humidity": "45%", "wind": "5 mph NW"}}}], |
| 73 | + "role": "user"}], "systemInstruction": {"parts": [{"text": "You are a helpful |
| 74 | + weather assistant. Use the get_weather tool to answer questions about weather.\n\nYou |
| 75 | + are an agent. Your internal name is \"weather_agent\"."}], "role": "user"}, |
| 76 | + "tools": [{"functionDeclarations": [{"description": "Get the weather for a location.", |
| 77 | + "name": "get_weather", "parameters": {"properties": {"location": {"type": "STRING"}}, |
| 78 | + "required": ["location"], "type": "OBJECT"}}]}], "generationConfig": {}}' |
| 79 | + headers: |
| 80 | + accept: |
| 81 | + - '*/*' |
| 82 | + accept-encoding: |
| 83 | + - gzip, deflate |
| 84 | + connection: |
| 85 | + - keep-alive |
| 86 | + content-length: |
| 87 | + - '881' |
| 88 | + content-type: |
| 89 | + - application/json |
| 90 | + host: |
| 91 | + - generativelanguage.googleapis.com |
| 92 | + user-agent: |
| 93 | + - google-genai-sdk/1.31.0 gl-python/3.9.21 google-adk/1.14.1 gl-python/3.9.21 |
| 94 | + x-goog-api-client: |
| 95 | + - google-genai-sdk/1.31.0 gl-python/3.9.21 google-adk/1.14.1 gl-python/3.9.21 |
| 96 | + method: POST |
| 97 | + uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent |
| 98 | + response: |
| 99 | + body: |
| 100 | + string: !!binary | |
| 101 | + H4sIAAAAAAAC/61R0U7bQBB891esTuobiS5OHELfqqaRUIEisACprdA2Xsen2nfmbl2IovwT38CX |
| 102 | + cefUwaGv9YO12pnbGc1sIgCxRJ2pDJmc+Ajf/QZg0/4DZjSTZg90K7+s0fIbd/dterOnMD2FRyIt |
| 103 | + CB4JuSALSsM1alhY1EvllgaUA9dovYZHxQUgMFU1WeTGEpgcjuOX58UQwomiqVSmeB2eTJIP4B0D |
| 104 | + h9PKD36XQFUXcHE7/KFFz8h2P/88erNvTUnBW2UyKjv6tiOIXGnliitCZ3SgXaffLsUexT+rM7Oq |
| 105 | + rfkVEhjIoZQymU1HUo6n8iSeTpKTWRx14q2saByu6JwYfci4j1L4I1XNqflN+rNp2pBnk51Qr5MD |
| 106 | + fNzhbBjLA2g0mh39c9fNvaoq+2X1evQBYOlTbYv6cpeKXkh8aKtLKeqF+d7kfxIbvxOL/paz6+uG |
| 107 | + rFO7YlZU+aoG8VAO8hJd0V4UllxttKPTLHDmcX6Op+nXi3v19MDu8j6npPkkRbSNXgFas32N/AIA |
| 108 | + AA== |
| 109 | + headers: |
| 110 | + Alt-Svc: |
| 111 | + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 |
| 112 | + Content-Encoding: |
| 113 | + - gzip |
| 114 | + Content-Type: |
| 115 | + - application/json; charset=UTF-8 |
| 116 | + Date: |
| 117 | + - Thu, 18 Sep 2025 20:09:52 GMT |
| 118 | + Server: |
| 119 | + - scaffolding on HTTPServer2 |
| 120 | + Server-Timing: |
| 121 | + - gfet4t7; dur=612 |
| 122 | + Transfer-Encoding: |
| 123 | + - chunked |
| 124 | + Vary: |
| 125 | + - Origin |
| 126 | + - X-Origin |
| 127 | + - Referer |
| 128 | + X-Content-Type-Options: |
| 129 | + - nosniff |
| 130 | + X-Frame-Options: |
| 131 | + - SAMEORIGIN |
| 132 | + X-XSS-Protection: |
| 133 | + - '0' |
| 134 | + status: |
| 135 | + code: 200 |
| 136 | + message: OK |
| 137 | +version: 1 |
0 commit comments