llama-stack-mirror/tests/integration/recordings/responses/f22b7da7ad75.json
Ashwin Bharambe ef0736527d
feat(tools)!: substantial clean up of "Tool" related datatypes (#3627)
This is a sweeping change to clean up some gunk around our "Tool"
definitions.

First, we had two types `Tool` and `ToolDef`. The first of these was a
"Resource" type for the registry but we had stopped registering tools
inside the Registry long back (and only registered ToolGroups.) The
latter was for specifying tools for the Agents API. This PR removes the
former and adds an optional `toolgroup_id` field to the latter.

Secondly, as pointed out by @bbrowning in
https://github.com/llamastack/llama-stack/pull/3003#issuecomment-3245270132,
we were doing a lossy conversion from a full JSON schema from the MCP
tool specification into our ToolDefinition to send it to the model.
There is no necessity to do this -- we ourselves aren't doing any
execution at all but merely passing it to the chat completions API which
supports this. By doing this (and by doing it poorly), we encountered
limitations like not supporting array items, or not resolving $refs,
etc.

To fix this, we replaced the `parameters` field by `{ input_schema,
output_schema }` which can be full blown JSON schemas.

Finally, there were some types in our llama-related chat format
conversion which needed some cleanup. We are taking this opportunity to
clean those up.

This PR is a substantial breaking change to the API. However, given our
window for introducing breaking changes, this suits us just fine. I will
be landing a concurrent `llama-stack-client` change as well since API
shapes are changing.
2025-10-02 15:12:03 -07:00

1204 lines
32 KiB
JSON

{
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"First text for base64",
"Second text for base64",
"Third text for base64"
],
"encoding_format": "base64"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.047443096,
0.1030663,
-0.02994777,
-0.0019610971,
-0.0004458719,
0.013241453,
-0.022299973,
0.035796557,
0.042697832,
-0.013352145,
0.014903893,
0.059454504,
-0.030757127,
-0.016443565,
0.04413251,
-0.01962478,
-0.052001625,
0.023652397,
0.038157385,
-0.019067932,
0.07790512,
0.065477535,
0.0063924147,
0.01184581,
0.008469548,
0.055321243,
-0.08488264,
0.1419959,
0.07208884,
-0.052270085,
0.04475413,
-0.043897122,
0.19948907,
0.0521248,
0.039570127,
0.047736328,
-0.0031801846,
-0.027514923,
0.016915824,
0.08785543,
0.018578053,
-0.062505305,
0.025584552,
0.039979465,
0.013755796,
-0.029615713,
0.050677385,
0.09286756,
0.046862997,
-0.046437945,
0.09620637,
-0.037828952,
-0.021523252,
0.053332504,
0.008366923,
0.016525395,
-0.04379942,
0.057431653,
-0.042829104,
0.053737152,
-0.05284048,
-0.025113432,
0.040097877,
-0.05878011,
0.04986854,
-0.016612675,
0.06288202,
-0.057936136,
0.0014946498,
0.011902256,
-0.02110201,
-0.045040447,
-0.028943324,
0.112218715,
-0.04346062,
0.02658561,
-0.08660781,
0.0075222226,
0.040901423,
-0.013788897,
-0.0034571695,
-0.105320804,
0.13145688,
0.1387978,
-0.024207905,
0.00011780889,
0.0027130456,
0.08893496,
-0.0404282,
-0.013090902,
-0.042802725,
-0.019277347,
-0.0072423737,
-0.012584974,
-0.0758852,
0.042088367,
-0.028754171,
-0.046412025,
-0.08769414,
0.011706997,
0.033290867,
-0.047082063,
0.036054734,
0.02562872,
-0.064266376,
-0.041589364,
0.022733012,
0.03523196,
-0.030952249,
-0.030285591,
-0.030893793,
-0.014268825,
-0.064496316,
-0.029686624,
-0.037651353,
-0.07263676,
-0.05136519,
0.01860713,
0.015172685,
0.0192144,
-0.0116023095,
-0.012719093,
-0.029429333,
0.032753803,
-0.10127056,
-0.08305989,
0.07203204,
-1.6656048e-33,
-0.003488058,
0.0655988,
-0.007163306,
0.038025133,
-0.042687092,
-0.008737161,
-0.037520815,
0.038469143,
-0.120509155,
0.03023451,
-0.026864765,
-0.06805885,
0.05592863,
-0.07489512,
-0.017807316,
-0.049285922,
-0.08905791,
0.011731217,
0.017883036,
0.00015935759,
-0.030456739,
0.024376402,
-0.027947344,
-0.049716905,
0.014850297,
-0.0068702376,
-0.037318625,
-0.050714917,
0.03216811,
-0.03513996,
-0.040848706,
0.0031008294,
-0.06374552,
-0.07015488,
0.040950127,
-0.031313762,
0.06336745,
0.015497221,
-0.08470297,
0.034139305,
0.047749784,
0.063429475,
0.08305951,
-0.031543955,
-0.02092045,
0.024276698,
-0.050816093,
-0.00951583,
0.11460215,
-0.011085907,
0.0006970512,
0.08304137,
-0.018151749,
0.012668774,
0.023483729,
-0.068380035,
0.008017319,
0.005103147,
-0.033619083,
-0.045522273,
-0.007610588,
-0.0031189255,
0.02023118,
0.048001137,
0.018279912,
-0.06083473,
0.0025614651,
-0.051604036,
-0.0712584,
0.0049647917,
-0.056144852,
-0.03460778,
0.084107466,
-0.051244184,
-0.07208066,
0.082872786,
-0.042616084,
0.032226164,
0.038903847,
-0.043644667,
0.03114516,
-0.037657745,
-0.0051392126,
-0.0399705,
-0.01362006,
0.062149994,
0.009436811,
-0.10927611,
0.0054878076,
0.035581235,
0.06060475,
-0.051899396,
0.013453982,
-0.02607209,
0.03149,
5.778151e-34,
0.04866742,
-0.026154209,
0.028786905,
-0.009705908,
0.036763143,
0.07683042,
0.124761656,
0.02430845,
-0.0055978484,
-0.011855667,
0.08782188,
0.03667143,
-0.01590326,
-0.005430289,
0.026028333,
-0.047321074,
-0.0042727133,
0.026540313,
0.0465339,
-0.042490445,
-0.015054837,
-0.032038923,
-0.10492689,
0.10122033,
0.07957377,
0.042453364,
0.011124516,
0.010934764,
0.045186315,
-0.02283475,
-0.06222954,
0.04523413,
0.048799627,
0.060591288,
-0.048021708,
-0.03465323,
-0.045096762,
0.017476292,
0.036111128,
0.05623506,
0.062889755,
-0.07529307,
-0.065171525,
0.0069152173,
0.05907177,
-0.0603988,
0.045391977,
0.03989815,
0.017313296,
-0.010879031,
0.014901746,
0.05576297,
-0.064136796,
-0.05788592,
0.049781807,
-0.04160058,
-0.116747804,
0.037745718,
0.0020103676,
-0.01814592,
0.013506867,
0.00341396,
0.014206663,
-0.009217883,
-0.011821457,
-0.033057805,
-0.051591158,
0.031610493,
-0.07041633,
0.007702183,
-0.009296349,
-0.058487307,
-0.01271879,
0.043650433,
0.017939351,
-0.034527123,
0.037774917,
0.0450543,
-0.03789838,
0.0016587796,
-0.017690128,
0.046084408,
-0.10634635,
0.058015924,
0.09367202,
-0.03887253,
-0.030778354,
-0.04526167,
-0.042162772,
-0.019281171,
-0.094072275,
0.08443694,
0.04598175,
0.11420337,
-0.016542073,
-1.3092824e-08,
0.01029157,
-0.05607101,
-0.053273894,
0.04327644,
-0.012097581,
0.075499125,
8.911722e-05,
-0.059431333,
-0.039473776,
-0.12459489,
-0.01031571,
0.01610335,
0.016960384,
-0.07947821,
0.01820896,
0.040425852,
0.0060324515,
-0.13502608,
0.016641272,
-0.020874891,
0.021407917,
0.030175129,
-0.045509353,
-0.10665387,
-0.071301624,
0.027237656,
-0.0072193583,
0.120991066,
-0.008656499,
0.0011201953,
0.0039784242,
0.0341344,
-0.06401818,
-0.036852792,
0.035282534,
-0.011923041,
0.067173794,
0.014300814,
0.06770646,
-0.066512346,
0.085266545,
-0.037755802,
-0.094363555,
-0.0124826655,
-0.014590712,
0.026925279,
0.04410473,
0.015496688,
0.004318949,
-0.031916477,
0.017218966,
0.016201599,
-0.033119682,
0.06837974,
-0.02781091,
-0.01779888,
0.057812553,
-0.016622763,
-0.0718051,
0.07917062,
0.027705258,
-0.0024773679,
0.11784412,
-0.02393799
],
"index": 0,
"object": "embedding"
},
{
"embedding": [
0.04654041,
0.100457005,
-0.03960695,
0.0054190895,
-0.00061261636,
0.022978926,
-0.015349646,
0.05174952,
0.04080002,
-0.040600445,
0.02253602,
0.024573963,
-0.0061854525,
-0.024768595,
0.097017914,
0.0037721908,
-0.1071271,
0.05670194,
0.021320485,
-0.023483735,
0.10240627,
0.046724126,
0.014405091,
0.017862096,
0.0076312926,
0.084439315,
-0.08968022,
0.16757359,
0.046978492,
-0.029951245,
0.07417616,
0.00019549856,
0.118695736,
0.026067322,
0.035530325,
0.0063190986,
-0.016918957,
-0.011904382,
0.02159433,
0.04011584,
0.020048723,
-0.053142868,
0.022441626,
0.016903853,
-0.023708675,
-0.02648895,
0.019766012,
0.062821016,
0.04764414,
-0.052348837,
0.07352589,
-0.06325153,
-0.0331663,
0.04175679,
0.0015468705,
0.05215102,
-0.04930485,
0.05475271,
-0.037362292,
0.048984047,
0.00668616,
0.0077575357,
0.033763032,
-0.045534473,
0.04478127,
-0.041897986,
0.058399495,
-0.053956937,
-0.066097215,
0.006726588,
0.0038363277,
-0.03608817,
0.008571994,
0.07390713,
0.006064092,
0.0057486463,
-0.08874643,
-0.0021642765,
0.045340028,
-0.051646378,
0.0056842417,
-0.10331014,
0.120456606,
0.12761793,
-0.024176907,
-0.05479328,
0.0034843183,
0.07641806,
-0.059855074,
-0.0195081,
-0.0150292525,
-0.00992928,
0.045797862,
-0.015174619,
-0.07924758,
0.023096986,
-0.040744357,
-0.0101818275,
-0.08914291,
0.013643887,
0.011581099,
-0.049888827,
-0.00021994562,
-0.02913472,
-0.029171223,
-0.04352264,
0.0076333424,
0.012210982,
0.016095871,
-0.06401206,
0.0016354738,
0.028166138,
-0.07800048,
-0.013365193,
-0.0013295119,
-0.019354483,
-0.0043497235,
0.025218496,
0.033494957,
0.007653746,
-0.033507217,
-0.03213291,
-0.022418406,
0.0067284796,
-0.08024248,
-0.12522098,
0.069272675,
-1.9683093e-33,
-0.012249598,
0.070073105,
-0.016373688,
0.03268669,
-0.0011716175,
0.008970948,
-0.05875696,
0.031790286,
-0.09962546,
-0.011529516,
-0.042214815,
-0.08385974,
0.050325025,
-0.058266874,
-0.01614801,
-0.07460485,
-0.056625802,
0.049216725,
0.09685523,
0.02972927,
-0.010797609,
0.096737646,
-0.008734601,
-0.024298675,
0.054711536,
0.020422578,
-0.0040869303,
-0.041413024,
0.039046016,
-0.027355552,
0.022152912,
0.015635848,
-0.040486902,
-0.046137046,
0.067116976,
-0.050166503,
0.05231306,
0.03977189,
-0.08200705,
0.04208007,
0.06871361,
0.0415384,
0.08255112,
-0.019878006,
0.009672142,
-0.0013818855,
-0.02187854,
-0.03571946,
0.1019913,
-0.040465977,
0.0029030787,
0.071231104,
-0.018016066,
0.022290476,
0.053263694,
-0.05915711,
-0.024596125,
0.042284742,
0.0125378035,
-0.026088756,
-0.007868452,
0.018145658,
0.025348024,
0.048246585,
0.032595333,
-0.04322502,
-0.024803862,
-0.070749104,
-0.07416428,
0.0484724,
-0.05546208,
-0.041756414,
0.12654942,
-0.04357299,
-0.08900543,
0.016302116,
-0.040754095,
0.024944471,
0.041844428,
-0.06273068,
0.0006748941,
-0.05448637,
-0.013658018,
-0.03356399,
-0.0060005034,
0.05786807,
-0.030056076,
-0.12787268,
-0.027650442,
0.083788656,
0.021819875,
-0.040701445,
-0.041838806,
-0.047018126,
0.08002261,
4.734239e-34,
0.02015769,
-0.00014442818,
0.0072734207,
-0.01035945,
0.0436576,
0.060642734,
0.1473969,
-0.023643956,
-0.018900618,
-0.026930645,
0.054844704,
0.029314412,
0.016708935,
-0.009290097,
-0.002891506,
-0.057237446,
-0.0032285063,
0.05497127,
0.048353076,
-0.067556486,
-0.02002941,
-0.013762125,
-0.060434237,
0.075815536,
0.092324585,
0.021875912,
-0.028627641,
0.02281807,
0.04816562,
-0.029499082,
-0.07594795,
0.028744346,
0.045300674,
0.061325517,
-0.017799513,
-0.06497018,
-0.043381255,
-0.012436013,
-0.017595029,
0.038607694,
0.03692832,
-0.06317727,
-0.03189631,
0.0163061,
0.066662505,
-0.01747777,
0.0455436,
0.032373946,
0.019391501,
-0.029496003,
0.026255092,
-0.003917891,
-0.12487856,
-0.012247588,
0.015688721,
-0.044113353,
-0.11468337,
0.040689792,
0.031688645,
-0.027883623,
0.03565975,
-0.029930554,
0.0272684,
-0.0078877555,
0.026264768,
-0.06124056,
-0.06071735,
0.009353228,
-0.09204558,
0.05202069,
-0.042713076,
-0.07342886,
0.004044382,
0.06092453,
-0.003994553,
-0.025158737,
0.02733044,
0.032295305,
-0.03984234,
0.017935337,
-0.028768739,
0.01554963,
-0.073981866,
0.0739418,
0.04965046,
-0.04301918,
-0.035159755,
0.027055329,
-0.03693953,
-0.036715843,
-0.06353325,
0.12646905,
-0.003499326,
0.093309924,
0.00889324,
-1.38464875e-08,
0.0231563,
-0.075574,
-0.040843725,
0.0071973656,
-0.032683276,
0.025759073,
-0.039060622,
-0.070802435,
-0.026421575,
-0.12223953,
-0.01567019,
0.008273527,
0.021523712,
-0.077978514,
0.008511451,
0.038049843,
0.013643623,
-0.12606904,
0.024690265,
-0.049368616,
0.022910642,
0.012570536,
-0.038921557,
-0.0539728,
-0.11401533,
0.0717154,
-0.02019053,
0.09689256,
-0.03522339,
-0.01902355,
0.052379142,
0.015264651,
-0.059212603,
-0.029434869,
0.040918592,
-0.050510794,
0.07031127,
0.010864601,
0.08412114,
-0.034533564,
0.10262946,
-0.060668074,
-0.121650845,
0.033533875,
0.064201616,
0.021554638,
0.059297472,
-0.009686148,
-0.0021906071,
-0.013715586,
0.050112963,
-0.014887802,
-0.010682921,
0.07304227,
-0.034087624,
-0.024696104,
0.0442271,
-0.00089669036,
-0.08143203,
0.06717475,
0.03451422,
-0.0024682316,
0.09635781,
-0.04145595
],
"index": 1,
"object": "embedding"
},
{
"embedding": [
0.045375798,
0.07258055,
-0.08003706,
-0.032656744,
0.0139935585,
0.017206425,
-0.0085616745,
0.019218331,
0.0527245,
-0.017329019,
0.020587556,
0.011539302,
-0.02006116,
-0.0116708,
0.116046146,
-0.010887594,
-0.112962514,
0.07470017,
-0.008835863,
-0.038513727,
0.1079511,
0.05575882,
0.05465468,
0.028420603,
0.012869476,
0.078700624,
-0.07481292,
0.10657601,
0.048312515,
-0.019187614,
0.043496132,
-0.014120566,
0.16143475,
-0.006972843,
0.059548676,
-0.002742684,
-0.06421385,
-0.03753407,
-0.00034186858,
0.103141606,
0.021242032,
-0.035123263,
0.039595246,
0.03465166,
-0.007700848,
-0.016779039,
-0.017973451,
0.03797483,
0.06914695,
-0.06505097,
0.0768558,
-0.063415445,
-0.047812812,
0.081876844,
-0.03468853,
-0.010242799,
-0.04682619,
0.05593955,
-0.037297264,
0.048033547,
0.0084374575,
0.013531666,
0.03961178,
-0.06994999,
0.07862166,
-0.014270066,
0.022243122,
-0.08205504,
-0.06690809,
0.016866608,
-0.005296731,
-0.039822105,
-0.026300494,
0.06192888,
0.003208919,
0.038568772,
-0.03837477,
-0.0075851064,
0.019920006,
-0.056322522,
-0.0022795193,
-0.08178385,
0.13542512,
0.18784039,
-0.016274614,
-0.053139277,
-0.032727182,
0.06850126,
-0.07511497,
0.02570966,
-0.03359296,
-0.0060070264,
-0.0014385056,
-0.0030237471,
-0.07544867,
0.05513981,
-0.015720192,
-0.05642966,
-0.08506004,
0.02179422,
0.038471166,
-0.0283351,
0.015446086,
-0.023619834,
-0.029330725,
0.010942997,
-0.0015495635,
0.04477932,
-0.038915448,
-0.044640813,
-0.035229694,
-0.017752215,
-0.08401524,
-0.044855777,
-0.02621097,
-0.029825464,
-0.008823935,
-0.019113153,
0.06113879,
0.017369257,
-0.018114269,
-0.017956765,
-0.0055642324,
-0.0022192416,
-0.074853644,
-0.098001055,
0.08262387,
-1.7699036e-33,
-0.03260984,
0.088475876,
-0.02405542,
0.043462854,
-0.008397535,
0.020519359,
-0.049513564,
0.018314049,
-0.11363644,
-0.0017021305,
-0.046051882,
-0.07227338,
0.062427472,
-0.063298784,
-0.0043539773,
-0.07343966,
-0.08858381,
0.04477799,
0.04930878,
0.034854405,
0.007476164,
0.046887144,
-0.03770322,
-0.025251219,
0.0446619,
0.03149236,
-0.0053032744,
-0.032395095,
0.050810106,
-0.037147496,
0.053301577,
0.021033086,
-0.031951237,
-0.07252799,
0.052170422,
-0.02576369,
0.026887013,
0.01079958,
-0.073781185,
0.07478704,
0.05142738,
0.013788507,
0.09066831,
-0.011272152,
0.012055797,
0.05094217,
0.01781682,
-0.04303251,
0.10018772,
-0.009778261,
0.031500068,
0.08470662,
0.006889941,
0.0029960799,
0.052113816,
-0.07264866,
-0.028845811,
0.05798962,
0.026194785,
-0.053314455,
-0.013308107,
-0.005074615,
0.039697673,
0.05761601,
0.018443743,
-0.024383908,
-0.04246694,
-0.057976462,
-0.045537386,
0.038462877,
-0.06458701,
-0.021180486,
0.10092568,
-0.0217069,
-0.09957015,
0.023281459,
-0.06976486,
0.03478707,
0.021886345,
-0.07436989,
0.0059652724,
-0.045952816,
0.011156351,
-0.0023965703,
-0.020232527,
0.051849972,
-0.016511427,
-0.14282945,
0.0007839438,
0.05143813,
0.045633797,
-0.047449116,
-0.031150315,
-0.028784428,
0.022110209,
8.540206e-34,
0.035680003,
-0.004454516,
0.0019904706,
-0.03159778,
0.039594337,
0.055580996,
0.11990417,
0.007444201,
0.0014800398,
-0.035671443,
0.054802123,
0.013518193,
0.015369701,
-0.042170182,
0.00910241,
-0.03393552,
-0.011560881,
0.008206326,
0.03244244,
-0.057579078,
0.001215648,
-0.037337195,
-0.09628385,
0.10470648,
0.073387526,
0.034718595,
-0.031235449,
-0.008077066,
0.0532558,
-0.007544639,
-0.06481378,
0.0078824125,
0.059332505,
0.07509864,
-0.023143422,
-0.053352714,
-0.0049984492,
0.020093009,
0.005558518,
0.02055946,
0.040190052,
-0.058405206,
-0.019410733,
0.040003065,
0.043201532,
0.0153706325,
0.038072105,
0.044809878,
0.03211562,
0.02581734,
0.016989984,
-0.031887848,
-0.072636016,
-0.008867823,
0.043845262,
-0.032801606,
-0.10555597,
-0.008874612,
0.037949465,
-0.008839974,
0.0024741436,
-0.005779733,
0.06775476,
-0.016673656,
0.020682104,
-0.02387207,
-0.08558911,
0.008887117,
-0.07502815,
0.034403294,
-0.04082733,
-0.06821772,
-0.018959502,
0.03903044,
0.011770784,
-0.042644627,
0.021807244,
0.069912925,
-0.027863,
0.021612082,
-0.017177302,
0.013199131,
-0.06342314,
0.11476938,
0.055228394,
-0.057914026,
-0.018466951,
0.029547459,
-0.025892112,
-0.061446555,
-0.051833864,
0.12864126,
0.013783986,
0.10842094,
0.025589032,
-1.3291747e-08,
0.04438634,
-0.035043437,
-0.059084963,
0.007846919,
-0.03533786,
0.04078865,
-0.0045822817,
-0.044390634,
-0.017847955,
-0.11152658,
0.019488214,
-0.04202167,
-0.010433255,
-0.09392986,
0.031165348,
0.0037942217,
0.011776091,
-0.11188344,
0.019489327,
-0.059643954,
5.5016415e-05,
0.023693599,
-0.03426268,
-0.067298956,
-0.05988965,
0.09677909,
-0.026113264,
0.11115747,
-0.032836337,
-0.002883786,
0.048552252,
0.027802175,
-0.06964344,
-0.024443185,
0.01612565,
-0.020989701,
0.062907666,
-0.00074260257,
0.067105986,
-0.040433157,
0.077970855,
-0.04189095,
-0.1258856,
0.0058066114,
0.03658347,
-0.015551063,
0.021594083,
-0.008647476,
-0.026618915,
-0.04521969,
0.02759545,
-0.02447648,
-0.016449116,
0.1025887,
-0.016808366,
-0.04455479,
0.023937078,
-0.017120138,
-0.07922125,
0.062927626,
0.038930148,
-0.018900929,
0.09125473,
-0.017347038
],
"index": 2,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 15,
"total_tokens": 15
}
}
},
"is_streaming": false
}
}