Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Changelog = "https://github.com/Mirascope/mirascope/releases"
[project.optional-dependencies]
anthropic = ["anthropic>=0.75.0,<1.0"]
api = ["pydantic-settings>=2.12.0"]
google = ["google-genai>=1.48.0,<2", "pillow>=10.4.0,<11", "proto-plus>=1.24.0"]
google = ["google-genai>=1.57.0,<2", "pillow>=10.4.0,<11", "proto-plus>=1.24.0"]
openai = ["openai>=2.14.0,<3"]
mcp = ["mcp>=1.25.0,<2"]
ops = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ interactions:
host:
- generativelanguage.googleapis.com
user-agent:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-client:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-key:
- <filtered>
method: POST
uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
response:
body:
string: !!binary |
H4sIAAAAAAAC/1WRX2+CMBTF3/kUTZ91cW6K29syXWaMoo79ScaydFKgsbakvSRuhO++FkQLD+Ry
z+k9tz9KDyG8IyJmMQGq8T36NB2EyvptNSmACjBC2zLNnCi4eJundGpjAXq0h3AZYWDAaWQ+Ihw+
z9DqYTlDwROy9ft8NY1wzyikgEyqxrUmoNhuj7YSsqTQunEoAkyk1uFX2AmrzvVX77Kikpza/IOM
KW/tVWvACRNMZ1tKtBTW9hIGa3xWmYjp0bQHXhtQj8aFJildUiAGFjkjwbmShxxCuafiURY1rPGw
Geaw7ejD25MOEgjvSNd+qzlz9dSkMu5Cd/6HuSThDH7tTcLZR4gdENBdqyXhOcCwQV+kGXRXnEy8
E7EG4htVmjW0Unow/PrDq1E/4URndR5WVOdSaDqPrSe52SzITxAs7vzXP3++Hn0nm/FmgL3K+wcY
CcdgdQIAAA==
H4sIAAAAAAAC/2WRXW+CMBSG7/kVTa9lmWRK3J1Rl7nEjziyj4xdNHCExtqS9pC4Ef/7WhCFjAty
OO/b854+VB4hNGEy5SlDMPSRfNkOIVX9dpqSCBKt0LZss2Aab97mqTq1tSCc3CFaxRQ5CojtR0yj
5wVZT1cLsnkirn5frucxHViFlZgr3bi2DDVPDmSnMN+XxjQOzZDLzDnCM+2Ena/19+C2olYCXP5R
pSBa+7k10D2X3OQ7YEZJZ3uNNlt6VblM4WTb914bUI+mpWEZrACZhcWuSGih1bHASB1AzlRZwxoH
zbAO254ePFx0VMhEXxqOBv/mmrlN5aILvfM/7CWZ4PjjbhItPiLaAYH9tVoSXgcYtejLLMf+isNg
4l2QNRTfQBve4MrgaAH6wd3I3wtm8jqQajCFkgaWqfN8voiMJX44HYfFb7jcBuFs4k8T6p29P/IZ
KZZ2AgAA
headers:
Alt-Svc:
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Expand All @@ -47,11 +49,11 @@ interactions:
Content-Type:
- application/json; charset=UTF-8
Date:
- Tue, 04 Nov 2025 21:47:43 GMT
- Fri, 09 Jan 2026 06:00:00 GMT
Server:
- scaffolding on HTTPServer2
Server-Timing:
- gfet4t7; dur=1321
- gfet4t7; dur=1228
Transfer-Encoding:
- chunked
Vary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ interactions:
host:
- generativelanguage.googleapis.com
user-agent:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-client:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-key:
- <filtered>
method: POST
uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
response:
body:
string: !!binary |
H4sIAAAAAAAC/2WRXW+CMBSG7/kVzbnWRZ2bye4WddEsKjqyD8cuGinQiC1pD5sb4b/bQkDIetGc
nPft+XiaO4TAgYqABxSZhgfyaTKE5OVtNSmQCTRCnTLJlCq8equTt2JjQXa2jyD3BSE+IMeE+Sbh
g7eYk/Xjak42T8TGb8v1zIde5aMZxlJVRpei4ocj2UmMw0zrxqQochFZ08QXBbQaF0381buOq2TC
7CwnGbCkthe1AUIuuI53jGoprO3F27jQqFwE7GzSA6duUJaGTNOIrRhSA442eCBV8pSiJ49MTGVW
grsfVcVanDv6ba2jRJp0pNFg3PtXV89MV560P6D1N2ZJmnD8tZt483cPWiCwO1ZNwmkBA8M/i2Ls
jjgc2vVLZBXFV6Y0r3BF7GQA9kc3d/0woTouG4JiOpVCs2VgPeFi+0z33/tV6Mq/ydLNPvrT8fYH
nMK5ABC6jTOCAgAA
H4sIAAAAAAAC/2WRX0/CMBTF3/cpmj6D0SmQ+GYEFRL+iIuQOB8adtkaSru0dwZd9t1tt2yUsIfm
5pyze29/LQNC6I7JhCcMwdBH8mUVQsr6dJ6SCBKt0UpWzJnGc7b5Sq+2EYST+4mWsSQkpshRQGyF
mEZvE7J4mk/I8oW4ejNdjGPaa3KswEzpJrhiqPnuQNYKs31hTBfSDLlMXWgUy4p6g6uu/u6d19VK
gNvlqBIQbbxqA3TPJTfZGphR0sU+ouWKdi6XCZysfBu0A+rWtDAshTkgs+BYh4fmWh1zjNQB5LMq
anDDsGnmcb7w71sfFTJxYd0Nhr2rvmZsp3LhP4D3NvaSTHD8dTeJJtuIeiDwcq2WROABo5Z/kWZo
oqtsTayB+Ana8IZWCkfLrx/eDPp7wUxWz6MaTK6kgWniMtuZSNkuPLwuN/A3mq4Gs5/w4V3RoAr+
AQUxfpaBAgAA
headers:
Alt-Svc:
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Expand All @@ -43,11 +45,11 @@ interactions:
Content-Type:
- application/json; charset=UTF-8
Date:
- Tue, 04 Nov 2025 21:47:40 GMT
- Fri, 09 Jan 2026 05:59:56 GMT
Server:
- scaffolding on HTTPServer2
Server-Timing:
- gfet4t7; dur=1307
- gfet4t7; dur=1019
Transfer-Encoding:
- chunked
Vary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ interactions:
host:
- generativelanguage.googleapis.com
user-agent:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-client:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-key:
- <filtered>
method: POST
uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
response:
body:
string: !!binary |
H4sIAAAAAAAC/1WRy26DMBBF93yF5XWo2oQmUndRkyhRlUdT+pBKF1YYwAqxkT2oaRH/XhtCalig
Ye713PGh8gihByZiHjMETR/Ip+kQUjVvq0mBINAIXcs0C6bw39s+lVMbC8LZHqJVRJFjDpH5iGi4
nJPNdD0n2wWx9ftqM4vowCisxEyq1rVjqPjhSPYSs6TUunUohlyk1jGpqRNWX+uvwf+KSuZg808y
hryz152BJlxwne2BaSms7SXc7uhV5SKGs2nfel1AM5qWmqWwBmQGFrsioYWSpwJDeQTxKMsG1njY
DnPY9vRhcNFRIsv70qg768zVM5PKcxe68z/MJVnO8cfeJJx/hNQBgf21OhKeA4wa9GWaYX/Fu2Ds
XZC1FN9Aad7iSuFkAPrDm3s/yZnOmkCqQBdSaFjF1gOj5ycWi++Fv3z9nax2gZ/M+DSgXu39AcAb
faZ2AgAA
H4sIAAAAAAAC/2WRy26DMBBF93yF5XVS5aEmandVkqosktAUNX3QhRsMWHFsZA9SUsS/14ZCjMrC
Gt17mRkflx5C+EBEzGICVON79GkUhMr6tJ4UQAUYo5WMmBMF12zzlU5tIkDP9idcRgKhCAMDTiMj
RDh8WqHNw3qFto/I1nt/s4zwoMmRAjKpmmBAQLHDEe0kZEmhdRdSBJhIbWgeiQo7g6uu/hpc11WS
U7vLScaUt/GqDeCECaazHSVaCht7CbcB7lwmYno28shrB9StcaFJStcUiAFHOjw4V/KUQyiPVCxk
UYObTZpmDueeP219kEB4zxrfzQf/+uqlmcq4+wDO25hLEs7gYm8Srt5C7ICA/lotCc8Bhg3/Is2g
v+J4NPX+kDUUX6nSrMGV0pMBOJzc3A4TTnRWD8SK6lwKTf3YZvYfPCWHZO/PvvOfuR/wYHFJn9+x
V3m/ORK3ooICAAA=
headers:
Alt-Svc:
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Expand All @@ -47,11 +49,11 @@ interactions:
Content-Type:
- application/json; charset=UTF-8
Date:
- Tue, 04 Nov 2025 21:47:39 GMT
- Fri, 09 Jan 2026 05:59:54 GMT
Server:
- scaffolding on HTTPServer2
Server-Timing:
- gfet4t7; dur=1650
- gfet4t7; dur=1251
Transfer-Encoding:
- chunked
Vary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ interactions:
"name": "__mirascope_formatted_output_tool__", "parameters": {"properties":
{"title": {"title": "Title", "type": "STRING"}, "author": {"title": "Author",
"type": "STRING"}, "rating": {"title": "Rating", "type": "INTEGER"}}, "required":
["title", "author", "rating"], "type": "OBJECT"}}]}], "toolConfig": {"function_calling_config":
{"mode": "ANY", "allowed_function_names": ["__mirascope_formatted_output_tool__"]}},
["title", "author", "rating"], "type": "OBJECT"}}]}], "toolConfig": {"functionCallingConfig":
{"allowedFunctionNames": ["__mirascope_formatted_output_tool__"], "mode": "ANY"}},
"generationConfig": {}}'
headers:
accept:
Expand All @@ -20,38 +20,39 @@ interactions:
connection:
- keep-alive
content-length:
- '927'
- '923'
content-type:
- application/json
host:
- generativelanguage.googleapis.com
user-agent:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-client:
- google-genai-sdk/1.48.0 gl-python/3.10.16
- google-genai-sdk/1.57.0 gl-python/3.10.16
x-goog-api-key:
- <filtered>
method: POST
uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
response:
body:
string: !!binary |
H4sIAAAAAAAC/21UXZOqOBB9n19h8bRb3HsVFZGt2gcFRWYUQRGVrS0rSoDwkUAIKk7Nf190vpy5
ywOVdJ/u0zTd5/mh0eAOAHvIAwwW3F+Nf2pLo/F8e199BDOIWe14N9XGDFD2iX19nu/ONcQv8YEh
ghWQJF+C3/wYpLC2c7tdiigoDiSDO5/QFDAGvR0pWVayHSMk2e24H9+DAQ2K/0laeyhgCAe1T/oe
dA0rWUjoldUEjKJD3FgQFvplUfxGUaMZYsmtRHsyahiD2agxHzeu57VuqNw3/MuX+8vXdFxNWwYh
W6IAA1bSW1bl2FIH3oShlD95ppfPm/i8TLHNtI2wbws+mRANb4z19hzjZBnk/Q46S5K6OlBG9cKa
nC+znOYSsy9et7lsSZHuMMfaL8TCmneiwdq2kbOaDpRzpD1t+lGWPFmLY8a6XY+o3swwKhLzVq43
41W+0lsLY99MyoSHVS9uG/Ecp6c56naaujachRozBRRK50eZti9HV3Jjn7aoxtZ21lLlx2Hlni7K
Yrnho0nZWUyEQXd8Zn1N0Y4+oFnoTPGIt8oMjqeZ5FImkrPbSRHws4vJtt1qss9a61ie4kpxx1AX
c2ElOt2y5zqq0Lc37VMldIn/dBgO5dBq+6IeqVv+GLd5sxgN7UUTm655akJVsbyeJEcjvuUVh54j
A1HtVE/mWOvnpqNmj2kUmPzZjPvdjtFfbrwmlXk0FSw4EwP9KJO9rMT7Y1Mc4pWot7O08MfZ8SSH
AxnwsoAMf7bqo+BxQnuSbtGQuGYFketv4d5W9IHX76s67xEcDJdjXxl39G3P0JgyjQ6nLDzHnkJX
/PBylMVVuN16XQJ8g0/mHeikS8OqWtHkWJ1EdpCgINgXOtSiptLhY1cYH1E5TDp2vA5DQBwyoSwo
l2NJ1NA0I6kk2aRa8mGBmb8fn1i/pXZNWxppbjzM28flXmhbvFSPlRqpdFa1iDNcuaXht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ulVrWZB9JT9ACdlZvkzUCmQmda0jpexguPk+f8
QgoMdZYJCXJLbDxze10Mx9tqq/ez9kE8CCVlL8j2MIfN3E6Pvl+EBU5dEw/R87Z4WopEqzAYLbsW
2mineajodrNIx71lSKVMHfmlIwnDRU3A+L4O6KnyUaLh6cErayEykbSaOZO9zS2FlbPubucCMZr1
4yOoT1taGuq02VATqXLWtWEUeV0xGFvXE/o1nf99TSZb4rdtOOAQog/65+iyUZqnbUchIDg/0+ae
M/1cEjbNQ3hqzfw3vg0JAfElrn2Oy8Qwh+1WwpD5kAQmaDXhL/L3r7ec5+IuZbHV2dOGFLRaBD73
my1KfCiohzOYa7i6aJEgve/3lXbdED5xiilAN5DYl3/8EZjobdoUXYvald61HQIopc8X7RisvSut
aBPc1vXRx7urdn8IwG2NgsDfvTf87Q2WsCTpW7NjeGjb+VP8pfyMECDJJSNbQlLgnEAzPHPWBYqB
n+80szKanjmNi65yVDfs3evdb9KEkPPXBQAA
headers:
Alt-Svc:
- h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Expand All @@ -60,11 +61,11 @@ interactions:
Content-Type:
- application/json; charset=UTF-8
Date:
- Tue, 04 Nov 2025 21:47:42 GMT
- Fri, 09 Jan 2026 05:59:58 GMT
Server:
- scaffolding on HTTPServer2
Server-Timing:
- gfet4t7; dur=1349
- gfet4t7; dur=1108
Transfer-Encoding:
- chunked
Vary:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "LLM abstractions that aren't abstractions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ def special_sum(n: int) -> int:
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": '''\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "The image displays a three-dimensional jigsaw puzzle globe, composed of white pieces featuring characters from various writing systems, with a few pieces missing to reveal a dark gray interior.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": """\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": """\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": """\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": """\
Expand All @@ -57,10 +58,11 @@
"video_metadata": None,
},
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "2 = **4242**.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "I am a large language model, trained by Google.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "I am a large language model, trained by Google.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": """\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
raw_message={
"parts": [
{
"function_call": None,
"media_resolution": None,
"code_execution_result": None,
"executable_code": None,
"file_data": None,
"function_call": None,
"function_response": None,
"inline_data": None,
"text": "I am a large language model, trained by Google.",
Expand Down
Loading