=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return a.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,function(e){return O.matches(e,t)}))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach(function(t){s.indexOf(t)<0&&n.push(t)})}return i(n)},has:function(t){return this.filter(function(){return F(t)?i.contains(this,t):i(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter(function(){var t=this;return a.some.call(e,function(e){return i.contains(e,t)})}):1==this.length?i(O.qsa(this[0],t)):this.map(function(){return O.qsa(this,t)}):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each(function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)}),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t});return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||l.call(this.childNodes)})},siblings:function(t){return Z(this.map(function(t,e){return c.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return i.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each(function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each(function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)})},unwrap:function(){return this.parent().each(function(){i(this).replaceWith(i(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each(function(n){this[t]=X(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=X(this,t,e,this.value)})):this[0]&&(this[0].multiple?i(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)}),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each(function(){this.style.removeProperty(B(t))});else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each(function(){this.style.removeProperty(B(n))});return this.each(function(){this.style.cssText+=";"+u})},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,function(t){return this.test(J(t))},K(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach(function(t){i(this).hasClass(t)||s.push(t)},this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach(function(t){s=s.replace(K(t)," ")}),J(this,s.trim())}})},toggleClass:function(t,n){return t?this.each(function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach(function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t})}},i.fn.detach=i.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each(function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))})}}),C.forEach(function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,function(t){var s=[];return"array"==(n=I(t))?(t.forEach(function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))}),s):"object"==n||null==t?t:O.fragment(t)}),u=this.length>1;return a.length<1?this:this.each(function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}}),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach(function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))})}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach(function(e){f(t,e,n,i).forEach(function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))})})}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C});try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,function(t,e){p.on(t,i,a,e,c)}),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each(function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)}))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,function(t,e){a.off(t,i,e)}),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each(function(){w(this,t,s,i)}))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each(function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var i,s;return this.each(function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1})}),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout(function(){n=[]},6e4)),this.parentNode.removeChild(this))})},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))}),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each(function(n,i){t.each(e,function(t,e){a(i,t,e)})}):0 in this?o(this[0],e):void 0:this.each(function(){a(this,e,n)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each(function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,function(t){delete o[n?i(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(i),i}(e)},61348:t=>{"use strict";t.exports={element:null}},68937:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h
{"use strict";var i=n(46573),s=n(92281),r=n(19715);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,function(t,e){i.each(t,function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))})});for(var r=1;r{"use strict";var i=n(90874),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports=n(810)},90874:(t,e,n)=>{"use strict";var i,s,r,o=[n(45741),n(91856),n(41015),n(16486),n(45723),n(26345)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},92281:t=>{t.exports="0.38.1"},99272:t=>{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'',suggestions:'',suggestion:''}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/489.6ea3c11c.js.LICENSE.txt b/docs/v0.3.0/assets/js/489.6ea3c11c.js.LICENSE.txt
new file mode 100644
index 00000000..4f7ccd8a
--- /dev/null
+++ b/docs/v0.3.0/assets/js/489.6ea3c11c.js.LICENSE.txt
@@ -0,0 +1 @@
+/*! https://mths.be/cssesc v3.0.0 by @mathias */
diff --git a/docs/v0.3.0/assets/js/48b56ad7.fb340733.js b/docs/v0.3.0/assets/js/48b56ad7.fb340733.js
new file mode 100644
index 00000000..929e57bc
--- /dev/null
+++ b/docs/v0.3.0/assets/js/48b56ad7.fb340733.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[516],{23423:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>O,frontMatter:()=>h,metadata:()=>o,toc:()=>x});const o=JSON.parse('{"id":"api/get-chat-completion","title":"Get chat completion.","description":"Get chat completion.","source":"@site/docs/api/get-chat-completion.api.mdx","sourceDirName":"api","slug":"/api/get-chat-completion","permalink":"/v0.3.0/docs/api/get-chat-completion","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"get-chat-completion","title":"Get chat completion.","description":"Get chat completion.","sidebar_label":"Get chat completion.","hide_title":true,"hide_table_of_contents":true,"api":"eJztHV1v3DbyrxB8uSSnrN1ei1795sZJzwcnMRIbxSEODK40u2JDkSpJ2V4Y+9h/cb/ufslhSFErrbTeXdtF7Jh5sSNRw5nhfHE4HF9TDaZU0oChe9f0+91d/JGBSTUvLVeS7tF98r4EuX/4ShWlAHz4G7f5oSwr+xaMYVMwI5rQVEkL0uL3rCwFTxkO3fndIJBratIcCoa/2VkJdI+q8e+QWprQUqsStOUeBZ61xhiruZzSZAmjkxzI4QFRE2JzIGnOLEkb5Og8oWmueOrh1ZCY1mxGE8otFGY9FoUnDH9VEt5P6N6ndZ9oJWAI9VRJY+kerQxoR8mEVaLzoE3a28pYMgZy5l6fUWIV4RlIyyczYnNuCDOEEXxJApLzDvN7+NaYzJPVzNiURv92NY0WrmyHxubBMI34egWN+IoEsuaJh7SRZLS/DDLSsGqeUJZlHIczcdwibsKEgYRq+KPiGjK698lPVc/8OaGWW1xhWmtDzuxCI1756Y6ZtidwhT9Z0UeujVjJtCUTpWvleokCzCwfi55AB+TNqL2G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fd2dpicvcyVsZC9FFi68NJg6QJ23XYlvAbSSnM7cx8eBDP16TO+Q8F16Ndr2i59+Ng+A6EJxck9jy6+G0j+oLabjtyztia2Ibv22nVVhjmTZOkfIwZcSA8yKxXHoyes5rI5cKwe0F6U69oCC3rCUjAeKNNwhgcVQmmnp33gY9yaCLgAjckLj9Vb14V4dCbP5IsX//vvn+Tjyf4vR69fvNgjx1plvnbB2ZkZao0hl9zmZMzSL5dMZyRkOHxT/GnFNJMW6nOgUhlbMLk40BuU72V+tv58yh31oRZMTKTtlIJx367cl7Z6+fvk1xOhdDoUo63Z6yrO54SioOE319djZuBUi/kcH/9RgUYJ+5xQZ/HHKE6frrF+HH9fqMBKMp99qJXrOblRBwcJCilViQnVCyYq/B9N6BeY9bR//nme0BxYhjnmT9f1mP00hdK2vu55Y9SXRoF/fX1C5/P/A6HJEVk=","sidebar_class_name":"get api-method","info_path":"docs/api/llama-stack-specification","custom_edit_url":null},"sidebar":"stableApiSidebar","previous":{"title":"Create chat completions.","permalink":"/v0.3.0/docs/api/create-chat-completions"},"next":{"title":"Create completion.","permalink":"/v0.3.0/docs/api/create-completion"}}');var n=i(74848),r=i(28453),s=i(57742),p=i.n(s),a=i(78178),l=i.n(a),c=i(19624),d=i.n(c),m=i(96226),y=i.n(m),g=(i(77675),i(19365),i(51107));const h={id:"get-chat-completion",title:"Get chat completion.",description:"Get chat completion.",sidebar_label:"Get chat completion.",hide_title:!0,hide_table_of_contents:!0,api:"eJztHV1v3DbyrxB8uSSnrN1ei1795sZJzwcnMRIbxSEODK40u2JDkSpJ2V4Y+9h/cb/ufslhSFErrbTeXdtF7Jh5sSNRw5nhfHE4HF9TDaZU0oChe9f0+91d/JGBSTUvLVeS7tF98r4EuX/4ShWlAHz4G7f5oSwr+xaMYVMwI5rQVEkL0uL3rCwFTxkO3fndIJBratIcCoa/2VkJdI+q8e+QWprQUqsStOUeBZ61xhiruZzSZAmjkxzI4QFRE2JzIGnOLEkb5Og8oWmueOrh1ZCY1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VK6rWo1KtH9v+6hAlWzJBPnppX8xfq9d+X+QDM7IReV9pYoEVziuNASSRymV1sqBezb5rWcVuAhyVKirV41Kq3aHZNlAhpyUoamxqkJpDOQHHEdrbVf8KdnmnODqTB27MGAjrbSPHM8KtIYcHI1QL3DCCBW1c9sVvvdt9V93ukONEJbN5v6rsYPE3NLo40PZ6WF1B0tfO5gDEUVVqSH2j63o9C7C5yugenYJTYURgj+5cfLeDk+0sJjM71x2U5zSh3k97slxtIs2tLfd2dpicvcyVsZC9FFi68NJg6QJ23XYlvAbSSnM7cx8eBDP16TO+Q8F16Ndr2i59+Ng+A6EJxck9jy6+G0j+oLabjtyztia2Ibv22nVVhjmTZOkfIwZcSA8yKxXHoyes5rI5cKwe0F6U69oCC3rCUjAeKNNwhgcVQmmnp33gY9yaCLgAjckLj9Vb14V4dCbP5IsX//vvn+Tjyf4vR69fvNgjx1plvnbB2ZkZao0hl9zmZMzSL5dMZyRkOHxT/GnFNJMW6nOgUhlbMLk40BuU72V+tv58yh31oRZMTKTtlIJx367cl7Z6+fvk1xOhdDoUo63Z6yrO54SioOE319djZuBUi/kcH/9RgUYJ+5xQZ/HHKE6frrF+HH9fqMBKMp99qJXrOblRBwcJCilViQnVCyYq/B9N6BeY9bR//nme0BxYhjnmT9f1mP00hdK2vu55Y9SXRoF/fX1C5/P/A6HJEVk=",sidebar_class_name:"get api-method",info_path:"docs/api/llama-stack-specification",custom_edit_url:null},u=void 0,f={},x=[];function b(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.default,{as:"h1",className:"openapi__heading",children:"Get chat completion."}),"\n",(0,n.jsx)(p(),{method:"get",path:"/v1/chat/completions/{completion_id}",context:"endpoint"}),"\n",(0,n.jsx)(t.p,{children:"Get chat completion.\nDescribe a chat completion by its ID."}),"\n",(0,n.jsx)(g.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,n.jsx)(l(),{parameters:[{name:"completion_id",in:"path",description:"ID of the chat completion.",required:!0,schema:{type:"string"}}]}),"\n",(0,n.jsx)(d(),{title:"Body",body:void 0}),"\n",(0,n.jsx)(y(),{id:void 0,label:void 0,responses:{200:{description:"A OpenAICompletionWithInputMessages.",content:{"application/json":{schema:{type:"object",properties:{id:{type:"string",description:"The ID of the chat completion"},choices:{type:"array",items:{type:"object",properties:{message:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},image_url:{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},file:{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}}},title:"OpenAIChatCompletionContentPartParam"}}],description:"The content of the message, which can include text and other media"},name:{type:"string",description:"(Optional) The name of the user message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIUserMessageParam",description:"A message from the user in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"system",default:"system",description:'Must be "system" to identify this as a system message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:'The content of the "system prompt". If multiple system messages are provided, they are concatenated. The underlying Llama Stack code may also add other system messages (for example, for formatting tool definitions).'},name:{type:"string",description:"(Optional) The name of the system message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAISystemMessageParam",description:"A system message providing instructions or context to the model."},{type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the model's response"},name:{type:"string",description:"(Optional) The name of the assistant message participant."},tool_calls:{type:"array",items:{type:"object",properties:{index:{type:"integer",description:"(Optional) Index of the tool call in the list"},id:{type:"string",description:"(Optional) Unique identifier for the tool call"},type:{type:"string",const:"function",default:"function",description:'Must be "function" to identify this as a function call'},function:{description:"(Optional) Function call details",type:"object",properties:{name:{type:"string",description:"(Optional) Name of the function to call"},arguments:{type:"string",description:"(Optional) Arguments to pass to the function as a JSON string"}},additionalProperties:!1,title:"OpenAIChatCompletionToolCallFunction"}},additionalProperties:!1,required:["type"],title:"OpenAIChatCompletionToolCall",description:"Tool call specification for OpenAI-compatible chat completion responses."},description:"List of tool calls. Each tool call is an OpenAIChatCompletionToolCall object."}},additionalProperties:!1,required:["role"],title:"OpenAIAssistantMessageParam",description:"A message containing the model's (assistant) response in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},tool_call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The response content from the tool"}},additionalProperties:!1,required:["role","tool_call_id","content"],title:"OpenAIToolMessageParam",description:"A message representing the result of a tool invocation in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"developer",default:"developer",description:'Must be "developer" to identify this as a developer message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the developer message"},name:{type:"string",description:"(Optional) The name of the developer message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIDeveloperMessageParam",description:"A message from the developer in an OpenAI-compatible chat completion request."}],discriminator:{propertyName:"role",mapping:{user:{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},image_url:{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},file:{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}}},title:"OpenAIChatCompletionContentPartParam"}}],description:"The content of the message, which can include text and other media"},name:{type:"string",description:"(Optional) The name of the user message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIUserMessageParam",description:"A message from the user in an OpenAI-compatible chat completion request."},system:{type:"object",properties:{role:{type:"string",const:"system",default:"system",description:'Must be "system" to identify this as a system message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:'The content of the "system prompt". If multiple system messages are provided, they are concatenated. The underlying Llama Stack code may also add other system messages (for example, for formatting tool definitions).'},name:{type:"string",description:"(Optional) The name of the system message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAISystemMessageParam",description:"A system message providing instructions or context to the model."},assistant:{type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the model's response"},name:{type:"string",description:"(Optional) The name of the assistant message participant."},tool_calls:{type:"array",items:{type:"object",properties:{index:{type:"integer",description:"(Optional) Index of the tool call in the list"},id:{type:"string",description:"(Optional) Unique identifier for the tool call"},type:{type:"string",const:"function",default:"function",description:'Must be "function" to identify this as a function call'},function:{description:"(Optional) Function call details",type:"object",properties:{name:{type:"string",description:"(Optional) Name of the function to call"},arguments:{type:"string",description:"(Optional) Arguments to pass to the function as a JSON string"}},additionalProperties:!1,title:"OpenAIChatCompletionToolCallFunction"}},additionalProperties:!1,required:["type"],title:"OpenAIChatCompletionToolCall",description:"Tool call specification for OpenAI-compatible chat completion responses."},description:"List of tool calls. Each tool call is an OpenAIChatCompletionToolCall object."}},additionalProperties:!1,required:["role"],title:"OpenAIAssistantMessageParam",description:"A message containing the model's (assistant) response in an OpenAI-compatible chat completion request."},tool:{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},tool_call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The response content from the tool"}},additionalProperties:!1,required:["role","tool_call_id","content"],title:"OpenAIToolMessageParam",description:"A message representing the result of a tool invocation in an OpenAI-compatible chat completion request."},developer:{type:"object",properties:{role:{type:"string",const:"developer",default:"developer",description:'Must be "developer" to identify this as a developer message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the developer message"},name:{type:"string",description:"(Optional) The name of the developer message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIDeveloperMessageParam",description:"A message from the developer in an OpenAI-compatible chat completion request."}}},description:"The message from the model"},finish_reason:{type:"string",description:"The reason the model stopped generating"},index:{type:"integer",description:"The index of the choice"},logprobs:{description:"(Optional) The log probabilities for the tokens in the message",type:"object",properties:{content:{type:"array",items:{type:"object",properties:{token:{type:"string"},bytes:{type:"array",items:{type:"integer"}},logprob:{type:"number"},top_logprobs:{type:"array",items:{type:"object",properties:{token:{type:"string"},bytes:{type:"array",items:{type:"integer"}},logprob:{type:"number"}},additionalProperties:!1,required:["token","logprob"],title:"OpenAITopLogProb",description:"The top log probability for a token from an OpenAI-compatible chat completion response."}}},additionalProperties:!1,required:["token","logprob","top_logprobs"],title:"OpenAITokenLogProb",description:"The log probability for a token from an OpenAI-compatible chat completion response."},description:"(Optional) The log probabilities for the tokens in the message"},refusal:{type:"array",items:{type:"object",properties:{token:{type:"string"},bytes:{type:"array",items:{type:"integer"}},logprob:{type:"number"},top_logprobs:{type:"array",items:{type:"object",properties:{token:{type:"string"},bytes:{type:"array",items:{type:"integer"}},logprob:{type:"number"}},additionalProperties:!1,required:["token","logprob"],title:"OpenAITopLogProb",description:"The top log probability for a token from an OpenAI-compatible chat completion response."}}},additionalProperties:!1,required:["token","logprob","top_logprobs"],title:"OpenAITokenLogProb",description:"The log probability for a token from an OpenAI-compatible chat completion response."},description:"(Optional) The log probabilities for the tokens in the message"}},additionalProperties:!1,title:"OpenAIChoiceLogprobs"}},additionalProperties:!1,required:["message","finish_reason","index"],title:"OpenAIChoice",description:"A choice from an OpenAI-compatible chat completion response."},description:"List of choices"},object:{type:"string",const:"chat.completion",default:"chat.completion",description:'The object type, which will be "chat.completion"'},created:{type:"integer",description:"The Unix timestamp in seconds when the chat completion was created"},model:{type:"string",description:"The model that was used to generate the chat completion"},usage:{description:"Token usage information for the completion",type:"object",properties:{prompt_tokens:{type:"integer",description:"Number of tokens in the prompt"},completion_tokens:{type:"integer",description:"Number of tokens in the completion"},total_tokens:{type:"integer",description:"Total tokens used (prompt + completion)"},prompt_tokens_details:{type:"object",properties:{cached_tokens:{type:"integer",description:"Number of tokens retrieved from cache"}},additionalProperties:!1,title:"OpenAIChatCompletionUsagePromptTokensDetails",description:"Token details for prompt tokens in OpenAI chat completion usage."},completion_tokens_details:{type:"object",properties:{reasoning_tokens:{type:"integer",description:"Number of tokens used for reasoning (o1/o3 models)"}},additionalProperties:!1,title:"OpenAIChatCompletionUsageCompletionTokensDetails",description:"Token details for output tokens in OpenAI chat completion usage."}},additionalProperties:!1,required:["prompt_tokens","completion_tokens","total_tokens"],title:"OpenAIChatCompletionUsage"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},image_url:{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},file:{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}}},title:"OpenAIChatCompletionContentPartParam"}}],description:"The content of the message, which can include text and other media"},name:{type:"string",description:"(Optional) The name of the user message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIUserMessageParam",description:"A message from the user in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"system",default:"system",description:'Must be "system" to identify this as a system message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:'The content of the "system prompt". If multiple system messages are provided, they are concatenated. The underlying Llama Stack code may also add other system messages (for example, for formatting tool definitions).'},name:{type:"string",description:"(Optional) The name of the system message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAISystemMessageParam",description:"A system message providing instructions or context to the model."},{type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the model's response"},name:{type:"string",description:"(Optional) The name of the assistant message participant."},tool_calls:{type:"array",items:{type:"object",properties:{index:{type:"integer",description:"(Optional) Index of the tool call in the list"},id:{type:"string",description:"(Optional) Unique identifier for the tool call"},type:{type:"string",const:"function",default:"function",description:'Must be "function" to identify this as a function call'},function:{description:"(Optional) Function call details",type:"object",properties:{name:{type:"string",description:"(Optional) Name of the function to call"},arguments:{type:"string",description:"(Optional) Arguments to pass to the function as a JSON string"}},additionalProperties:!1,title:"OpenAIChatCompletionToolCallFunction"}},additionalProperties:!1,required:["type"],title:"OpenAIChatCompletionToolCall",description:"Tool call specification for OpenAI-compatible chat completion responses."},description:"List of tool calls. Each tool call is an OpenAIChatCompletionToolCall object."}},additionalProperties:!1,required:["role"],title:"OpenAIAssistantMessageParam",description:"A message containing the model's (assistant) response in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},tool_call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The response content from the tool"}},additionalProperties:!1,required:["role","tool_call_id","content"],title:"OpenAIToolMessageParam",description:"A message representing the result of a tool invocation in an OpenAI-compatible chat completion request."},{type:"object",properties:{role:{type:"string",const:"developer",default:"developer",description:'Must be "developer" to identify this as a developer message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the developer message"},name:{type:"string",description:"(Optional) The name of the developer message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIDeveloperMessageParam",description:"A message from the developer in an OpenAI-compatible chat completion request."}],discriminator:{propertyName:"role",mapping:{user:{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{oneOf:[{type:"string"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."},image_url:{type:"object",properties:{type:{type:"string",const:"image_url",default:"image_url",description:'Must be "image_url" to identify this as image content'},image_url:{description:"Image URL specification and processing details",type:"object",properties:{url:{type:"string",description:"URL of the image to include in the message"},detail:{type:"string",description:'(Optional) Level of detail for image processing. Can be "low", "high", or "auto"'}},additionalProperties:!1,required:["url"],title:"OpenAIImageURL"}},additionalProperties:!1,required:["type","image_url"],title:"OpenAIChatCompletionContentPartImageParam",description:"Image content part for OpenAI-compatible chat completion messages."},file:{type:"object",properties:{type:{type:"string",const:"file",default:"file"},file:{type:"object",properties:{file_data:{type:"string"},file_id:{type:"string"},filename:{type:"string"}},additionalProperties:!1,title:"OpenAIFileFile"}},additionalProperties:!1,required:["type","file"],title:"OpenAIFile"}}},title:"OpenAIChatCompletionContentPartParam"}}],description:"The content of the message, which can include text and other media"},name:{type:"string",description:"(Optional) The name of the user message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIUserMessageParam",description:"A message from the user in an OpenAI-compatible chat completion request."},system:{type:"object",properties:{role:{type:"string",const:"system",default:"system",description:'Must be "system" to identify this as a system message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:'The content of the "system prompt". If multiple system messages are provided, they are concatenated. The underlying Llama Stack code may also add other system messages (for example, for formatting tool definitions).'},name:{type:"string",description:"(Optional) The name of the system message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAISystemMessageParam",description:"A system message providing instructions or context to the model."},assistant:{type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the model's response"},name:{type:"string",description:"(Optional) The name of the assistant message participant."},tool_calls:{type:"array",items:{type:"object",properties:{index:{type:"integer",description:"(Optional) Index of the tool call in the list"},id:{type:"string",description:"(Optional) Unique identifier for the tool call"},type:{type:"string",const:"function",default:"function",description:'Must be "function" to identify this as a function call'},function:{description:"(Optional) Function call details",type:"object",properties:{name:{type:"string",description:"(Optional) Name of the function to call"},arguments:{type:"string",description:"(Optional) Arguments to pass to the function as a JSON string"}},additionalProperties:!1,title:"OpenAIChatCompletionToolCallFunction"}},additionalProperties:!1,required:["type"],title:"OpenAIChatCompletionToolCall",description:"Tool call specification for OpenAI-compatible chat completion responses."},description:"List of tool calls. Each tool call is an OpenAIChatCompletionToolCall object."}},additionalProperties:!1,required:["role"],title:"OpenAIAssistantMessageParam",description:"A message containing the model's (assistant) response in an OpenAI-compatible chat completion request."},tool:{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},tool_call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The response content from the tool"}},additionalProperties:!1,required:["role","tool_call_id","content"],title:"OpenAIToolMessageParam",description:"A message representing the result of a tool invocation in an OpenAI-compatible chat completion request."},developer:{type:"object",properties:{role:{type:"string",const:"developer",default:"developer",description:'Must be "developer" to identify this as a developer message'},content:{oneOf:[{type:"string"},{type:"array",items:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Must be "text" to identify this as text content'},text:{type:"string",description:"The text content of the message"}},additionalProperties:!1,required:["type","text"],title:"OpenAIChatCompletionContentPartTextParam",description:"Text content part for OpenAI-compatible chat completion messages."}}],description:"The content of the developer message"},name:{type:"string",description:"(Optional) The name of the developer message participant."}},additionalProperties:!1,required:["role","content"],title:"OpenAIDeveloperMessageParam",description:"A message from the developer in an OpenAI-compatible chat completion request."}}},title:"OpenAIMessageParam"}}},additionalProperties:!1,required:["id","choices","object","created","model","input_messages"],title:"OpenAICompletionWithInputMessages"}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function O(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(b,{...e})}):b(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/48eb09d2.b3ccc6b6.js b/docs/v0.3.0/assets/js/48eb09d2.b3ccc6b6.js
new file mode 100644
index 00000000..14573888
--- /dev/null
+++ b/docs/v0.3.0/assets/js/48eb09d2.b3ccc6b6.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[505],{4865:(e,n,a)=>{a.d(n,{A:()=>u});var t=a(96540),l=a(34164),s=a(23104),r=a(47751),i=a(92303);const o={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var c=a(74848);function d({className:e,block:n,selectedValue:a,selectValue:t,tabValues:r}){const i=[],{blockElementScrollPositionUntilNextRender:d}=(0,s.a_)(),m=e=>{const n=e.currentTarget,l=i.indexOf(n),s=r[l].value;s!==a&&(d(n),t(s))},p=e=>{let n=null;switch(e.key){case"Enter":m(e);break;case"ArrowRight":{const a=i.indexOf(e.currentTarget)+1;n=i[a]??i[0];break}case"ArrowLeft":{const a=i.indexOf(e.currentTarget)-1;n=i[a]??i[i.length-1];break}}n?.focus()};return(0,c.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,l.A)("tabs",{"tabs--block":n},e),children:r.map(({value:e,label:n,attributes:t})=>(0,c.jsx)("li",{role:"tab",tabIndex:a===e?0:-1,"aria-selected":a===e,ref:e=>{i.push(e)},onKeyDown:p,onClick:m,...t,className:(0,l.A)("tabs__item",o.tabItem,t?.className,{"tabs__item--active":a===e}),children:n??e},e))})}function m({lazy:e,children:n,selectedValue:a}){const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){const e=s.find(e=>e.props.value===a);return e?(0,t.cloneElement)(e,{className:(0,l.A)("margin-top--md",e.props.className)}):null}return(0,c.jsx)("div",{className:"margin-top--md",children:s.map((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==a}))})}function p(e){const n=(0,r.u)(e);return(0,c.jsxs)("div",{className:(0,l.A)("tabs-container",o.tabList),children:[(0,c.jsx)(d,{...n,...e}),(0,c.jsx)(m,{...n,...e})]})}function u(e){const n=(0,i.default)();return(0,c.jsx)(p,{...e,children:(0,r.v)(e.children)},String(n))}},74033:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>m,frontMatter:()=>r,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"deploying/kubernetes_deployment","title":"Kubernetes Deployment Guide","description":"Deploy Llama Stack on Kubernetes clusters with vLLM inference service","source":"@site/docs/deploying/kubernetes_deployment.mdx","sourceDirName":"deploying","slug":"/deploying/kubernetes_deployment","permalink":"/v0.3.0/docs/deploying/kubernetes_deployment","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Kubernetes Deployment Guide","description":"Deploy Llama Stack on Kubernetes clusters with vLLM inference service","sidebar_label":"Kubernetes","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Overview","permalink":"/v0.3.0/docs/deploying/"},"next":{"title":"AWS EKS Deployment","permalink":"/v0.3.0/docs/deploying/aws_eks_deployment"}}');var l=a(74848),s=a(28453);a(4865),a(19365);const r={title:"Kubernetes Deployment Guide",description:"Deploy Llama Stack on Kubernetes clusters with vLLM inference service",sidebar_label:"Kubernetes",sidebar_position:2},i="Kubernetes Deployment Guide",o={},c=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Local Kubernetes Setup",id:"local-kubernetes-setup",level:3},{value:"Quick Deployment",id:"quick-deployment",level:2},{value:"Step 1: Create Storage and Secrets",id:"step-1-create-storage-and-secrets",level:3},{value:"Step 2: Deploy vLLM Server",id:"step-2-deploy-vllm-server",level:3},{value:"Step 3: Configure Llama Stack",id:"step-3-configure-llama-stack",level:3},{value:"Step 4: Deploy Llama Stack Server",id:"step-4-deploy-llama-stack-server",level:3},{value:"Step 5: Test Deployment",id:"step-5-test-deployment",level:3},{value:"Troubleshooting",id:"troubleshooting",level:2},{value:"Related Resources",id:"related-resources",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"kubernetes-deployment-guide",children:"Kubernetes Deployment Guide"})}),"\n",(0,l.jsx)(n.p,{children:"Deploy Llama Stack and vLLM servers in a Kubernetes cluster instead of running them locally. This guide covers both local development with Kind and production deployment on AWS EKS."}),"\n",(0,l.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,l.jsx)(n.h3,{id:"local-kubernetes-setup",children:"Local Kubernetes Setup"}),"\n",(0,l.jsx)(n.p,{children:"Create a local Kubernetes cluster via Kind:"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"kind create cluster --image kindest/node:v1.32.0 --name llama-stack-test\n"})}),"\n",(0,l.jsx)(n.p,{children:"Set your Hugging Face token:"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:'export HF_TOKEN=$(echo -n "your-hf-token" | base64)\n'})}),"\n",(0,l.jsx)(n.h2,{id:"quick-deployment",children:"Quick Deployment"}),"\n",(0,l.jsx)(n.h3,{id:"step-1-create-storage-and-secrets",children:"Step 1: Create Storage and Secrets"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-yaml",children:"cat <$tmp_dir/Containerfile.llama-stack-run-k8s <{n.r(r),n.d(r,{assets:()=>l,contentTitle:()=>s,default:()=>a,frontMatter:()=>i,metadata:()=>d,toc:()=>c});const d=JSON.parse('{"id":"providers/inference/remote_runpod","title":"remote::runpod","description":"RunPod inference provider for running models on RunPod\'s cloud GPU platform.","source":"@site/docs/providers/inference/remote_runpod.mdx","sourceDirName":"providers/inference","slug":"/providers/inference/remote_runpod","permalink":"/v0.3.0/docs/providers/inference/remote_runpod","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"RunPod inference provider for running models on RunPod\'s cloud GPU platform.","sidebar_label":"Remote - Runpod","title":"remote::runpod"},"sidebar":"tutorialSidebar","previous":{"title":"Remote - Passthrough","permalink":"/v0.3.0/docs/providers/inference/remote_passthrough"},"next":{"title":"Remote - Sambanova","permalink":"/v0.3.0/docs/providers/inference/remote_sambanova"}}');var o=n(74848),t=n(28453);const i={description:"RunPod inference provider for running models on RunPod's cloud GPU platform.",sidebar_label:"Remote - Runpod",title:"remote::runpod"},s="remote::runpod",l={},c=[{value:"Description",id:"description",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2}];function h(e){const r={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.header,{children:(0,o.jsx)(r.h1,{id:"remoterunpod",children:"remote::runpod"})}),"\n",(0,o.jsx)(r.h2,{id:"description",children:"Description"}),"\n",(0,o.jsx)(r.p,{children:"RunPod inference provider for running models on RunPod's cloud GPU platform."}),"\n",(0,o.jsx)(r.h2,{id:"configuration",children:"Configuration"}),"\n",(0,o.jsxs)(r.table,{children:[(0,o.jsx)(r.thead,{children:(0,o.jsxs)(r.tr,{children:[(0,o.jsx)(r.th,{children:"Field"}),(0,o.jsx)(r.th,{children:"Type"}),(0,o.jsx)(r.th,{children:"Required"}),(0,o.jsx)(r.th,{children:"Default"}),(0,o.jsx)(r.th,{children:"Description"})]})}),(0,o.jsxs)(r.tbody,{children:[(0,o.jsxs)(r.tr,{children:[(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"allowed_models"})}),(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"list[str | None"})}),(0,o.jsx)(r.td,{children:"No"}),(0,o.jsx)(r.td,{}),(0,o.jsx)(r.td,{children:"List of models that should be registered with the model registry. If None, all models are allowed."})]}),(0,o.jsxs)(r.tr,{children:[(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"refresh_models"})}),(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:""})}),(0,o.jsx)(r.td,{children:"No"}),(0,o.jsx)(r.td,{children:"False"}),(0,o.jsx)(r.td,{children:"Whether to refresh models periodically from the provider"})]}),(0,o.jsxs)(r.tr,{children:[(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"api_token"})}),(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"pydantic.types.SecretStr | None"})}),(0,o.jsx)(r.td,{children:"No"}),(0,o.jsx)(r.td,{}),(0,o.jsx)(r.td,{children:"The API token"})]}),(0,o.jsxs)(r.tr,{children:[(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"url"})}),(0,o.jsx)(r.td,{children:(0,o.jsx)(r.code,{children:"str | None"})}),(0,o.jsx)(r.td,{children:"No"}),(0,o.jsx)(r.td,{}),(0,o.jsx)(r.td,{children:"The URL for the Runpod model serving endpoint"})]})]})]}),"\n",(0,o.jsx)(r.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n",(0,o.jsx)(r.pre,{children:(0,o.jsx)(r.code,{className:"language-yaml",children:"url: ${env.RUNPOD_URL:=}\napi_token: ${env.RUNPOD_API_TOKEN}\n"})})]})}function a(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4ad9342d.8b0e7bc5.js b/docs/v0.3.0/assets/js/4ad9342d.8b0e7bc5.js
new file mode 100644
index 00000000..fe8a137a
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4ad9342d.8b0e7bc5.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[92],{60449:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>b,contentTitle:()=>g,default:()=>v,frontMatter:()=>m,metadata:()=>i,toc:()=>y});const i=JSON.parse('{"id":"api/unregister-a-scoring-function","title":"Unregister a scoring function.","description":"Unregister a scoring function.","source":"@site/docs/api/unregister-a-scoring-function.api.mdx","sourceDirName":"api","slug":"/api/unregister-a-scoring-function","permalink":"/v0.3.0/docs/api/unregister-a-scoring-function","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"unregister-a-scoring-function","title":"Unregister a scoring function.","description":"Unregister a scoring function.","sidebar_label":"Unregister a scoring function.","hide_title":true,"hide_table_of_contents":true,"api":"eJztl81OG0kQx1+l1KcEDTaJEiXxjWyINlqiICCHFaCo3F32dNLTPamuMVjWHPct9un2SVY1MwaDyYY9RoILg6e+6//rNivDlOsUM2UzWZnne3v6y1G27GvxKZqJ+fSHaQvz4r5XpyUB0/eGssAlZvBxgcE7SAwVhlniipwpjE1RKIr6Y10Hb1H9x1+zBlmZbEuqUJ9kWZOZmDT9SlZMYWpONbH4vrosKE3esPNRaE5sijtl/X56egS9NdjkSOsXL4E2fLOwj/Mt1wPmxNAZF4CQy8QCuakq5CWkGUhJQJ3NZeltCb5vmj1GgVliwDi87/K0Gl/Qh4dm7q01dUhxTgxlU2HcZUKH00Cw4XOrHM3kYxaM9gFdPvnUPWF4Cvvw+fhwaMZihClBk8mBJGAS9rQgqBIT+Kj77DYHOE2NdMlzTdbPvIVkbcNM0dKdutrCoHO+z3e0sdAZhkyFUf14JmcmZ+sNr7d1PbyL6/31Y/rB8NZahhmnqqth/+jDCI5TMy/DEmYphHSZ4fj9b/Dq9d6rkQ6NrrCqe2Ws9fVib+8m31t0cNxL/KaeByq/bbX7F8/f3E+ODZ6iQIkZsj5ISlBhXK4Da1RAmPsFRcAqNVG62fqKHqF6hOoXg+r5m5t8pynBR1X6QFbeROvP1ECJCwK6skROx6awoRAEX3kZwVEgzATCS8A5+ggBhXg08PbyRzdVJl4QA0WrKBGTU2E1ka5qskJuGO4jWo9o/VJovdy8rz6osiMGOOnVfpN/wGt/W/LrYbgRfGoYhLDqbqUpUYSYxM88uTVejmbYBNlG7L8CP0L1CNWvBdXefdkegFBHiUoN51m7ObFJp/++iVbLzNrG7bI/R6a5z0KsWuvNYTbYjxQAZKxIiDXgykSsuq32ll9m8YtXvrzGqlHKrbno3ffh3XojdzPokpvrEjTfzTKEGyq20RwE1bZdLzWTRVHzYZkVSZmcmRhHgYS6DqQ0EzNePBsP6XfX6fN4dauT1hSmv6j7bhvWiZci9WQ8xrjcLVMWcrshYIW7WdB+G9lUGa0lk23Yy7JzfLc+p84u9J0qt2thWOqh+sOJ+sPJoN9O16Ywmrwf3eLZPdNU3PMt4eMmipuRpUSBmtPCO8rnEe78IGTqvtNTdHXyUTJg7L7veAabuNey03XpMccztJT7oMh0HlWPiTtQt4NP9X+TQAtinK+r+pgchTw6j+dxZ+efv/+Ck9P9t4cHOzsTOOLkmm4l3UGzVGwyXHopYYr22yWyA5uqGsVPffCyhHmDjFGIcgdRnbJU2B3mg0R/quxbk13dXBE/9xyUKHQl4zqgj1pBp5XVoLazfnlbejOFmdxm56IwKip1Wa2mmOkzh7bVj783xKqmi8J0x/tUpXO2Ms5nfb6R/A8beXI8wPQU/i+G97Y4fIhxqTrF0OhfpjDfaLl1JrQXbWFKQkfcVd3b7FtLtWx4b93Giss1w+8ODg9OD0zb/gtpo1oS","sidebar_class_name":"delete api-method","info_path":"docs/api/llama-stack-specification","custom_edit_url":null},"sidebar":"stableApiSidebar","previous":{"title":"Get a scoring function by its ID.","permalink":"/v0.3.0/docs/api/get-a-scoring-function-by-its-id"},"next":{"title":"Shields","permalink":"/v0.3.0/docs/api/shields"}}');var o=r(74848),n=r(28453),s=r(57742),a=r.n(s),c=r(78178),d=r.n(c),l=r(19624),p=r.n(l),u=r(96226),h=r.n(u),f=(r(77675),r(19365),r(51107));const m={id:"unregister-a-scoring-function",title:"Unregister a scoring function.",description:"Unregister a scoring function.",sidebar_label:"Unregister a scoring function.",hide_title:!0,hide_table_of_contents:!0,api:"eJztl81OG0kQx1+l1KcEDTaJEiXxjWyINlqiICCHFaCo3F32dNLTPamuMVjWHPct9un2SVY1MwaDyYY9RoILg6e+6//rNivDlOsUM2UzWZnne3v6y1G27GvxKZqJ+fSHaQvz4r5XpyUB0/eGssAlZvBxgcE7SAwVhlniipwpjE1RKIr6Y10Hb1H9x1+zBlmZbEuqUJ9kWZOZmDT9SlZMYWpONbH4vrosKE3esPNRaE5sijtl/X56egS9NdjkSOsXL4E2fLOwj/Mt1wPmxNAZF4CQy8QCuakq5CWkGUhJQJ3NZeltCb5vmj1GgVliwDi87/K0Gl/Qh4dm7q01dUhxTgxlU2HcZUKH00Cw4XOrHM3kYxaM9gFdPvnUPWF4Cvvw+fhwaMZihClBk8mBJGAS9rQgqBIT+Kj77DYHOE2NdMlzTdbPvIVkbcNM0dKdutrCoHO+z3e0sdAZhkyFUf14JmcmZ+sNr7d1PbyL6/31Y/rB8NZahhmnqqth/+jDCI5TMy/DEmYphHSZ4fj9b/Dq9d6rkQ6NrrCqe2Ws9fVib+8m31t0cNxL/KaeByq/bbX7F8/f3E+ODZ6iQIkZsj5ISlBhXK4Da1RAmPsFRcAqNVG62fqKHqF6hOoXg+r5m5t8pynBR1X6QFbeROvP1ECJCwK6skROx6awoRAEX3kZwVEgzATCS8A5+ggBhXg08PbyRzdVJl4QA0WrKBGTU2E1ka5qskJuGO4jWo9o/VJovdy8rz6osiMGOOnVfpN/wGt/W/LrYbgRfGoYhLDqbqUpUYSYxM88uTVejmbYBNlG7L8CP0L1CNWvBdXefdkegFBHiUoN51m7ObFJp/++iVbLzNrG7bI/R6a5z0KsWuvNYTbYjxQAZKxIiDXgykSsuq32ll9m8YtXvrzGqlHKrbno3ffh3XojdzPokpvrEjTfzTKEGyq20RwE1bZdLzWTRVHzYZkVSZmcmRhHgYS6DqQ0EzNePBsP6XfX6fN4dauT1hSmv6j7bhvWiZci9WQ8xrjcLVMWcrshYIW7WdB+G9lUGa0lk23Yy7JzfLc+p84u9J0qt2thWOqh+sOJ+sPJoN9O16Ywmrwf3eLZPdNU3PMt4eMmipuRpUSBmtPCO8rnEe78IGTqvtNTdHXyUTJg7L7veAabuNey03XpMccztJT7oMh0HlWPiTtQt4NP9X+TQAtinK+r+pgchTw6j+dxZ+efv/+Ck9P9t4cHOzsTOOLkmm4l3UGzVGwyXHopYYr22yWyA5uqGsVPffCyhHmDjFGIcgdRnbJU2B3mg0R/quxbk13dXBE/9xyUKHQl4zqgj1pBp5XVoLazfnlbejOFmdxm56IwKip1Wa2mmOkzh7bVj783xKqmi8J0x/tUpXO2Ms5nfb6R/A8beXI8wPQU/i+G97Y4fIhxqTrF0OhfpjDfaLl1JrQXbWFKQkfcVd3b7FtLtWx4b93Giss1w+8ODg9OD0zb/gtpo1oS",sidebar_class_name:"delete api-method",info_path:"docs/api/llama-stack-specification",custom_edit_url:null},g=void 0,b={},y=[];function q(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.default,{as:"h1",className:"openapi__heading",children:"Unregister a scoring function."}),"\n",(0,o.jsx)(a(),{method:"delete",path:"/v1/scoring-functions/{scoring_fn_id}",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Unregister a scoring function."}),"\n",(0,o.jsx)(f.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(d(),{parameters:[{name:"scoring_fn_id",in:"path",description:"The ID of the scoring function to unregister.",required:!0,schema:{type:"string"}}]}),"\n",(0,o.jsx)(p(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(h(),{id:void 0,label:void 0,responses:{200:{description:"OK"},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function v(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(q,{...e})}):q(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4af09d86.3b9a2a0e.js b/docs/v0.3.0/assets/js/4af09d86.3b9a2a0e.js
new file mode 100644
index 00000000..ac8032a5
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4af09d86.3b9a2a0e.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[3873],{13309:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>y,contentTitle:()=>g,default:()=>R,frontMatter:()=>h,metadata:()=>o,toc:()=>b});const o=JSON.parse('{"id":"api-experimental/run-preference-optimization-of-a-model","title":"Run preference optimization of a model.","description":"Run preference optimization of a model.","source":"@site/docs/api-experimental/run-preference-optimization-of-a-model.api.mdx","sourceDirName":"api-experimental","slug":"/api-experimental/run-preference-optimization-of-a-model","permalink":"/v0.3.0/docs/api-experimental/run-preference-optimization-of-a-model","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"run-preference-optimization-of-a-model","title":"Run preference optimization of a model.","description":"Run preference optimization of a model.","sidebar_label":"Run preference optimization of a model.","hide_title":true,"hide_table_of_contents":true,"api":"eJztWllv3MgR/isFPsnGSBo5u9nsvGklOXFgWwMd2AS2MKghi2TbZDfdx0izwvyWPAbIr8tPCKqb15ySDOXBgPSgETjddX91UfeRJlMpachEo/vozXDIHwmZWIvKCiWjUXQMY2XslUYhhcz+rqYH0SCKlbQkLZ/GqipEjHz68IvhK/eRiXMqkf+y84qiUaSmXyi20SCqtKpIWxEYflHTiXMi6Z00VguZRYvFIMIkEUwWi3HvVoqFoUGk6ZsTmpJo9KkjczOIrLAF01kROlosmORPmzS8ygmYHBkLt2hAyBkWIgGlocQiVbqk5Pl0NhatM71zQlrKSEeDFbH+dnU1hnAaYpVQtGi1W7XW6tUzrZUGf3gACCZX2oJxZYl6DioFmxOQP3ObizgHEZTWAqWFVGlAWX/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ok1p+atoxEHd1mgmmS+soI4R9v6atXO96mM+WOc7jaMQ43dXnDbe3Rgy1LLe7u3qGN8u2lvD6yXmQbxZMmGXG52p3dNyTDhd+vp8rnxRq37xkMcMlggMt6Dx46pn04u6tIC96BYcFbaC5PjK6QrmZHG1Z//CrBLC3V2/UvP+xzszlaqLSaiYTMZwkrPwg8oasUSCbe0sY3nTYnwflRhz2535lwV65TjMkEoqjps+Rdt9L+JcA68Sn/30NBM9KYNVJ9YLiag8/ys3z9+r//+vd/4Owf47OLdx/OPl4dv3/9egRjTfuawstbNgfs1alpALMjBvKrwL/kMSNHmVGzpppSHDbnxnKI+FLF6axEv9CWWNKT9udLZu/ty59Aoo4kS3f2sCpQ+NHHp8z7OvN+imr1oiBsm3t9T7+efW8GEWdYvnh/P0VD17pYLPjxN0d6Hjb9/jXTlEPvE1fAnDAh7bPuV5pHo+gkqLJ/FSaeGRbOg3n1NQBX1HDjOI6psjvP3vSKy/j88oozWP2qge0RjSKNPL3y71EUhQTDw8zoPjy7jwqUmeMZYRQFmvzzP9pa5pI=","sidebar_class_name":"post api-method","info_path":"docs/api-experimental/llama-stack-specification-experimental-apis","custom_edit_url":null},"sidebar":"experimentalApiSidebar","previous":{"title":"Get all training jobs.","permalink":"/v0.3.0/docs/api-experimental/get-all-training-jobs"},"next":{"title":"Run supervised fine-tuning of a model.","permalink":"/v0.3.0/docs/api-experimental/run-supervised-fine-tuning-of-a-model"}}');var r=i(74848),n=i(28453),a=i(57742),p=i.n(a),s=i(78178),d=i.n(s),l=i(19624),c=i.n(l),u=i(96226),m=i.n(u),f=(i(77675),i(19365),i(51107));const h={id:"run-preference-optimization-of-a-model",title:"Run preference optimization of a model.",description:"Run preference optimization of a model.",sidebar_label:"Run preference optimization of a model.",hide_title:!0,hide_table_of_contents:!0,api:"eJztWllv3MgR/isFPsnGSBo5u9nsvGklOXFgWwMd2AS2MKghi2TbZDfdx0izwvyWPAbIr8tPCKqb15ySDOXBgPSgETjddX91UfeRJlMpachEo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9B7Uki5vFpqGyUwWCKqsjlp9Vs2yp3P5gOgb51xT7rnfi60uLDauH9al2R8ys2rf/1r3d+zRFp3nr6NdJnYBWO/KqV5pitPyoVqIkm6skGkWV8i8rK7R5NIoOZ0dYVDke8uP9RtrDbtG039RJ7j/81th4RzrNy67c2mp0eIhyvp8rYynZLwoscd9YjL8exKqMFjd8L3Za2Lm/eNqkhU83/B2vnS66BdVZt2zrFkxdTllbFHVfbdr7hGXNcGnL0u4/Nu8cuk3BcMucf/TARH60bVg+Wp9je6NLp0l/OBz2xjp27sok1p+atoxEHd1mgmmS+soI4R9v6atXO96mM+WOc7jaMQ43dXnDbe3Rgy1LLe7u3qGN8u2lvD6yXmQbxZMmGXG52p3dNyTDhd+vp8rnxRq37xkMcMlggMt6Dx46pn04u6tIC96BYcFbaC5PjK6QrmZHG1Z//CrBLC3V2/UvP+xzszlaqLSaiYTMZwkrPwg8oasUSCbe0sY3nTYnwflRhz2535lwV65TjMkEoqjps+Rdt9L+JcA68Sn/30NBM9KYNVJ9YLiag8/ys3z9+r//+vd/4Owf47OLdx/OPl4dv3/9egRjTfuawstbNgfs1alpALMjBvKrwL/kMSNHmVGzpppSHDbnxnKI+FLF6axEv9CWWNKT9udLZu/ty59Aoo4kS3f2sCpQ+NHHp8z7OvN+imr1oiBsm3t9T7+efW8GEWdYvnh/P0VD17pYLPjxN0d6Hjb9/jXTlEPvE1fAnDAh7bPuV5pHo+gkqLJ/FSaeGRbOg3n1NQBX1HDjOI6psjvP3vSKy/j88oozWP2qge0RjSKNPL3y71EUhQTDw8zoPjy7jwqUmeMZYRQFmvzzP9pa5pI=",sidebar_class_name:"post api-method",info_path:"docs/api-experimental/llama-stack-specification-experimental-apis",custom_edit_url:null},g=void 0,y={},b=[];function P(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.default,{as:"h1",className:"openapi__heading",children:"Run preference optimization of a model."}),"\n",(0,r.jsx)(p(),{method:"post",path:"/v1alpha/post-training/preference-optimize",context:"endpoint"}),"\n",(0,r.jsx)(t.p,{children:"Run preference optimization of a model."}),"\n",(0,r.jsx)(f.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,r.jsx)(d(),{parameters:[]}),"\n",(0,r.jsx)(c(),{title:"Body",body:{content:{"application/json":{schema:{type:"object",properties:{job_uuid:{type:"string",description:"The UUID of the job to create."},finetuned_model:{type:"string",description:"The model to fine-tune."},algorithm_config:{description:"The algorithm configuration.",type:"object",properties:{beta:{type:"number",description:"Temperature parameter for the DPO loss"},loss_type:{default:"sigmoid",description:"The type of loss function to use for DPO",type:"string",enum:["sigmoid","hinge","ipo","kto_pair"],title:"DPOLossType"}},additionalProperties:!1,required:["beta","loss_type"],title:"DPOAlignmentConfig"},training_config:{description:"The training configuration.",type:"object",properties:{n_epochs:{type:"integer",description:"Number of training epochs to run"},max_steps_per_epoch:{type:"integer",default:1,description:"Maximum number of steps to run per epoch"},gradient_accumulation_steps:{type:"integer",default:1,description:"Number of steps to accumulate gradients before updating"},max_validation_steps:{type:"integer",default:1,description:"(Optional) Maximum number of validation steps per epoch"},data_config:{description:"(Optional) Configuration for data loading and formatting",type:"object",properties:{dataset_id:{type:"string",description:"Unique identifier for the training dataset"},batch_size:{type:"integer",description:"Number of samples per training batch"},shuffle:{type:"boolean",description:"Whether to shuffle the dataset during training"},data_format:{description:"Format of the dataset (instruct or dialog)",type:"string",enum:["instruct","dialog"],title:"DatasetFormat"},validation_dataset_id:{type:"string",description:"(Optional) Unique identifier for the validation dataset"},packed:{type:"boolean",default:!1,description:"(Optional) Whether to pack multiple samples into a single sequence for efficiency"},train_on_input:{type:"boolean",default:!1,description:"(Optional) Whether to compute loss on input tokens as well as output tokens"}},additionalProperties:!1,required:["dataset_id","batch_size","shuffle","data_format"],title:"DataConfig"},optimizer_config:{description:"(Optional) Configuration for the optimization algorithm",type:"object",properties:{optimizer_type:{description:"Type of optimizer to use (adam, adamw, or sgd)",type:"string",enum:["adam","adamw","sgd"],title:"OptimizerType"},lr:{type:"number",description:"Learning rate for the optimizer"},weight_decay:{type:"number",description:"Weight decay coefficient for regularization"},num_warmup_steps:{type:"integer",description:"Number of steps for learning rate warmup"}},additionalProperties:!1,required:["optimizer_type","lr","weight_decay","num_warmup_steps"],title:"OptimizerConfig"},efficiency_config:{description:"(Optional) Configuration for memory and compute optimizations",type:"object",properties:{enable_activation_checkpointing:{type:"boolean",default:!1,description:"(Optional) Whether to use activation checkpointing to reduce memory usage"},enable_activation_offloading:{type:"boolean",default:!1,description:"(Optional) Whether to offload activations to CPU to save GPU memory"},memory_efficient_fsdp_wrap:{type:"boolean",default:!1,description:"(Optional) Whether to use memory-efficient FSDP wrapping"},fsdp_cpu_offload:{type:"boolean",default:!1,description:"(Optional) Whether to offload FSDP parameters to CPU"}},additionalProperties:!1,title:"EfficiencyConfig"},dtype:{type:"string",default:"bf16",description:"(Optional) Data type for model parameters (bf16, fp16, fp32)"}},additionalProperties:!1,required:["n_epochs","max_steps_per_epoch","gradient_accumulation_steps"],title:"TrainingConfig"},hyperparam_search_config:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The hyperparam search configuration."},logger_config:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The logger configuration."}},additionalProperties:!1,required:["job_uuid","finetuned_model","algorithm_config","training_config","hyperparam_search_config","logger_config"],title:"PreferenceOptimizeRequest"}}},required:!0}}),"\n",(0,r.jsx)(m(),{id:void 0,label:void 0,responses:{200:{description:"A PostTrainingJob.",content:{"application/json":{schema:{type:"object",properties:{job_uuid:{type:"string"}},additionalProperties:!1,required:["job_uuid"],title:"PostTrainingJob"}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function R(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(P,{...e})}):P(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4c228be1.2fb9bea8.js b/docs/v0.3.0/assets/js/4c228be1.2fb9bea8.js
new file mode 100644
index 00000000..8038894d
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4c228be1.2fb9bea8.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[3820],{27712:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>a,contentTitle:()=>l,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"distributions/customizing_run_yaml","title":"Customizing run.yaml","description":"Customizing run.yaml files for Llama Stack templates","source":"@site/docs/distributions/customizing_run_yaml.mdx","sourceDirName":"distributions","slug":"/distributions/customizing_run_yaml","permalink":"/v0.3.0/docs/distributions/customizing_run_yaml","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"Customizing run.yaml","description":"Customizing run.yaml files for Llama Stack templates","sidebar_label":"Customizing run.yaml","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Build your own Distribution","permalink":"/v0.3.0/docs/distributions/building_distro"},"next":{"title":"Importing as Library","permalink":"/v0.3.0/docs/distributions/importing_as_library"}}');var t=n(74848),r=n(28453);const o={title:"Customizing run.yaml",description:"Customizing run.yaml files for Llama Stack templates",sidebar_label:"Customizing run.yaml",sidebar_position:4},l="Customizing run.yaml Files",a={},d=[{value:"Key Points",id:"key-points",level:2},{value:"What You Can Customize",id:"what-you-can-customize",level:2},{value:"Best Practices",id:"best-practices",level:2}];function c(e){const i={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"customizing-runyaml-files",children:"Customizing run.yaml Files"})}),"\n",(0,t.jsxs)(i.p,{children:["The ",(0,t.jsx)(i.code,{children:"run.yaml"})," files generated by Llama Stack templates are ",(0,t.jsx)(i.strong,{children:"starting points"})," designed to be customized for your specific needs. They are not meant to be used as-is in production environments."]}),"\n",(0,t.jsx)(i.h2,{id:"key-points",children:"Key Points"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Templates are starting points"}),": Generated ",(0,t.jsx)(i.code,{children:"run.yaml"})," files contain defaults for development/testing"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Customization expected"}),": Update URLs, credentials, models, and settings for your environment"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Version control separately"}),": Keep customized configs in your own repository"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Environment-specific"}),": Create different configurations for dev, staging, production"]}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"what-you-can-customize",children:"What You Can Customize"}),"\n",(0,t.jsx)(i.p,{children:"You can customize:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Provider endpoints"}),": Change ",(0,t.jsx)(i.code,{children:"http://localhost:8000"})," to your actual servers"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Swap providers"}),": Replace default providers (e.g., swap Tavily with Brave for search)"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Storage paths"}),": Move from ",(0,t.jsx)(i.code,{children:"/tmp/"})," to production directories"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Authentication"}),": Add API keys, SSL, timeouts"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Models"}),": Different model sizes for dev vs prod"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Database settings"}),": Switch from SQLite to PostgreSQL"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Tool configurations"}),": Add custom tools and integrations"]}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"best-practices",children:"Best Practices"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Use environment variables for secrets and environment-specific values"}),"\n",(0,t.jsxs)(i.li,{children:["Create separate ",(0,t.jsx)(i.code,{children:"run.yaml"})," files for different environments (dev, staging, prod)"]}),"\n",(0,t.jsx)(i.li,{children:"Document your changes with comments"}),"\n",(0,t.jsx)(i.li,{children:"Test configurations before deployment"}),"\n",(0,t.jsx)(i.li,{children:"Keep your customized configs in version control"}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"Example structure:"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{children:"your-project/\n\u251c\u2500\u2500 configs/\n\u2502 \u251c\u2500\u2500 dev-run.yaml\n\u2502 \u251c\u2500\u2500 prod-run.yaml\n\u2514\u2500\u2500 README.md\n"})}),"\n",(0,t.jsx)(i.p,{children:"The goal is to take the generated template and adapt it to your specific infrastructure and operational needs."})]})}function u(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4c4b56f2.ccd30d78.js b/docs/v0.3.0/assets/js/4c4b56f2.ccd30d78.js
new file mode 100644
index 00000000..bfd45674
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4c4b56f2.ccd30d78.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[8399],{4087:(t,e,i)=>{i.r(e),i.d(e,{assets:()=>f,contentTitle:()=>h,default:()=>R,frontMatter:()=>u,metadata:()=>o,toc:()=>b});const o=JSON.parse('{"id":"api-experimental/create-a-new-turn-for-an-agent","title":"Create a new turn for an agent.","description":"Create a new turn for an agent.","source":"@site/docs/api-experimental/create-a-new-turn-for-an-agent.api.mdx","sourceDirName":"api-experimental","slug":"/api-experimental/create-a-new-turn-for-an-agent","permalink":"/v0.3.0/docs/api-experimental/create-a-new-turn-for-an-agent","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"create-a-new-turn-for-an-agent","title":"Create a new turn for an agent.","description":"Create a new turn for an agent.","sidebar_label":"Create a new turn for an agent.","hide_title":true,"hide_table_of_contents":true,"api":"eJztne1yIzeWpm8FwT8908GiPRMzOzu1OxuhLpe9tSG1KyS1ZzdsBw1mQmJOJTOzAaRUDIeuZX9uxF7dXsLGwVciPyiSJbqdTL3+4xKTROLzwcF7gINfZ1KoqiyUULO3v87+8euv6X+pUInMKp2Vxezt7MMdU1oKvvm3b3muxJxJoWtZKMbZbS0LVq7+QyR6wZrv3co6/lrBbm7eM/EgCu2+wco7dnEvCk0JXLsc3JhH79Z18Wkxm8+SstCi0JQfXlV5lnDKz1f/oShTv85UshYbTv/S20rM3s5sNmbzWSXLSkid2SJRHpZZGn1RaZkV97N5p5h/KbK/1oJlqSh0dpcJye5KyfRaMEqCPWZ6nRWMMyWUol88zWfuny9MPimLByGVKV6celZUtV5uhFL83pXFvoFLybez+SzTYmM+Lwvx/d3s7Y/76kKWuRjKaVIWSs/ezmolpMn4Ha/z1gdxSa5qpdlKsJ/M459mTJe+WFum15linPoGPWQu91ScqD3b6d3aOqCH1C+oStzP5uxxnSVrlvCCZUWS16lgWnzWjBcpK/XavCDN+GzerwJXuKf54dVjn+6unmxDRYnrp/kkLtA3Gf21yQquqYm3lfDl8sWklluwi/yRbxX7ySbz08w0uklxb6+uZd6vyAv2l+tL/yqTECslS7nm5kFWmAd3pdxwU9P05K353le/0uue/suKK/Gf/mn+Kz15WrA/l1owveba/D4p6zxla/4gWC6Ke71mebbJtKLBui+32f4BQt2AXmMfs6rMCk3/0KXJthSqr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+rPJmA==","sidebar_class_name":"post api-method","info_path":"docs/api-experimental/llama-stack-specification-experimental-apis","custom_edit_url":null},"sidebar":"experimentalApiSidebar","previous":{"title":"Delete an agent session by its ID and its associated turns.","permalink":"/v0.3.0/docs/api-experimental/delete-an-agent-session-by-its-id-and-its-associated-turns"},"next":{"title":"Retrieve an agent turn by its ID.","permalink":"/v0.3.0/docs/api-experimental/retrieve-an-agent-turn-by-its-id"}}');var r=i(74848),n=i(28453),a=i(57742),s=i.n(a),p=i(78178),d=i.n(p),c=i(19624),m=i.n(c),l=i(96226),g=i.n(l),y=(i(77675),i(19365),i(51107));const u={id:"create-a-new-turn-for-an-agent",title:"Create a new turn for an agent.",description:"Create a new turn for an agent.",sidebar_label:"Create a new turn for an agent.",hide_title:!0,hide_table_of_contents:!0,api:"eJztne1yIzeWpm8FwT8908GiPRMzOzu1OxuhLpe9tSG1KyS1ZzdsBw1mQmJOJTOzAaRUDIeuZX9uxF7dXsLGwVciPyiSJbqdTL3+4xKTROLzwcF7gINfZ1KoqiyUULO3v87+8euv6X+pUInMKp2Vxezt7MMdU1oKvvm3b3muxJxJoWtZKMbZbS0LVq7+QyR6wZrv3co6/lrBbm7eM/EgCu2+wco7dnEvCk0JXLsc3JhH79Z18Wkxm8+SstCi0JQfXlV5lnDKz1f/oShTv85UshYbTv/S20rM3s5sNmbzWSXLSkid2SJRHpZZGn1RaZkV97N5p5h/KbK/1oJlqSh0dpcJye5KyfRaMEqCPWZ6nRWMMyWUol88zWfuny9MPimLByGVKV6celZUtV5uhFL83pXFvoFLybez+SzTYmM+Lwvx/d3s7Y/76kKWuRjKaVIWSs/ezmolpMn4Ha/z1gdxSa5qpdlKsJ/M459mTJe+WFum15linPoGPWQu91ScqD3b6d3aOqCH1C+oStzP5uxxnSVrlvCCZUWS16lgWnzWjBcpK/XavCDN+GzerwJXuKf54dVjn+6unmxDRYnrp/kkLtA3Gf21yQquqYm3lfDl8sWklluwi/yRbxX7ySbz08w0uklxb6+uZd6vyAv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CTUfWbDVlrwVMhTa3aLzgh5c2t1Wx8Ar1rS6iQ9hcXSSIq/ex3f46mlI/f39zO5rOVuxqFjMzZ25nkj2QV8Ueb2dJUlD2BS5/9Ost5cV8bvddSy9xl8/8B+rPJmA==",sidebar_class_name:"post api-method",info_path:"docs/api-experimental/llama-stack-specification-experimental-apis",custom_edit_url:null},h=void 0,f={},b=[];function x(t){const e={p:"p",...(0,n.R)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.default,{as:"h1",className:"openapi__heading",children:"Create a new turn for an agent."}),"\n",(0,r.jsx)(s(),{method:"post",path:"/v1alpha/agents/{agent_id}/session/{session_id}/turn",context:"endpoint"}),"\n",(0,r.jsx)(e.p,{children:"Create a new turn for an agent."}),"\n",(0,r.jsx)(y.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,r.jsx)(d(),{parameters:[{name:"agent_id",in:"path",description:"The ID of the agent to create the turn for.",required:!0,schema:{type:"string"}},{name:"session_id",in:"path",description:"The ID of the session to create the turn for.",required:!0,schema:{type:"string"}}]}),"\n",(0,r.jsx)(m(),{title:"Body",body:{content:{"application/json":{schema:{type:"object",properties:{messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages to start the turn with."},stream:{type:"boolean",description:"(Optional) If True, generate an SSE event stream of the response. Defaults to False."},documents:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the document."},mime_type:{type:"string",description:"The MIME type of the document."}},additionalProperties:!1,required:["content","mime_type"],title:"Document",description:"A document to be used by an agent."},description:"(Optional) List of documents to create the turn with."},toolgroups:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},args:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]}}},additionalProperties:!1,required:["name","args"],title:"AgentToolGroupWithArgs"}],title:"AgentTool"},description:"(Optional) List of toolgroups to create the turn with, will be used in addition to the agent's config toolgroups for the request."},tool_config:{type:"object",properties:{tool_choice:{oneOf:[{type:"string",enum:["auto","required","none"],title:"ToolChoice",description:"Whether tool use is required or automatic. This is a hint to the model which may not be followed. It depends on the Instruction Following capabilities of the model."},{type:"string"}],default:"auto",description:"(Optional) Whether tool use is automatic, required, or none. Can also specify a tool name to use a specific tool. Defaults to ToolChoice.auto."},tool_prompt_format:{type:"string",enum:["json","function_tag","python_list"],description:"(Optional) Instructs the model how to format tool calls. By default, Llama Stack will attempt to use a format that is best adapted to the model. - `ToolPromptFormat.json`: The tool calls are formatted as a JSON object. - `ToolPromptFormat.function_tag`: The tool calls are enclosed in a tag. - `ToolPromptFormat.python_list`: The tool calls are output as Python syntax -- a list of function calls."},system_message_behavior:{type:"string",enum:["append","replace"],description:"(Optional) Config for how to override the default system prompt. - `SystemMessageBehavior.append`: Appends the provided system message to the default system prompt. - `SystemMessageBehavior.replace`: Replaces the default system prompt with the provided system message. The system message can include the string '{{function_definitions}}' to indicate where the function definitions should be inserted.",default:"append"}},additionalProperties:!1,title:"ToolConfig",description:"Configuration for tool use."}},additionalProperties:!1,required:["messages"],title:"CreateAgentTurnRequest"}}},required:!0}}),"\n",(0,r.jsx)(g(),{id:void 0,label:void 0,responses:{200:{description:"If stream=False, returns a Turn object. If stream=True, returns an SSE event stream of AgentTurnResponseStreamChunk.",content:{"application/json":{schema:{type:"object",properties:{turn_id:{type:"string",description:"Unique identifier for the turn within a session"},session_id:{type:"string",description:"Unique identifier for the conversation session"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages that initiated this turn"},steps:{type:"array",items:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}}},description:"Ordered list of processing steps executed during this turn"},output_message:{description:"The model's generated response containing content and metadata",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"},output_attachments:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the attachment."},mime_type:{type:"string",description:"The MIME type of the attachment."}},additionalProperties:!1,required:["content","mime_type"],title:"Attachment",description:"An attachment to an agent turn."},description:"(Optional) Files or media attached to the agent's response"},started_at:{type:"string",format:"date-time",description:"Timestamp when the turn began"},completed_at:{type:"string",format:"date-time",description:"(Optional) Timestamp when the turn finished, if completed"}},additionalProperties:!1,required:["turn_id","session_id","input_messages","steps","output_message","started_at"],title:"Turn",description:"A single turn in an interaction with an Agentic System."}},"text/event-stream":{schema:{type:"object",properties:{event:{description:"Individual event in the agent turn response stream",type:"object",properties:{payload:{oneOf:[{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_start",default:"step_start",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata for the step"}},additionalProperties:!1,required:["event_type","step_type","step_id"],title:"AgentTurnResponseStepStartPayload",description:"Payload for step start events in agent turn responses."},{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_progress",default:"step_progress",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},delta:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the delta. Always "text"'},text:{type:"string",description:"The incremental text content"}},additionalProperties:!1,required:["type","text"],title:"TextDelta",description:"A text content delta for streaming responses."},{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the delta. Always "image"'},image:{type:"string",contentEncoding:"base64",description:"The incremental image data as bytes"}},additionalProperties:!1,required:["type","image"],title:"ImageDelta",description:"An image content delta for streaming responses."},{type:"object",properties:{type:{type:"string",const:"tool_call",default:"tool_call",description:'Discriminator type of the delta. Always "tool_call"'},tool_call:{oneOf:[{type:"string"},{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"}],description:"Either an in-progress tool call string or the final parsed tool call"},parse_status:{type:"string",enum:["started","in_progress","failed","succeeded"],description:"Current parsing status of the tool call"}},additionalProperties:!1,required:["type","tool_call","parse_status"],title:"ToolCallDelta",description:"A tool call content delta for streaming responses."}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the delta. Always "text"'},text:{type:"string",description:"The incremental text content"}},additionalProperties:!1,required:["type","text"],title:"TextDelta",description:"A text content delta for streaming responses."},image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the delta. Always "image"'},image:{type:"string",contentEncoding:"base64",description:"The incremental image data as bytes"}},additionalProperties:!1,required:["type","image"],title:"ImageDelta",description:"An image content delta for streaming responses."},tool_call:{type:"object",properties:{type:{type:"string",const:"tool_call",default:"tool_call",description:'Discriminator type of the delta. Always "tool_call"'},tool_call:{oneOf:[{type:"string"},{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"}],description:"Either an in-progress tool call string or the final parsed tool call"},parse_status:{type:"string",enum:["started","in_progress","failed","succeeded"],description:"Current parsing status of the tool call"}},additionalProperties:!1,required:["type","tool_call","parse_status"],title:"ToolCallDelta",description:"A tool call content delta for streaming responses."}}},description:"Incremental content changes during step execution"}},additionalProperties:!1,required:["event_type","step_type","step_id","delta"],title:"AgentTurnResponseStepProgressPayload",description:"Payload for step progress events in agent turn responses."},{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_complete",default:"step_complete",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},step_details:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}},description:"Complete details of the executed step"}},additionalProperties:!1,required:["event_type","step_type","step_id","step_details"],title:"AgentTurnResponseStepCompletePayload",description:"Payload for step completion events in agent turn responses."},{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_start",default:"turn_start",description:"Type of event being reported"},turn_id:{type:"string",description:"Unique identifier for the turn within a session"}},additionalProperties:!1,required:["event_type","turn_id"],title:"AgentTurnResponseTurnStartPayload",description:"Payload for turn start events in agent turn responses."},{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_complete",default:"turn_complete",description:"Type of event being reported"},turn:{type:"object",properties:{turn_id:{type:"string",description:"Unique identifier for the turn within a session"},session_id:{type:"string",description:"Unique identifier for the conversation session"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages that initiated this turn"},steps:{type:"array",items:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}}},description:"Ordered list of processing steps executed during this turn"},output_message:{description:"The model's generated response containing content and metadata",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"},output_attachments:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the attachment."},mime_type:{type:"string",description:"The MIME type of the attachment."}},additionalProperties:!1,required:["content","mime_type"],title:"Attachment",description:"An attachment to an agent turn."},description:"(Optional) Files or media attached to the agent's response"},started_at:{type:"string",format:"date-time",description:"Timestamp when the turn began"},completed_at:{type:"string",format:"date-time",description:"(Optional) Timestamp when the turn finished, if completed"}},additionalProperties:!1,required:["turn_id","session_id","input_messages","steps","output_message","started_at"],title:"Turn",description:"A single turn in an interaction with an Agentic System."}},additionalProperties:!1,required:["event_type","turn"],title:"AgentTurnResponseTurnCompletePayload",description:"Payload for turn completion events in agent turn responses."},{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_awaiting_input",default:"turn_awaiting_input",description:"Type of event being reported"},turn:{type:"object",properties:{turn_id:{type:"string",description:"Unique identifier for the turn within a session"},session_id:{type:"string",description:"Unique identifier for the conversation session"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages that initiated this turn"},steps:{type:"array",items:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}}},description:"Ordered list of processing steps executed during this turn"},output_message:{description:"The model's generated response containing content and metadata",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"},output_attachments:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the attachment."},mime_type:{type:"string",description:"The MIME type of the attachment."}},additionalProperties:!1,required:["content","mime_type"],title:"Attachment",description:"An attachment to an agent turn."},description:"(Optional) Files or media attached to the agent's response"},started_at:{type:"string",format:"date-time",description:"Timestamp when the turn began"},completed_at:{type:"string",format:"date-time",description:"(Optional) Timestamp when the turn finished, if completed"}},additionalProperties:!1,required:["turn_id","session_id","input_messages","steps","output_message","started_at"],title:"Turn",description:"A single turn in an interaction with an Agentic System."}},additionalProperties:!1,required:["event_type","turn"],title:"AgentTurnResponseTurnAwaitingInputPayload",description:"Payload for turn awaiting input events in agent turn responses."}],discriminator:{propertyName:"event_type",mapping:{step_start:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_start",default:"step_start",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata for the step"}},additionalProperties:!1,required:["event_type","step_type","step_id"],title:"AgentTurnResponseStepStartPayload",description:"Payload for step start events in agent turn responses."},step_progress:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_progress",default:"step_progress",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},delta:{oneOf:[{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the delta. Always "text"'},text:{type:"string",description:"The incremental text content"}},additionalProperties:!1,required:["type","text"],title:"TextDelta",description:"A text content delta for streaming responses."},{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the delta. Always "image"'},image:{type:"string",contentEncoding:"base64",description:"The incremental image data as bytes"}},additionalProperties:!1,required:["type","image"],title:"ImageDelta",description:"An image content delta for streaming responses."},{type:"object",properties:{type:{type:"string",const:"tool_call",default:"tool_call",description:'Discriminator type of the delta. Always "tool_call"'},tool_call:{oneOf:[{type:"string"},{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"}],description:"Either an in-progress tool call string or the final parsed tool call"},parse_status:{type:"string",enum:["started","in_progress","failed","succeeded"],description:"Current parsing status of the tool call"}},additionalProperties:!1,required:["type","tool_call","parse_status"],title:"ToolCallDelta",description:"A tool call content delta for streaming responses."}],discriminator:{propertyName:"type",mapping:{text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the delta. Always "text"'},text:{type:"string",description:"The incremental text content"}},additionalProperties:!1,required:["type","text"],title:"TextDelta",description:"A text content delta for streaming responses."},image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the delta. Always "image"'},image:{type:"string",contentEncoding:"base64",description:"The incremental image data as bytes"}},additionalProperties:!1,required:["type","image"],title:"ImageDelta",description:"An image content delta for streaming responses."},tool_call:{type:"object",properties:{type:{type:"string",const:"tool_call",default:"tool_call",description:'Discriminator type of the delta. Always "tool_call"'},tool_call:{oneOf:[{type:"string"},{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"}],description:"Either an in-progress tool call string or the final parsed tool call"},parse_status:{type:"string",enum:["started","in_progress","failed","succeeded"],description:"Current parsing status of the tool call"}},additionalProperties:!1,required:["type","tool_call","parse_status"],title:"ToolCallDelta",description:"A tool call content delta for streaming responses."}}},description:"Incremental content changes during step execution"}},additionalProperties:!1,required:["event_type","step_type","step_id","delta"],title:"AgentTurnResponseStepProgressPayload",description:"Payload for step progress events in agent turn responses."},step_complete:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"step_complete",default:"step_complete",description:"Type of event being reported"},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],description:"Type of step being executed"},step_id:{type:"string",description:"Unique identifier for the step within a turn"},step_details:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}},description:"Complete details of the executed step"}},additionalProperties:!1,required:["event_type","step_type","step_id","step_details"],title:"AgentTurnResponseStepCompletePayload",description:"Payload for step completion events in agent turn responses."},turn_start:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_start",default:"turn_start",description:"Type of event being reported"},turn_id:{type:"string",description:"Unique identifier for the turn within a session"}},additionalProperties:!1,required:["event_type","turn_id"],title:"AgentTurnResponseTurnStartPayload",description:"Payload for turn start events in agent turn responses."},turn_complete:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_complete",default:"turn_complete",description:"Type of event being reported"},turn:{type:"object",properties:{turn_id:{type:"string",description:"Unique identifier for the turn within a session"},session_id:{type:"string",description:"Unique identifier for the conversation session"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages that initiated this turn"},steps:{type:"array",items:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}}},description:"Ordered list of processing steps executed during this turn"},output_message:{description:"The model's generated response containing content and metadata",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"},output_attachments:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the attachment."},mime_type:{type:"string",description:"The MIME type of the attachment."}},additionalProperties:!1,required:["content","mime_type"],title:"Attachment",description:"An attachment to an agent turn."},description:"(Optional) Files or media attached to the agent's response"},started_at:{type:"string",format:"date-time",description:"Timestamp when the turn began"},completed_at:{type:"string",format:"date-time",description:"(Optional) Timestamp when the turn finished, if completed"}},additionalProperties:!1,required:["turn_id","session_id","input_messages","steps","output_message","started_at"],title:"Turn",description:"A single turn in an interaction with an Agentic System."}},additionalProperties:!1,required:["event_type","turn"],title:"AgentTurnResponseTurnCompletePayload",description:"Payload for turn completion events in agent turn responses."},turn_awaiting_input:{type:"object",properties:{event_type:{type:"string",enum:["step_start","step_complete","step_progress","turn_start","turn_complete","turn_awaiting_input"],const:"turn_awaiting_input",default:"turn_awaiting_input",description:"Type of event being reported"},turn:{type:"object",properties:{turn_id:{type:"string",description:"Unique identifier for the turn within a session"},session_id:{type:"string",description:"Unique identifier for the conversation session"},input_messages:{type:"array",items:{oneOf:[{type:"object",properties:{role:{type:"string",const:"user",default:"user",description:'Must be "user" to identify this as a user message'},content:{description:"The content of the message, which can include text and other media",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},context:{description:"(Optional) This field is used internally by Llama Stack to pass RAG context. This field may be removed in the API in the future.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","content"],title:"UserMessage",description:"A message from the user in a chat conversation."},{type:"object",properties:{role:{type:"string",const:"tool",default:"tool",description:'Must be "tool" to identify this as a tool response'},call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["role","call_id","content"],title:"ToolResponseMessage",description:"A message representing the result of a tool invocation."}]},description:"List of messages that initiated this turn"},steps:{type:"array",items:{oneOf:[{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}],discriminator:{propertyName:"step_type",mapping:{inference:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"inference",default:"inference"},model_response:{description:"The response from the LLM.",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"}},additionalProperties:!1,required:["turn_id","step_id","step_type","model_response"],title:"InferenceStep",description:"An inference step in an agent turn."},tool_execution:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"tool_execution",default:"tool_execution"},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"The tool calls to execute."},tool_responses:{type:"array",items:{type:"object",properties:{call_id:{type:"string",description:"Unique identifier for the tool call this response is for"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}],description:"Name of the tool that was invoked"},content:{description:"The response content from the tool",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool response"}},additionalProperties:!1,required:["call_id","tool_name","content"],title:"ToolResponse",description:"Response from a tool invocation."},description:"The tool responses from the tool calls."}},additionalProperties:!1,required:["turn_id","step_id","step_type","tool_calls","tool_responses"],title:"ToolExecutionStep",description:"A tool execution step in an agent turn."},shield_call:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"shield_call",default:"shield_call"},violation:{description:"The violation from the shield call.",type:"object",properties:{violation_level:{description:"Severity level of the violation",type:"string",enum:["info","warn","error"],title:"ViolationLevel"},user_message:{type:"string",description:"(Optional) Message to convey to the user about the violation"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"Additional metadata including specific violation codes for debugging and telemetry"}},additionalProperties:!1,required:["violation_level","metadata"],title:"SafetyViolation"}},additionalProperties:!1,required:["turn_id","step_id","step_type"],title:"ShieldCallStep",description:"A shield call step in an agent turn."},memory_retrieval:{type:"object",properties:{turn_id:{type:"string",description:"The ID of the turn."},step_id:{type:"string",description:"The ID of the step."},started_at:{type:"string",format:"date-time",description:"The time the step started."},completed_at:{type:"string",format:"date-time",description:"The time the step completed."},step_type:{type:"string",enum:["inference","tool_execution","shield_call","memory_retrieval"],title:"StepType",description:"Type of the step in an agent turn.",const:"memory_retrieval",default:"memory_retrieval"},vector_db_ids:{type:"string",description:"The IDs of the vector databases to retrieve context from."},inserted_context:{description:"The context retrieved from the vector databases.",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"}},additionalProperties:!1,required:["turn_id","step_id","step_type","vector_db_ids","inserted_context"],title:"MemoryRetrievalStep",description:"A memory retrieval step in an agent turn."}}}},description:"Ordered list of processing steps executed during this turn"},output_message:{description:"The model's generated response containing content and metadata",type:"object",properties:{role:{type:"string",const:"assistant",default:"assistant",description:'Must be "assistant" to identify this as the model\'s response'},content:{description:"The content of the model's response",oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}}],title:"InterleavedContent"},stop_reason:{type:"string",enum:["end_of_turn","end_of_message","out_of_tokens"],description:"Reason why the model stopped generating. Options are: - `StopReason.end_of_turn`: The model finished generating the entire response. - `StopReason.end_of_message`: The model finished generating but generated a partial response -- usually, a tool call. The user may call the tool and continue the conversation with the tool's response. - `StopReason.out_of_tokens`: The model ran out of token budget."},tool_calls:{type:"array",items:{type:"object",properties:{call_id:{type:"string"},tool_name:{oneOf:[{type:"string",enum:["brave_search","wolfram_alpha","photogen","code_interpreter"],title:"BuiltinTool"},{type:"string"}]},arguments:{type:"string"}},additionalProperties:!1,required:["call_id","tool_name","arguments"],title:"ToolCall"},description:"List of tool calls. Each tool call is a ToolCall object."}},additionalProperties:!1,required:["role","content","stop_reason"],title:"CompletionMessage"},output_attachments:{type:"array",items:{type:"object",properties:{content:{oneOf:[{type:"string"},{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"},{type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}],discriminator:{propertyName:"type",mapping:{image:{type:"object",properties:{type:{type:"string",const:"image",default:"image",description:'Discriminator type of the content item. Always "image"'},image:{type:"object",properties:{url:{description:"A URL of the image or data URL in the format of data:image/{type};base64,{data}. Note that URL could have length limits.",type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL"},data:{type:"string",contentEncoding:"base64",description:"base64 encoded image data as string"}},additionalProperties:!1,description:"Image as a base64 encoded string or an URL"}},additionalProperties:!1,required:["type","image"],title:"ImageContentItem",description:"A image content item"},text:{type:"object",properties:{type:{type:"string",const:"text",default:"text",description:'Discriminator type of the content item. Always "text"'},text:{type:"string",description:"Text content"}},additionalProperties:!1,required:["type","text"],title:"TextContentItem",description:"A text content item"}}},title:"InterleavedContentItem"}},{type:"object",properties:{uri:{type:"string",description:"The URL string pointing to the resource"}},additionalProperties:!1,required:["uri"],title:"URL",description:"A URL reference to external content."}],description:"The content of the attachment."},mime_type:{type:"string",description:"The MIME type of the attachment."}},additionalProperties:!1,required:["content","mime_type"],title:"Attachment",description:"An attachment to an agent turn."},description:"(Optional) Files or media attached to the agent's response"},started_at:{type:"string",format:"date-time",description:"Timestamp when the turn began"},completed_at:{type:"string",format:"date-time",description:"(Optional) Timestamp when the turn finished, if completed"}},additionalProperties:!1,required:["turn_id","session_id","input_messages","steps","output_message","started_at"],title:"Turn",description:"A single turn in an interaction with an Agentic System."}},additionalProperties:!1,required:["event_type","turn"],title:"AgentTurnResponseTurnAwaitingInputPayload",description:"Payload for turn awaiting input events in agent turn responses."}}},description:"Event-specific payload containing event data"}},additionalProperties:!1,required:["payload"],title:"AgentTurnResponseEvent"}},additionalProperties:!1,required:["event"],title:"AgentTurnResponseStreamChunk",description:"Streamed agent turn completion response."}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function R(t={}){const{wrapper:e}={...(0,n.R)(),...t.components};return e?(0,r.jsx)(e,{...t,children:(0,r.jsx)(x,{...t})}):x(t)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4c5e977b.95146213.js b/docs/v0.3.0/assets/js/4c5e977b.95146213.js
new file mode 100644
index 00000000..76a3402b
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4c5e977b.95146213.js
@@ -0,0 +1 @@
+(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[6473],{16403:()=>{},20217:()=>{},42634:()=>{},49730:()=>{},50477:()=>{},96452:()=>{}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4c8bb3d0.fcdda793.js b/docs/v0.3.0/assets/js/4c8bb3d0.fcdda793.js
new file mode 100644
index 00000000..9e2ab6b9
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4c8bb3d0.fcdda793.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[7659],{93432:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"providers/safety/index","title":"Safety","description":"Safety\\nOpenAI-compatible Moderations API.","source":"@site/docs/providers/safety/index.mdx","sourceDirName":"providers/safety","slug":"/providers/safety/","permalink":"/v0.3.0/docs/providers/safety/","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"Safety\\nOpenAI-compatible Moderations API.","sidebar_label":"Safety","title":"Safety"},"sidebar":"tutorialSidebar","previous":{"title":"Remote - Watsonx","permalink":"/v0.3.0/docs/providers/inference/remote_watsonx"},"next":{"title":"Code-Scanner","permalink":"/v0.3.0/docs/providers/safety/inline_code-scanner"}}');var n=s(74848),a=s(28453);const i={description:"Safety\nOpenAI-compatible Moderations API.",sidebar_label:"Safety",title:"Safety"},o="Safety",d={},c=[{value:"Overview",id:"overview",level:2}];function l(e){const t={h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"safety",children:"Safety"})}),"\n",(0,n.jsx)(t.h2,{id:"overview",children:"Overview"}),"\n",(0,n.jsx)(t.p,{children:"Safety"}),"\n",(0,n.jsx)(t.p,{children:"OpenAI-compatible Moderations API."}),"\n",(0,n.jsxs)(t.p,{children:["This section contains documentation for all available providers for the ",(0,n.jsx)(t.strong,{children:"safety"})," API."]})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4d5470e2.c38682bc.js b/docs/v0.3.0/assets/js/4d5470e2.c38682bc.js
new file mode 100644
index 00000000..b634fd21
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4d5470e2.c38682bc.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[1872],{4865:(e,n,s)=>{s.d(n,{A:()=>u});var t=s(96540),i=s(34164),a=s(23104),r=s(47751),l=s(92303);const o={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var c=s(74848);function d({className:e,block:n,selectedValue:s,selectValue:t,tabValues:r}){const l=[],{blockElementScrollPositionUntilNextRender:d}=(0,a.a_)(),h=e=>{const n=e.currentTarget,i=l.indexOf(n),a=r[i].value;a!==s&&(d(n),t(a))},p=e=>{let n=null;switch(e.key){case"Enter":h(e);break;case"ArrowRight":{const s=l.indexOf(e.currentTarget)+1;n=l[s]??l[0];break}case"ArrowLeft":{const s=l.indexOf(e.currentTarget)-1;n=l[s]??l[l.length-1];break}}n?.focus()};return(0,c.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},e),children:r.map(({value:e,label:n,attributes:t})=>(0,c.jsx)("li",{role:"tab",tabIndex:s===e?0:-1,"aria-selected":s===e,ref:e=>{l.push(e)},onKeyDown:p,onClick:h,...t,className:(0,i.A)("tabs__item",o.tabItem,t?.className,{"tabs__item--active":s===e}),children:n??e},e))})}function h({lazy:e,children:n,selectedValue:s}){const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){const e=a.find(e=>e.props.value===s);return e?(0,t.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,c.jsx)("div",{className:"margin-top--md",children:a.map((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==s}))})}function p(e){const n=(0,r.u)(e);return(0,c.jsxs)("div",{className:(0,i.A)("tabs-container",o.tabList),children:[(0,c.jsx)(d,{...n,...e}),(0,c.jsx)(h,{...n,...e})]})}function u(e){const n=(0,l.default)();return(0,c.jsx)(p,{...e,children:(0,r.v)(e.children)},String(n))}},23183:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>o,metadata:()=>t,toc:()=>h});const t=JSON.parse('{"id":"building_applications/agent","title":"Agents","description":"Build powerful AI applications with the Llama Stack agent framework","source":"@site/docs/building_applications/agent.mdx","sourceDirName":"building_applications","slug":"/building_applications/agent","permalink":"/v0.3.0/docs/building_applications/agent","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Agents","description":"Build powerful AI applications with the Llama Stack agent framework","sidebar_label":"Agents","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"RAG (Retrieval Augmented Generation)","permalink":"/v0.3.0/docs/building_applications/rag"},"next":{"title":"Agent Execution Loop","permalink":"/v0.3.0/docs/building_applications/agent_execution_loop"}}');var i=s(74848),a=s(28453),r=s(4865),l=s(19365);const o={title:"Agents",description:"Build powerful AI applications with the Llama Stack agent framework",sidebar_label:"Agents",sidebar_position:3},c="Agents",d={},h=[{value:"Core Concepts",id:"core-concepts",level:2},{value:"1. Agent Configuration",id:"1-agent-configuration",level:3},{value:"2. Sessions",id:"2-sessions",level:3},{value:"3. Turns",id:"3-turns",level:3},{value:"4. Steps",id:"4-steps",level:3},{value:"Agent Execution Loop",id:"agent-execution-loop",level:2},{value:"Related Resources",id:"related-resources",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"agents",children:"Agents"})}),"\n",(0,i.jsx)(n.p,{children:"An Agent in Llama Stack is a powerful abstraction that allows you to build complex AI applications."}),"\n",(0,i.jsx)(n.p,{children:"The Llama Stack agent framework is built on a modular architecture that allows for flexible and powerful AI applications. This document explains the key components and how they work together."}),"\n",(0,i.jsx)(n.h2,{id:"core-concepts",children:"Core Concepts"}),"\n",(0,i.jsx)(n.h3,{id:"1-agent-configuration",children:"1. Agent Configuration"}),"\n",(0,i.jsxs)(n.p,{children:["Agents are configured using the ",(0,i.jsx)(n.code,{children:"AgentConfig"})," class, which includes:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Model"}),": The underlying LLM to power the agent"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Instructions"}),": System prompt that defines the agent's behavior"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Tools"}),": Capabilities the agent can use to interact with external systems"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Safety Shields"}),": Guardrails to ensure responsible AI behavior"]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'from llama_stack_client import Agent\n\n# Create the agent\nagent = Agent(\n llama_stack_client,\n model="meta-llama/Llama-3-70b-chat",\n instructions="You are a helpful assistant that can use tools to answer questions.",\n tools=["builtin::code_interpreter", "builtin::rag/knowledge_search"],\n)\n'})}),"\n",(0,i.jsx)(n.h3,{id:"2-sessions",children:"2. Sessions"}),"\n",(0,i.jsx)(n.p,{children:"Agents maintain state through sessions, which represent a conversation thread:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Create a session\nsession_id = agent.create_session(session_name="My conversation")\n'})}),"\n",(0,i.jsx)(n.h3,{id:"3-turns",children:"3. Turns"}),"\n",(0,i.jsx)(n.p,{children:'Each interaction with an agent is called a "turn" and consists of:'}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Input Messages"}),": What the user sends to the agent"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Steps"}),": The agent's internal processing (inference, tool execution, etc.)"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Output Message"}),": The agent's response"]}),"\n"]}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.default,{value:"streaming",label:"Streaming Response",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'from llama_stack_client import AgentEventLogger\n\n# Create a turn with streaming response\nturn_response = agent.create_turn(\n session_id=session_id,\n messages=[{"role": "user", "content": "Tell me about Llama models"}],\n)\nfor log in AgentEventLogger().log(turn_response):\n log.print()\n'})})}),(0,i.jsx)(l.default,{value:"non-streaming",label:"Non-Streaming Response",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'from rich.pretty import pprint\n\n# Non-streaming API\nresponse = agent.create_turn(\n session_id=session_id,\n messages=[{"role": "user", "content": "Tell me about Llama models"}],\n stream=False,\n)\nprint("Inputs:")\npprint(response.input_messages)\nprint("Output:")\npprint(response.output_message.content)\nprint("Steps:")\npprint(response.steps)\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"4-steps",children:"4. Steps"}),"\n",(0,i.jsx)(n.p,{children:"Each turn consists of multiple steps that represent the agent's thought process:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Inference Steps"}),": The agent generating text responses"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Tool Execution Steps"}),": The agent using tools to gather information"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Shield Call Steps"}),": Safety checks being performed"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"agent-execution-loop",children:"Agent Execution Loop"}),"\n",(0,i.jsxs)(n.p,{children:["Refer to the ",(0,i.jsx)(n.a,{href:"./agent_execution_loop",children:"Agent Execution Loop"})," for more details on what happens within an agent turn."]}),"\n",(0,i.jsx)(n.h2,{id:"related-resources",children:"Related Resources"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.a,{href:"./agent_execution_loop",children:"Agent Execution Loop"})})," - Understanding the internal processing flow"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.a,{href:"./rag",children:"RAG (Retrieval Augmented Generation)"})})," - Building knowledge-enhanced agents"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.a,{href:"./tools",children:"Tools Integration"})})," - Extending agent capabilities with external tools"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.a,{href:"./safety",children:"Safety Guardrails"})})," - Implementing responsible AI practices"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4d63c894.5dd2cb13.js b/docs/v0.3.0/assets/js/4d63c894.5dd2cb13.js
new file mode 100644
index 00000000..72acd219
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4d63c894.5dd2cb13.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[2968],{3553:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>d,default:()=>p,frontMatter:()=>o,metadata:()=>i,toc:()=>u});const i=JSON.parse('{"id":"api/safety","title":"Safety","description":"Safety","source":"@site/docs/api/safety.tag.mdx","sourceDirName":"api","slug":"/api/safety","permalink":"/v0.3.0/docs/api/safety","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"safety","title":"Safety","description":"Safety","custom_edit_url":null},"sidebar":"stableApiSidebar","previous":{"title":"Get provider.","permalink":"/v0.3.0/docs/api/get-provider"},"next":{"title":"Create moderation.","permalink":"/v0.3.0/docs/api/create-moderation"}}');var r=s(74848),a=s(28453),n=s(14795),c=s(83262);const o={id:"safety",title:"Safety",description:"Safety",custom_edit_url:null},d=void 0,l={},u=[];function m(e){const t={p:"p",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.p,{children:"OpenAI-compatible Moderations API."}),"\n","\n",(0,r.jsx)(n.A,{items:(0,c.useCurrentSidebarCategory)().items})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},14795:(e,t,s)=>{s.d(t,{A:()=>g});s(96540);var i=s(34164),r=s(26972),a=s(28774),n=s(53465),c=s(16654),o=s(21312),d=s(51107);const l={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=s(74848);function m({className:e,href:t,children:s}){return(0,u.jsx)(a.default,{href:t,className:(0,i.A)("card padding--lg",l.cardContainer,e),children:s})}function p({className:e,href:t,icon:s,title:r,description:a}){return(0,u.jsxs)(m,{href:t,className:e,children:[(0,u.jsxs)(d.default,{as:"h2",className:(0,i.A)("text--truncate",l.cardTitle),title:r,children:[s," ",r]}),a&&(0,u.jsx)("p",{className:(0,i.A)("text--truncate",l.cardDescription),title:a,children:a})]})}function f({item:e}){const t=(0,r.Nr)(e),s=function(){const{selectMessage:e}=(0,n.W)();return t=>e(t,(0,o.translate)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t}))}();return t?(0,u.jsx)(p,{className:e.className,href:t,icon:"\ud83d\uddc3\ufe0f",title:e.label,description:e.description??s(e.items.length)}):null}function h({item:e}){const t=(0,c.A)(e.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",s=(0,r.cC)(e.docId??void 0);return(0,u.jsx)(p,{className:e.className,href:e.href,icon:t,title:e.label,description:e.description??s?.description})}function x({item:e}){switch(e.type){case"link":return(0,u.jsx)(h,{item:e});case"category":return(0,u.jsx)(f,{item:e});default:throw new Error(`unknown item type ${JSON.stringify(e)}`)}}const y={docCardListItem:"docCardListItem_W1sv"};function j({className:e}){const t=(0,r.a4)();return(0,u.jsx)(g,{items:t,className:e})}function N({item:e}){return(0,u.jsx)("article",{className:(0,i.A)(y.docCardListItem,"col col--6"),children:(0,u.jsx)(x,{item:e})})}function g(e){const{items:t,className:s}=e;if(!t)return(0,u.jsx)(j,{...e});const a=(0,r.d1)(t);return(0,u.jsx)("section",{className:(0,i.A)("row",s),children:a.map((e,t)=>(0,u.jsx)(N,{item:e},t))})}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4d8bfb2f.96486d5e.js b/docs/v0.3.0/assets/js/4d8bfb2f.96486d5e.js
new file mode 100644
index 00000000..9073a827
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4d8bfb2f.96486d5e.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[2805],{82840:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>v,contentTitle:()=>m,default:()=>M,frontMatter:()=>b,metadata:()=>i,toc:()=>y});const i=JSON.parse('{"id":"api/retrieve-a-vector-store-file-batch","title":"Retrieve a vector store file batch.","description":"Retrieve a vector store file batch.","source":"@site/docs/api/retrieve-a-vector-store-file-batch.api.mdx","sourceDirName":"api","slug":"/api/retrieve-a-vector-store-file-batch","permalink":"/v0.3.0/docs/api/retrieve-a-vector-store-file-batch","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"retrieve-a-vector-store-file-batch","title":"Retrieve a vector store file batch.","description":"Retrieve a vector store file batch.","sidebar_label":"Retrieve a vector store file batch.","hide_title":true,"hide_table_of_contents":true,"api":"eJztWM1u2zgQfpUBT22g2GnRolvf0r/dAO0mSNIFFkkQjKmxxZYiVZJyYhg67lvs0+2TLIaSbNlyGqfopUByiW2RM9/MfN9QnIVw5AtrPHkxWojnBwf8LyUvnSqCskaMxCH8RTJYdxasow9K0xsMMjsefyEZwFHhyJMJykwhZAQTpQnGvGIgEiGtCWQCG8Wi0EoiGx1+8Wx5IbzMKEf+FOYFiZGw0apIROFsQS6oGpdKO2t8cMpMRbIB87NR30oClTKYiSIHE+s2IIkqaV1stTfBUgcxErMY8LXniAe8/brevumzSQIb6jhOAPUNzj1c3mXoUjAS6QgDpdfYRaNMoCm5nqtzlZMPmBdwk5HZiAtu0ENjji133V7vkryjd2An0Wi9FeJW4PKhMv3ashMfMJS+z5e3pXNkAhTOSvKeN9dLWxcdM4mwho4nYnTRRyit8VwMafNCUx3Z3auUuS6cnTry/rvrJBpJWt9jbYIqLrlKRFBB85oNEZzV0VeJiGWVtjRhSzJ46ZZM1MuXDG2T8X0VrBJxP13+LPMxOc44w/MQMgyQ4YxgTGTAl5IRTUqt5y28mjqr/Pywk5RjUq4bdjfrbXJ/0H69G4Jt7bPJbvUfblfWjNVzGBOjXUtIsAH1LgLldWA2TCvTU5WoqkRgmireiPqk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/+Bs/PDNx/f7+2N4MTZtJQcSOyBc1a0hxsVMhij/HqDLgWe42BQY6VVmMO0RIcmEPmo78L6kGM8Zxr+7ia+tfQuVkfYjtsbmga6DcNCozKMJbJm0bDxoi7jGh9FIkZ9eXUpySuWHeAqEcw7trVYjNHTZ6erin/+VpJjwl0lIh5OY2bXxUKkyvPnlVDuDPPJaSPBp7BrM9kac/MjmjkHi7rkbyIRX2nebWbcX34CuN07zA+A3axMdVUlIiNMycXk1qsOpaQidPb3XnlY+MsG9fv7c1FV/wN81S0+","sidebar_class_name":"get api-method","info_path":"docs/api/llama-stack-specification","custom_edit_url":null},"sidebar":"stableApiSidebar","previous":{"title":"Create a vector store file batch.","permalink":"/v0.3.0/docs/api/create-a-vector-store-file-batch"},"next":{"title":"Cancels a vector store file batch.","permalink":"/v0.3.0/docs/api/cancels-a-vector-store-file-batch"}}');var o=r(74848),a=r(28453),s=r(57742),n=r.n(s),c=r(78178),l=r.n(c),p=r(19624),d=r.n(p),h=r(96226),u=r.n(h),f=(r(77675),r(19365),r(51107));const b={id:"retrieve-a-vector-store-file-batch",title:"Retrieve a vector store file batch.",description:"Retrieve a vector store file batch.",sidebar_label:"Retrieve a vector store file batch.",hide_title:!0,hide_table_of_contents:!0,api:"eJztWM1u2zgQfpUBT22g2GnRolvf0r/dAO0mSNIFFkkQjKmxxZYiVZJyYhg67lvs0+2TLIaSbNlyGqfopUByiW2RM9/MfN9QnIVw5AtrPHkxWojnBwf8LyUvnSqCskaMxCH8RTJYdxasow9K0xsMMjsefyEZwFHhyJMJykwhZAQTpQnGvGIgEiGtCWQCG8Wi0EoiGx1+8Wx5IbzMKEf+FOYFiZGw0apIROFsQS6oGpdKO2t8cMpMRbIB87NR30oClTKYiSIHE+s2IIkqaV1stTfBUgcxErMY8LXniAe8/brevumzSQIb6jhOAPUNzj1c3mXoUjAS6QgDpdfYRaNMoCm5nqtzlZMPmBdwk5HZiAtu0ENjji133V7vkryjd2An0Wi9FeJW4PKhMv3ashMfM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UjGQd0LalyCplNxUhMKfYRxjYSw9mzYRe9Hy42gqmGq0kiP26TXfH1O3bVuhalYzJkIRSj4RDNfD+zPlC6rzXmuO8Dyq8DafM45fIkS6fCPG5817bQiyt+xqKKUTV8+8j74Yz3w1kjrSi5OBBwvs7q7NmWRHMn8muaxG6X6FqOw57C2ZlKyV8a2PhD8BSvG2TSwiqepqFpJ0/SulpmKVeOO7CboGwnSOjoksuqrYs9pG98zNcmTTNyOG1RfbIpaT+4NJdmb++/f/+Bs/PDNx/f7+2N4MTZtJQcSOyBc1a0hxsVMhij/HqDLgWe42BQY6VVmMO0RIcmEPmo78L6kGM8Zxr+7ia+tfQuVkfYjtsbmga6DcNCozKMJbJm0bDxoi7jGh9FIkZ9eXUpySuWHeAqEcw7trVYjNHTZ6erin/+VpJjwl0lIh5OY2bXxUKkyvPnlVDuDPPJaSPBp7BrM9kac/MjmjkHi7rkbyIRX2nebWbcX34CuN07zA+A3axMdVUlIiNMycXk1qsOpaQidPb3XnlY+MsG9fv7c1FV/wN81S0+",sidebar_class_name:"get api-method",info_path:"docs/api/llama-stack-specification",custom_edit_url:null},m=void 0,v={},y=[];function j(e){const t={p:"p",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.default,{as:"h1",className:"openapi__heading",children:"Retrieve a vector store file batch."}),"\n",(0,o.jsx)(n(),{method:"get",path:"/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Retrieve a vector store file batch."}),"\n",(0,o.jsx)(f.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,o.jsx)(l(),{parameters:[{name:"batch_id",in:"path",description:"The ID of the file batch to retrieve.",required:!0,schema:{type:"string"}},{name:"vector_store_id",in:"path",description:"The ID of the vector store containing the file batch.",required:!0,schema:{type:"string"}}]}),"\n",(0,o.jsx)(d(),{title:"Body",body:void 0}),"\n",(0,o.jsx)(u(),{id:void 0,label:void 0,responses:{200:{description:"A VectorStoreFileBatchObject representing the file batch.",content:{"application/json":{schema:{type:"object",properties:{id:{type:"string",description:"Unique identifier for the file batch"},object:{type:"string",default:"vector_store.file_batch",description:'Object type identifier, always "vector_store.file_batch"'},created_at:{type:"integer",description:"Timestamp when the file batch was created"},vector_store_id:{type:"string",description:"ID of the vector store containing the file batch"},status:{description:"Current processing status of the file batch",oneOf:[{type:"string",const:"completed"},{type:"string",const:"in_progress"},{type:"string",const:"cancelled"},{type:"string",const:"failed"}],title:"VectorStoreFileStatus"},file_counts:{description:"File processing status counts for the batch",type:"object",properties:{completed:{type:"integer",description:"Number of files that have been successfully processed"},cancelled:{type:"integer",description:"Number of files that had their processing cancelled"},failed:{type:"integer",description:"Number of files that failed to process"},in_progress:{type:"integer",description:"Number of files currently being processed"},total:{type:"integer",description:"Total number of files in the vector store"}},additionalProperties:!1,required:["completed","cancelled","failed","in_progress","total"],title:"VectorStoreFileCounts"}},additionalProperties:!1,required:["id","object","created_at","vector_store_id","status","file_counts"],title:"VectorStoreFileBatchObject",description:"OpenAI Vector Store File Batch object."}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function M(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(j,{...e})}):j(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4d98588b.19c101c8.js b/docs/v0.3.0/assets/js/4d98588b.19c101c8.js
new file mode 100644
index 00000000..41d632ca
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4d98588b.19c101c8.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[3889],{14795:(e,t,a)=>{a.d(t,{A:()=>_});a(96540);var s=a(34164),r=a(26972),i=a(28774),c=a(53465),n=a(16654),d=a(21312),o=a(51107);const l={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=a(74848);function p({className:e,href:t,children:a}){return(0,u.jsx)(i.default,{href:t,className:(0,s.A)("card padding--lg",l.cardContainer,e),children:a})}function m({className:e,href:t,icon:a,title:r,description:i}){return(0,u.jsxs)(p,{href:t,className:e,children:[(0,u.jsxs)(o.default,{as:"h2",className:(0,s.A)("text--truncate",l.cardTitle),title:r,children:[a," ",r]}),i&&(0,u.jsx)("p",{className:(0,s.A)("text--truncate",l.cardDescription),title:i,children:i})]})}function f({item:e}){const t=(0,r.Nr)(e),a=function(){const{selectMessage:e}=(0,c.W)();return t=>e(t,(0,d.translate)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t}))}();return t?(0,u.jsx)(m,{className:e.className,href:t,icon:"\ud83d\uddc3\ufe0f",title:e.label,description:e.description??a(e.items.length)}):null}function h({item:e}){const t=(0,n.A)(e.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",a=(0,r.cC)(e.docId??void 0);return(0,u.jsx)(m,{className:e.className,href:e.href,icon:t,title:e.label,description:e.description??a?.description})}function x({item:e}){switch(e.type){case"link":return(0,u.jsx)(h,{item:e});case"category":return(0,u.jsx)(f,{item:e});default:throw new Error(`unknown item type ${JSON.stringify(e)}`)}}const N={docCardListItem:"docCardListItem_W1sv"};function g({className:e}){const t=(0,r.a4)();return(0,u.jsx)(_,{items:t,className:e})}function j({item:e}){return(0,u.jsx)("article",{className:(0,s.A)(N.docCardListItem,"col col--6"),children:(0,u.jsx)(x,{item:e})})}function _(e){const{items:t,className:a}=e;if(!t)return(0,u.jsx)(g,{...e});const i=(0,r.d1)(t);return(0,u.jsx)("section",{className:(0,s.A)("row",a),children:i.map((e,t)=>(0,u.jsx)(j,{item:e},t))})}},35267:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>m,frontMatter:()=>d,metadata:()=>s,toc:()=>u});const s=JSON.parse('{"id":"api-deprecated/dataset-io","title":"DatasetIO","description":"DatasetIO","source":"@site/docs/api-deprecated/dataset-io.tag.mdx","sourceDirName":"api-deprecated","slug":"/api-deprecated/dataset-io","permalink":"/v0.3.0/docs/api-deprecated/dataset-io","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"dataset-io","title":"DatasetIO","description":"DatasetIO","custom_edit_url":null},"sidebar":"deprecatedApiSidebar","previous":{"title":"Unregister a benchmark.","permalink":"/v0.3.0/docs/api-deprecated/unregister-a-benchmark"},"next":{"title":"Append rows to a dataset.","permalink":"/v0.3.0/docs/api-deprecated/append-rows-to-a-dataset"}}');var r=a(74848),i=a(28453),c=a(14795),n=a(83262);const d={id:"dataset-io",title:"DatasetIO",description:"DatasetIO",custom_edit_url:null},o=void 0,l={},u=[];function p(e){return(0,r.jsx)(c.A,{items:(0,n.useCurrentSidebarCategory)().items})}function m(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p()}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4dd37090.48cb11ef.js b/docs/v0.3.0/assets/js/4dd37090.48cb11ef.js
new file mode 100644
index 00000000..bf6caaf8
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4dd37090.48cb11ef.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[2066],{37153:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"providers/vector_io/remote_milvus","title":"remote::milvus","description":"[Milvus](https://milvus.io/) is an inline and remote vector database provider for Llama Stack. It\\nallows you to store and query vectors directly within a Milvus database.\\nThat means you\'re not limited to storing vectors in memory or in a separate service.\\n\\n## Features\\n\\n- Easy to use\\n- Fully integrated with Llama Stack\\n- Supports all search modes: vector, keyword, and hybrid search (both inline and remote configurations)\\n\\n## Usage\\n\\nTo use Milvus in your Llama Stack project, follow these steps:\\n\\n1. Install the necessary dependencies.\\n2. Configure your Llama Stack project to use Milvus.\\n3. Start storing and querying vectors.\\n\\n## Installation\\n\\nIf you want to use inline Milvus, you can install:\\n\\n```bash\\npip install pymilvus[milvus-lite]\\n```\\n\\nIf you want to use remote Milvus, you can install:\\n\\n```bash\\npip install pymilvus\\n```\\n\\n## Configuration\\n\\nIn Llama Stack, Milvus can be configured in two ways:\\n- **Inline (Local) Configuration** - Uses Milvus-Lite for local storage\\n- **Remote Configuration** - Connects to a remote Milvus server\\n\\n### Inline (Local) Configuration\\n\\nThe simplest method is local configuration, which requires setting `db_path`, a path for locally storing Milvus-Lite files:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: inline::milvus\\n config:\\n db_path: ~/.llama/distributions/together/milvus_store.db\\n```\\n\\n### Remote Configuration\\n\\nRemote configuration is suitable for larger data storage requirements:\\n\\n#### Standard Remote Connection\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"http://:\\"\\n token: \\":\\"\\n```\\n\\n#### TLS-Enabled Remote Connection (One-way TLS)\\n\\nFor connections to Milvus instances with one-way TLS enabled:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"https://:\\"\\n token: \\":\\"\\n secure: True\\n server_pem_path: \\"/path/to/server.pem\\"\\n```\\n\\n#### Mutual TLS (mTLS) Remote Connection\\n\\nFor connections to Milvus instances with mutual TLS (mTLS) enabled:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"https://:\\"\\n token: \\":\\"\\n secure: True\\n ca_pem_path: \\"/path/to/ca.pem\\"\\n client_pem_path: \\"/path/to/client.pem\\"\\n client_key_path: \\"/path/to/client.key\\"\\n```\\n\\n#### Key Parameters for TLS Configuration\\n\\n- **`secure`**: Enables TLS encryption when set to `true`. Defaults to `false`.\\n- **`server_pem_path`**: Path to the **server certificate** for verifying the server\'s identity (used in one-way TLS).\\n- **`ca_pem_path`**: Path to the **Certificate Authority (CA) certificate** for validating the server certificate (required in mTLS).\\n- **`client_pem_path`**: Path to the **client certificate** file (required for mTLS).\\n- **`client_key_path`**: Path to the **client private key** file (required for mTLS).\\n\\n## Search Modes\\n\\nMilvus supports three different search modes for both inline and remote configurations:\\n\\n### Vector Search\\nVector search uses semantic similarity to find the most relevant chunks based on embedding vectors. This is the default search mode and works well for finding conceptually similar content.\\n\\n```python\\n# Vector search example\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"What is machine learning?\\",\\n search_mode=\\"vector\\",\\n max_num_results=5,\\n)\\n```\\n\\n### Keyword Search\\nKeyword search uses traditional text-based matching to find chunks containing specific terms or phrases. This is useful when you need exact term matches.\\n\\n```python\\n# Keyword search example\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"Python programming language\\",\\n search_mode=\\"keyword\\",\\n max_num_results=5,\\n)\\n```\\n\\n### Hybrid Search\\nHybrid search combines both vector and keyword search methods to provide more comprehensive results. It leverages the strengths of both semantic similarity and exact term matching.\\n\\n#### Basic Hybrid Search\\n```python\\n# Basic hybrid search example (uses RRF ranker with default impact_factor=60.0)\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n)\\n```\\n\\n**Note**: The default `impact_factor` value of 60.0 was empirically determined to be optimal in the original RRF research paper: [\\"Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods\\"](https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf) (Cormack et al., 2009).\\n\\n#### Hybrid Search with RRF (Reciprocal Rank Fusion) Ranker\\nRRF combines rankings from vector and keyword search by using reciprocal ranks. The impact factor controls how much weight is given to higher-ranked results.\\n\\n```python\\n# Hybrid search with custom RRF parameters\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n ranking_options={\\n \\"ranker\\": {\\n \\"type\\": \\"rrf\\",\\n \\"impact_factor\\": 100.0, # Higher values give more weight to top-ranked results\\n }\\n },\\n)\\n```\\n\\n#### Hybrid Search with Weighted Ranker\\nWeighted ranker linearly combines normalized scores from vector and keyword search. The alpha parameter controls the balance between the two search methods.\\n\\n```python\\n# Hybrid search with weighted ranker\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n ranking_options={\\n \\"ranker\\": {\\n \\"type\\": \\"weighted\\",\\n \\"alpha\\": 0.7, # 70% vector search, 30% keyword search\\n }\\n },\\n)\\n```\\n\\nFor detailed documentation on RRF and Weighted rankers, please refer to the [Milvus Reranking Guide](https://milvus.io/docs/reranking.md).\\n\\n## Documentation\\nSee the [Milvus documentation](https://milvus.io/docs/install-overview.md) for more details about Milvus in general.\\n\\nFor more details on TLS configuration, refer to the [TLS setup guide](https://milvus.io/docs/tls.md).\\n","source":"@site/docs/providers/vector_io/remote_milvus.mdx","sourceDirName":"providers/vector_io","slug":"/providers/vector_io/remote_milvus","permalink":"/v0.3.0/docs/providers/vector_io/remote_milvus","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"[Milvus](https://milvus.io/) is an inline and remote vector database provider for Llama Stack. It\\nallows you to store and query vectors directly within a Milvus database.\\nThat means you\'re not limited to storing vectors in memory or in a separate service.\\n\\n## Features\\n\\n- Easy to use\\n- Fully integrated with Llama Stack\\n- Supports all search modes: vector, keyword, and hybrid search (both inline and remote configurations)\\n\\n## Usage\\n\\nTo use Milvus in your Llama Stack project, follow these steps:\\n\\n1. Install the necessary dependencies.\\n2. Configure your Llama Stack project to use Milvus.\\n3. Start storing and querying vectors.\\n\\n## Installation\\n\\nIf you want to use inline Milvus, you can install:\\n\\n```bash\\npip install pymilvus[milvus-lite]\\n```\\n\\nIf you want to use remote Milvus, you can install:\\n\\n```bash\\npip install pymilvus\\n```\\n\\n## Configuration\\n\\nIn Llama Stack, Milvus can be configured in two ways:\\n- **Inline (Local) Configuration** - Uses Milvus-Lite for local storage\\n- **Remote Configuration** - Connects to a remote Milvus server\\n\\n### Inline (Local) Configuration\\n\\nThe simplest method is local configuration, which requires setting `db_path`, a path for locally storing Milvus-Lite files:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: inline::milvus\\n config:\\n db_path: ~/.llama/distributions/together/milvus_store.db\\n```\\n\\n### Remote Configuration\\n\\nRemote configuration is suitable for larger data storage requirements:\\n\\n#### Standard Remote Connection\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"http://:\\"\\n token: \\":\\"\\n```\\n\\n#### TLS-Enabled Remote Connection (One-way TLS)\\n\\nFor connections to Milvus instances with one-way TLS enabled:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"https://:\\"\\n token: \\":\\"\\n secure: True\\n server_pem_path: \\"/path/to/server.pem\\"\\n```\\n\\n#### Mutual TLS (mTLS) Remote Connection\\n\\nFor connections to Milvus instances with mutual TLS (mTLS) enabled:\\n\\n```yaml\\nvector_io:\\n - provider_id: milvus\\n provider_type: remote::milvus\\n config:\\n uri: \\"https://:\\"\\n token: \\":\\"\\n secure: True\\n ca_pem_path: \\"/path/to/ca.pem\\"\\n client_pem_path: \\"/path/to/client.pem\\"\\n client_key_path: \\"/path/to/client.key\\"\\n```\\n\\n#### Key Parameters for TLS Configuration\\n\\n- **`secure`**: Enables TLS encryption when set to `true`. Defaults to `false`.\\n- **`server_pem_path`**: Path to the **server certificate** for verifying the server\'s identity (used in one-way TLS).\\n- **`ca_pem_path`**: Path to the **Certificate Authority (CA) certificate** for validating the server certificate (required in mTLS).\\n- **`client_pem_path`**: Path to the **client certificate** file (required for mTLS).\\n- **`client_key_path`**: Path to the **client private key** file (required for mTLS).\\n\\n## Search Modes\\n\\nMilvus supports three different search modes for both inline and remote configurations:\\n\\n### Vector Search\\nVector search uses semantic similarity to find the most relevant chunks based on embedding vectors. This is the default search mode and works well for finding conceptually similar content.\\n\\n```python\\n# Vector search example\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"What is machine learning?\\",\\n search_mode=\\"vector\\",\\n max_num_results=5,\\n)\\n```\\n\\n### Keyword Search\\nKeyword search uses traditional text-based matching to find chunks containing specific terms or phrases. This is useful when you need exact term matches.\\n\\n```python\\n# Keyword search example\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"Python programming language\\",\\n search_mode=\\"keyword\\",\\n max_num_results=5,\\n)\\n```\\n\\n### Hybrid Search\\nHybrid search combines both vector and keyword search methods to provide more comprehensive results. It leverages the strengths of both semantic similarity and exact term matching.\\n\\n#### Basic Hybrid Search\\n```python\\n# Basic hybrid search example (uses RRF ranker with default impact_factor=60.0)\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n)\\n```\\n\\n**Note**: The default `impact_factor` value of 60.0 was empirically determined to be optimal in the original RRF research paper: [\\"Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods\\"](https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf) (Cormack et al., 2009).\\n\\n#### Hybrid Search with RRF (Reciprocal Rank Fusion) Ranker\\nRRF combines rankings from vector and keyword search by using reciprocal ranks. The impact factor controls how much weight is given to higher-ranked results.\\n\\n```python\\n# Hybrid search with custom RRF parameters\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n ranking_options={\\n \\"ranker\\": {\\n \\"type\\": \\"rrf\\",\\n \\"impact_factor\\": 100.0, # Higher values give more weight to top-ranked results\\n }\\n },\\n)\\n```\\n\\n#### Hybrid Search with Weighted Ranker\\nWeighted ranker linearly combines normalized scores from vector and keyword search. The alpha parameter controls the balance between the two search methods.\\n\\n```python\\n# Hybrid search with weighted ranker\\nsearch_response = client.vector_stores.search(\\n vector_store_id=vector_store.id,\\n query=\\"neural networks in Python\\",\\n search_mode=\\"hybrid\\",\\n max_num_results=5,\\n ranking_options={\\n \\"ranker\\": {\\n \\"type\\": \\"weighted\\",\\n \\"alpha\\": 0.7, # 70% vector search, 30% keyword search\\n }\\n },\\n)\\n```\\n\\nFor detailed documentation on RRF and Weighted rankers, please refer to the [Milvus Reranking Guide](https://milvus.io/docs/reranking.md).\\n\\n## Documentation\\nSee the [Milvus documentation](https://milvus.io/docs/install-overview.md) for more details about Milvus in general.\\n\\nFor more details on TLS configuration, refer to the [TLS setup guide](https://milvus.io/docs/tls.md).\\n","sidebar_label":"Remote - Milvus","title":"remote::milvus"},"sidebar":"tutorialSidebar","previous":{"title":"Remote - Chromadb","permalink":"/v0.3.0/docs/providers/vector_io/remote_chromadb"},"next":{"title":"Remote - Pgvector","permalink":"/v0.3.0/docs/providers/vector_io/remote_pgvector"}}');var i=r(74848),o=r(28453);const s={description:'[Milvus](https://milvus.io/) is an inline and remote vector database provider for Llama Stack. It\nallows you to store and query vectors directly within a Milvus database.\nThat means you\'re not limited to storing vectors in memory or in a separate service.\n\n## Features\n\n- Easy to use\n- Fully integrated with Llama Stack\n- Supports all search modes: vector, keyword, and hybrid search (both inline and remote configurations)\n\n## Usage\n\nTo use Milvus in your Llama Stack project, follow these steps:\n\n1. Install the necessary dependencies.\n2. Configure your Llama Stack project to use Milvus.\n3. Start storing and querying vectors.\n\n## Installation\n\nIf you want to use inline Milvus, you can install:\n\n```bash\npip install pymilvus[milvus-lite]\n```\n\nIf you want to use remote Milvus, you can install:\n\n```bash\npip install pymilvus\n```\n\n## Configuration\n\nIn Llama Stack, Milvus can be configured in two ways:\n- **Inline (Local) Configuration** - Uses Milvus-Lite for local storage\n- **Remote Configuration** - Connects to a remote Milvus server\n\n### Inline (Local) Configuration\n\nThe simplest method is local configuration, which requires setting `db_path`, a path for locally storing Milvus-Lite files:\n\n```yaml\nvector_io:\n - provider_id: milvus\n provider_type: inline::milvus\n config:\n db_path: ~/.llama/distributions/together/milvus_store.db\n```\n\n### Remote Configuration\n\nRemote configuration is suitable for larger data storage requirements:\n\n#### Standard Remote Connection\n\n```yaml\nvector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "http://:"\n token: ":"\n```\n\n#### TLS-Enabled Remote Connection (One-way TLS)\n\nFor connections to Milvus instances with one-way TLS enabled:\n\n```yaml\nvector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "https://:"\n token: ":"\n secure: True\n server_pem_path: "/path/to/server.pem"\n```\n\n#### Mutual TLS (mTLS) Remote Connection\n\nFor connections to Milvus instances with mutual TLS (mTLS) enabled:\n\n```yaml\nvector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "https://:"\n token: ":"\n secure: True\n ca_pem_path: "/path/to/ca.pem"\n client_pem_path: "/path/to/client.pem"\n client_key_path: "/path/to/client.key"\n```\n\n#### Key Parameters for TLS Configuration\n\n- **`secure`**: Enables TLS encryption when set to `true`. Defaults to `false`.\n- **`server_pem_path`**: Path to the **server certificate** for verifying the server\'s identity (used in one-way TLS).\n- **`ca_pem_path`**: Path to the **Certificate Authority (CA) certificate** for validating the server certificate (required in mTLS).\n- **`client_pem_path`**: Path to the **client certificate** file (required for mTLS).\n- **`client_key_path`**: Path to the **client private key** file (required for mTLS).\n\n## Search Modes\n\nMilvus supports three different search modes for both inline and remote configurations:\n\n### Vector Search\nVector search uses semantic similarity to find the most relevant chunks based on embedding vectors. This is the default search mode and works well for finding conceptually similar content.\n\n```python\n# Vector search example\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="What is machine learning?",\n search_mode="vector",\n max_num_results=5,\n)\n```\n\n### Keyword Search\nKeyword search uses traditional text-based matching to find chunks containing specific terms or phrases. This is useful when you need exact term matches.\n\n```python\n# Keyword search example\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="Python programming language",\n search_mode="keyword",\n max_num_results=5,\n)\n```\n\n### Hybrid Search\nHybrid search combines both vector and keyword search methods to provide more comprehensive results. It leverages the strengths of both semantic similarity and exact term matching.\n\n#### Basic Hybrid Search\n```python\n# Basic hybrid search example (uses RRF ranker with default impact_factor=60.0)\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n)\n```\n\n**Note**: The default `impact_factor` value of 60.0 was empirically determined to be optimal in the original RRF research paper: ["Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods"](https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf) (Cormack et al., 2009).\n\n#### Hybrid Search with RRF (Reciprocal Rank Fusion) Ranker\nRRF combines rankings from vector and keyword search by using reciprocal ranks. The impact factor controls how much weight is given to higher-ranked results.\n\n```python\n# Hybrid search with custom RRF parameters\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n ranking_options={\n "ranker": {\n "type": "rrf",\n "impact_factor": 100.0, # Higher values give more weight to top-ranked results\n }\n },\n)\n```\n\n#### Hybrid Search with Weighted Ranker\nWeighted ranker linearly combines normalized scores from vector and keyword search. The alpha parameter controls the balance between the two search methods.\n\n```python\n# Hybrid search with weighted ranker\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n ranking_options={\n "ranker": {\n "type": "weighted",\n "alpha": 0.7, # 70% vector search, 30% keyword search\n }\n },\n)\n```\n\nFor detailed documentation on RRF and Weighted rankers, please refer to the [Milvus Reranking Guide](https://milvus.io/docs/reranking.md).\n\n## Documentation\nSee the [Milvus documentation](https://milvus.io/docs/install-overview.md) for more details about Milvus in general.\n\nFor more details on TLS configuration, refer to the [TLS setup guide](https://milvus.io/docs/tls.md).\n',sidebar_label:"Remote - Milvus",title:"remote::milvus"},a="remote::milvus",c={},l=[{value:"Description",id:"description",level:2},{value:"Features",id:"features",level:2},{value:"Usage",id:"usage",level:2},{value:"Installation",id:"installation",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Inline (Local) Configuration",id:"inline-local-configuration",level:3},{value:"Remote Configuration",id:"remote-configuration",level:3},{value:"Standard Remote Connection",id:"standard-remote-connection",level:4},{value:"TLS-Enabled Remote Connection (One-way TLS)",id:"tls-enabled-remote-connection-one-way-tls",level:4},{value:"Mutual TLS (mTLS) Remote Connection",id:"mutual-tls-mtls-remote-connection",level:4},{value:"Key Parameters for TLS Configuration",id:"key-parameters-for-tls-configuration",level:4},{value:"Search Modes",id:"search-modes",level:2},{value:"Vector Search",id:"vector-search",level:3},{value:"Keyword Search",id:"keyword-search",level:3},{value:"Hybrid Search",id:"hybrid-search",level:3},{value:"Basic Hybrid Search",id:"basic-hybrid-search",level:4},{value:"Hybrid Search with RRF (Reciprocal Rank Fusion) Ranker",id:"hybrid-search-with-rrf-reciprocal-rank-fusion-ranker",level:4},{value:"Hybrid Search with Weighted Ranker",id:"hybrid-search-with-weighted-ranker",level:4},{value:"Documentation",id:"documentation",level:2},{value:"Configuration",id:"configuration-1",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"remotemilvus",children:"remote::milvus"})}),"\n",(0,i.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.a,{href:"https://milvus.io/",children:"Milvus"})," is an inline and remote vector database provider for Llama Stack. It\nallows you to store and query vectors directly within a Milvus database.\nThat means you're not limited to storing vectors in memory or in a separate service."]}),"\n",(0,i.jsx)(n.h2,{id:"features",children:"Features"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"Easy to use"}),"\n",(0,i.jsx)(n.li,{children:"Fully integrated with Llama Stack"}),"\n",(0,i.jsx)(n.li,{children:"Supports all search modes: vector, keyword, and hybrid search (both inline and remote configurations)"}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(n.p,{children:"To use Milvus in your Llama Stack project, follow these steps:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"Install the necessary dependencies."}),"\n",(0,i.jsx)(n.li,{children:"Configure your Llama Stack project to use Milvus."}),"\n",(0,i.jsx)(n.li,{children:"Start storing and querying vectors."}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsx)(n.p,{children:"If you want to use inline Milvus, you can install:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"pip install pymilvus[milvus-lite]\n"})}),"\n",(0,i.jsx)(n.p,{children:"If you want to use remote Milvus, you can install:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"pip install pymilvus\n"})}),"\n",(0,i.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,i.jsx)(n.p,{children:"In Llama Stack, Milvus can be configured in two ways:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Inline (Local) Configuration"})," - Uses Milvus-Lite for local storage"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Remote Configuration"})," - Connects to a remote Milvus server"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"inline-local-configuration",children:"Inline (Local) Configuration"}),"\n",(0,i.jsxs)(n.p,{children:["The simplest method is local configuration, which requires setting ",(0,i.jsx)(n.code,{children:"db_path"}),", a path for locally storing Milvus-Lite files:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:"vector_io:\n - provider_id: milvus\n provider_type: inline::milvus\n config:\n db_path: ~/.llama/distributions/together/milvus_store.db\n"})}),"\n",(0,i.jsx)(n.h3,{id:"remote-configuration",children:"Remote Configuration"}),"\n",(0,i.jsx)(n.p,{children:"Remote configuration is suitable for larger data storage requirements:"}),"\n",(0,i.jsx)(n.h4,{id:"standard-remote-connection",children:"Standard Remote Connection"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:'vector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "http://:"\n token: ":"\n'})}),"\n",(0,i.jsx)(n.h4,{id:"tls-enabled-remote-connection-one-way-tls",children:"TLS-Enabled Remote Connection (One-way TLS)"}),"\n",(0,i.jsx)(n.p,{children:"For connections to Milvus instances with one-way TLS enabled:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:'vector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "https://:"\n token: ":"\n secure: True\n server_pem_path: "/path/to/server.pem"\n'})}),"\n",(0,i.jsx)(n.h4,{id:"mutual-tls-mtls-remote-connection",children:"Mutual TLS (mTLS) Remote Connection"}),"\n",(0,i.jsx)(n.p,{children:"For connections to Milvus instances with mutual TLS (mTLS) enabled:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:'vector_io:\n - provider_id: milvus\n provider_type: remote::milvus\n config:\n uri: "https://:"\n token: ":"\n secure: True\n ca_pem_path: "/path/to/ca.pem"\n client_pem_path: "/path/to/client.pem"\n client_key_path: "/path/to/client.key"\n'})}),"\n",(0,i.jsx)(n.h4,{id:"key-parameters-for-tls-configuration",children:"Key Parameters for TLS Configuration"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"secure"})}),": Enables TLS encryption when set to ",(0,i.jsx)(n.code,{children:"true"}),". Defaults to ",(0,i.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"server_pem_path"})}),": Path to the ",(0,i.jsx)(n.strong,{children:"server certificate"})," for verifying the server's identity (used in one-way TLS)."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"ca_pem_path"})}),": Path to the ",(0,i.jsx)(n.strong,{children:"Certificate Authority (CA) certificate"})," for validating the server certificate (required in mTLS)."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"client_pem_path"})}),": Path to the ",(0,i.jsx)(n.strong,{children:"client certificate"})," file (required for mTLS)."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"client_key_path"})}),": Path to the ",(0,i.jsx)(n.strong,{children:"client private key"})," file (required for mTLS)."]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"search-modes",children:"Search Modes"}),"\n",(0,i.jsx)(n.p,{children:"Milvus supports three different search modes for both inline and remote configurations:"}),"\n",(0,i.jsx)(n.h3,{id:"vector-search",children:"Vector Search"}),"\n",(0,i.jsx)(n.p,{children:"Vector search uses semantic similarity to find the most relevant chunks based on embedding vectors. This is the default search mode and works well for finding conceptually similar content."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Vector search example\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="What is machine learning?",\n search_mode="vector",\n max_num_results=5,\n)\n'})}),"\n",(0,i.jsx)(n.h3,{id:"keyword-search",children:"Keyword Search"}),"\n",(0,i.jsx)(n.p,{children:"Keyword search uses traditional text-based matching to find chunks containing specific terms or phrases. This is useful when you need exact term matches."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Keyword search example\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="Python programming language",\n search_mode="keyword",\n max_num_results=5,\n)\n'})}),"\n",(0,i.jsx)(n.h3,{id:"hybrid-search",children:"Hybrid Search"}),"\n",(0,i.jsx)(n.p,{children:"Hybrid search combines both vector and keyword search methods to provide more comprehensive results. It leverages the strengths of both semantic similarity and exact term matching."}),"\n",(0,i.jsx)(n.h4,{id:"basic-hybrid-search",children:"Basic Hybrid Search"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Basic hybrid search example (uses RRF ranker with default impact_factor=60.0)\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n)\n'})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Note"}),": The default ",(0,i.jsx)(n.code,{children:"impact_factor"})," value of 60.0 was empirically determined to be optimal in the original RRF research paper: ",(0,i.jsx)(n.a,{href:"https://plg.uwaterloo.ca/~gvcormac/cormacksigir09-rrf.pdf",children:'"Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods"'})," (Cormack et al., 2009)."]}),"\n",(0,i.jsx)(n.h4,{id:"hybrid-search-with-rrf-reciprocal-rank-fusion-ranker",children:"Hybrid Search with RRF (Reciprocal Rank Fusion) Ranker"}),"\n",(0,i.jsx)(n.p,{children:"RRF combines rankings from vector and keyword search by using reciprocal ranks. The impact factor controls how much weight is given to higher-ranked results."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Hybrid search with custom RRF parameters\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n ranking_options={\n "ranker": {\n "type": "rrf",\n "impact_factor": 100.0, # Higher values give more weight to top-ranked results\n }\n },\n)\n'})}),"\n",(0,i.jsx)(n.h4,{id:"hybrid-search-with-weighted-ranker",children:"Hybrid Search with Weighted Ranker"}),"\n",(0,i.jsx)(n.p,{children:"Weighted ranker linearly combines normalized scores from vector and keyword search. The alpha parameter controls the balance between the two search methods."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-python",children:'# Hybrid search with weighted ranker\nsearch_response = client.vector_stores.search(\n vector_store_id=vector_store.id,\n query="neural networks in Python",\n search_mode="hybrid",\n max_num_results=5,\n ranking_options={\n "ranker": {\n "type": "weighted",\n "alpha": 0.7, # 70% vector search, 30% keyword search\n }\n },\n)\n'})}),"\n",(0,i.jsxs)(n.p,{children:["For detailed documentation on RRF and Weighted rankers, please refer to the ",(0,i.jsx)(n.a,{href:"https://milvus.io/docs/reranking.md",children:"Milvus Reranking Guide"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"documentation",children:"Documentation"}),"\n",(0,i.jsxs)(n.p,{children:["See the ",(0,i.jsx)(n.a,{href:"https://milvus.io/docs/install-overview.md",children:"Milvus documentation"})," for more details about Milvus in general."]}),"\n",(0,i.jsxs)(n.p,{children:["For more details on TLS configuration, refer to the ",(0,i.jsx)(n.a,{href:"https://milvus.io/docs/tls.md",children:"TLS setup guide"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"configuration-1",children:"Configuration"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Field"}),(0,i.jsx)(n.th,{children:"Type"}),(0,i.jsx)(n.th,{children:"Required"}),(0,i.jsx)(n.th,{children:"Default"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"uri"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:""})}),(0,i.jsx)(n.td,{children:"No"}),(0,i.jsx)(n.td,{}),(0,i.jsx)(n.td,{children:"The URI of the Milvus server"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"token"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"str | None"})}),(0,i.jsx)(n.td,{children:"No"}),(0,i.jsx)(n.td,{}),(0,i.jsx)(n.td,{children:"The token of the Milvus server"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"consistency_level"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:""})}),(0,i.jsx)(n.td,{children:"No"}),(0,i.jsx)(n.td,{children:"Strong"}),(0,i.jsx)(n.td,{children:"The consistency level of the Milvus server"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"persistence"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:""})}),(0,i.jsx)(n.td,{children:"No"}),(0,i.jsx)(n.td,{}),(0,i.jsx)(n.td,{children:"Config for KV store backend"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"config"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"dict"})}),(0,i.jsx)(n.td,{children:"No"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"{}"})}),(0,i.jsxs)(n.td,{children:["This configuration allows additional fields to be passed through to the underlying Milvus client. See the ",(0,i.jsx)(n.a,{href:"https://milvus.io/docs/install-overview.md",children:"Milvus"})," documentation for more details about Milvus in general."]})]})]})]}),"\n",(0,i.jsx)(n.admonition,{type:"note",children:(0,i.jsx)(n.p,{children:"This configuration class accepts additional fields beyond those listed above. You can pass any additional configuration options that will be forwarded to the underlying provider."})}),"\n",(0,i.jsx)(n.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:"uri: ${env.MILVUS_ENDPOINT}\ntoken: ${env.MILVUS_TOKEN}\npersistence:\n namespace: vector_io::milvus_remote\n backend: kv_default\n"})})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4edc808e.222d1123.js b/docs/v0.3.0/assets/js/4edc808e.222d1123.js
new file mode 100644
index 00000000..e2a62b3b
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4edc808e.222d1123.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[308],{16215:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>l,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"index","title":"Welcome to Llama Stack","description":"Llama Stack is the open-source framework for building generative AI applications","source":"@site/docs/index.mdx","sourceDirName":".","slug":"/","permalink":"/v0.3.0/docs/","draft":false,"unlisted":false,"tags":[{"inline":true,"label":"getting-started","permalink":"/v0.3.0/docs/tags/getting-started"},{"inline":true,"label":"overview","permalink":"/v0.3.0/docs/tags/overview"}],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1,"title":"Welcome to Llama Stack","description":"Llama Stack is the open-source framework for building generative AI applications","sidebar_label":"Intro","tags":["getting-started","overview"]},"sidebar":"tutorialSidebar","next":{"title":"Quickstart","permalink":"/v0.3.0/docs/getting_started/quickstart"}}');var r=a(74848),n=a(28453);const s={sidebar_position:1,title:"Welcome to Llama Stack",description:"Llama Stack is the open-source framework for building generative AI applications",sidebar_label:"Intro",tags:["getting-started","overview"]},l="Welcome to Llama Stack",o={},d=[{value:"What is Llama Stack?",id:"what-is-llama-stack",level:2},{value:"How does Llama Stack work?",id:"how-does-llama-stack-work",level:2},{value:"Quick Links",id:"quick-links",level:2},{value:"Rich Ecosystem Support",id:"rich-ecosystem-support",level:2},{value:"Get Started Today",id:"get-started-today",level:2}];function c(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"welcome-to-llama-stack",children:"Welcome to Llama Stack"})}),"\n",(0,r.jsx)(t.p,{children:"Llama Stack is the open-source framework for building generative AI applications."}),"\n",(0,r.jsx)(t.admonition,{title:"Llama 4 is here!",type:"tip",children:(0,r.jsxs)(t.p,{children:["Check out ",(0,r.jsx)(t.a,{href:"https://colab.research.google.com/github/llamastack/llama-stack/blob/main/docs/getting_started_llama4.ipynb",children:"Getting Started with Llama 4"})]})}),"\n",(0,r.jsx)(t.admonition,{title:"News",type:"tip",children:(0,r.jsxs)(t.p,{children:["Llama Stack is now available! See the ",(0,r.jsx)(t.a,{href:"https://github.com/llamastack/llama-stack/releases",children:"release notes"})," for more details."]})}),"\n",(0,r.jsx)(t.h2,{id:"what-is-llama-stack",children:"What is Llama Stack?"}),"\n",(0,r.jsx)(t.p,{children:"Llama Stack defines and standardizes the core building blocks needed to bring generative AI applications to market. It provides a unified set of APIs with implementations from leading service providers, enabling seamless transitions between development and production environments. More specifically, it provides:"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Unified API layer"})," for Inference, RAG, Agents, Tools, Safety, Evals, and Telemetry."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Plugin architecture"})," to support the rich ecosystem of implementations of the different APIs in different environments like local development, on-premises, cloud, and mobile."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Prepackaged verified distributions"})," which offer a one-stop solution for developers to get started quickly and reliably in any environment"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Multiple developer interfaces"})," like CLI and SDKs for Python, Node, iOS, and Android"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Standalone applications"})," as examples for how to build production-grade AI applications with Llama Stack"]}),"\n"]}),"\n",(0,r.jsx)("img",{src:"/img/llama-stack.png",alt:"Llama Stack",width:"400px"}),"\n",(0,r.jsx)(t.p,{children:'Our goal is to provide pre-packaged implementations (aka "distributions") which can be run in a variety of deployment environments. LlamaStack can assist you in your entire app development lifecycle - start iterating on local, mobile or desktop and seamlessly transition to on-prem or public cloud deployments. At every point in this transition, the same set of APIs and the same developer experience is available.'}),"\n",(0,r.jsx)(t.h2,{id:"how-does-llama-stack-work",children:"How does Llama Stack work?"}),"\n",(0,r.jsx)(t.p,{children:"Llama Stack consists of a server (with multiple pluggable API providers) and Client SDKs meant to be used in your applications. The server can be run in a variety of environments, including local (inline) development, on-premises, and cloud. The client SDKs are available for Python, Swift, Node, and Kotlin."}),"\n",(0,r.jsx)(t.h2,{id:"quick-links",children:"Quick Links"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:["Ready to build? Check out the ",(0,r.jsx)(t.a,{href:"/docs/getting_started/quickstart",children:"Getting Started Guide"})," to get started."]}),"\n",(0,r.jsxs)(t.li,{children:["Want to contribute? See the ",(0,r.jsx)(t.a,{href:"https://github.com/llamastack/llama-stack/blob/main/CONTRIBUTING.md",children:"Contributing Guide"}),"."]}),"\n",(0,r.jsxs)(t.li,{children:["Explore ",(0,r.jsx)(t.a,{href:"https://github.com/llamastack/llama-stack-apps",children:"Example Applications"})," built with Llama Stack."]}),"\n"]}),"\n",(0,r.jsx)(t.h2,{id:"rich-ecosystem-support",children:"Rich Ecosystem Support"}),"\n",(0,r.jsx)(t.p,{children:"Llama Stack provides adapters for popular providers across all API categories:"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Inference"}),": Meta Reference, Ollama, Fireworks, Together, NVIDIA, vLLM, AWS Bedrock, OpenAI, Anthropic, and more"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Vector Databases"}),": FAISS, Chroma, Milvus, Postgres, Weaviate, Qdrant, and others"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Safety"}),": Llama Guard, Prompt Guard, Code Scanner, AWS Bedrock"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"Training & Evaluation"}),": HuggingFace, TorchTune, NVIDIA NEMO"]}),"\n"]}),"\n",(0,r.jsx)(t.admonition,{title:"Provider Details",type:"info",children:(0,r.jsxs)(t.p,{children:["For complete provider compatibility and setup instructions, see our ",(0,r.jsx)(t.a,{href:"https://llamastack.github.io/docs/providers/",children:"Providers Documentation"}),"."]})}),"\n",(0,r.jsx)(t.h2,{id:"get-started-today",children:"Get Started Today"}),"\n",(0,r.jsxs)("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap",margin:"2rem 0"},children:[(0,r.jsx)("a",{href:"/docs/getting_started/quickstart",style:{background:"var(--ifm-color-primary)",color:"white",padding:"0.75rem 1.5rem",borderRadius:"0.5rem",textDecoration:"none",fontWeight:"bold"},children:(0,r.jsx)(t.p,{children:"\ud83d\ude80 Quick Start Guide"})}),(0,r.jsx)("a",{href:"https://github.com/llamastack/llama-stack-apps",style:{border:"2px solid var(--ifm-color-primary)",color:"var(--ifm-color-primary)",padding:"0.75rem 1.5rem",borderRadius:"0.5rem",textDecoration:"none",fontWeight:"bold"},children:(0,r.jsx)(t.p,{children:"\ud83d\udcda Example Apps"})}),(0,r.jsx)("a",{href:"https://github.com/llamastack/llama-stack",style:{border:"2px solid #666",color:"#666",padding:"0.75rem 1.5rem",borderRadius:"0.5rem",textDecoration:"none",fontWeight:"bold"},children:(0,r.jsx)(t.p,{children:"\u2b50 Star on GitHub"})})]})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/4f01253a.afb76274.js b/docs/v0.3.0/assets/js/4f01253a.afb76274.js
new file mode 100644
index 00000000..42debc0e
--- /dev/null
+++ b/docs/v0.3.0/assets/js/4f01253a.afb76274.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[155],{74427:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>c,metadata:()=>t,toc:()=>o});const t=JSON.parse('{"id":"providers/batches/inline_reference","title":"inline::reference","description":"Reference implementation of batches API with KVStore persistence.","source":"@site/docs/providers/batches/inline_reference.mdx","sourceDirName":"providers/batches","slug":"/providers/batches/inline_reference","permalink":"/v0.3.0/docs/providers/batches/inline_reference","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"Reference implementation of batches API with KVStore persistence.","sidebar_label":"Reference","title":"inline::reference"},"sidebar":"tutorialSidebar","previous":{"title":"Batches","permalink":"/v0.3.0/docs/providers/batches/"},"next":{"title":"External Providers","permalink":"/v0.3.0/docs/providers/external/"}}');var i=n(74848),s=n(28453);const c={description:"Reference implementation of batches API with KVStore persistence.",sidebar_label:"Reference",title:"inline::reference"},d="inline::reference",l={},o=[{value:"Description",id:"description",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2}];function a(e){const r={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.header,{children:(0,i.jsx)(r.h1,{id:"inlinereference",children:"inline::reference"})}),"\n",(0,i.jsx)(r.h2,{id:"description",children:"Description"}),"\n",(0,i.jsx)(r.p,{children:"Reference implementation of batches API with KVStore persistence."}),"\n",(0,i.jsx)(r.h2,{id:"configuration",children:"Configuration"}),"\n",(0,i.jsxs)(r.table,{children:[(0,i.jsx)(r.thead,{children:(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.th,{children:"Field"}),(0,i.jsx)(r.th,{children:"Type"}),(0,i.jsx)(r.th,{children:"Required"}),(0,i.jsx)(r.th,{children:"Default"}),(0,i.jsx)(r.th,{children:"Description"})]})}),(0,i.jsxs)(r.tbody,{children:[(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"kvstore"})}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:""})}),(0,i.jsx)(r.td,{children:"No"}),(0,i.jsx)(r.td,{}),(0,i.jsx)(r.td,{children:"Configuration for the key-value store backend."})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"max_concurrent_batches"})}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:""})}),(0,i.jsx)(r.td,{children:"No"}),(0,i.jsx)(r.td,{children:"1"}),(0,i.jsx)(r.td,{children:"Maximum number of concurrent batches to process simultaneously."})]}),(0,i.jsxs)(r.tr,{children:[(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:"max_concurrent_requests_per_batch"})}),(0,i.jsx)(r.td,{children:(0,i.jsx)(r.code,{children:""})}),(0,i.jsx)(r.td,{children:"No"}),(0,i.jsx)(r.td,{children:"10"}),(0,i.jsx)(r.td,{children:"Maximum number of concurrent requests to process per batch."})]})]})]}),"\n",(0,i.jsx)(r.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-yaml",children:"kvstore:\n namespace: batches\n backend: kv_default\n"})})]})}function h(e={}){const{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,i.jsx)(r,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/51209aff.3719edb9.js b/docs/v0.3.0/assets/js/51209aff.3719edb9.js
new file mode 100644
index 00000000..69702537
--- /dev/null
+++ b/docs/v0.3.0/assets/js/51209aff.3719edb9.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[1281],{1725:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>n,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"providers/files/index","title":"Files","description":"Files\\nThis API is used to upload documents that can be used with other Llama Stack APIs.","source":"@site/docs/providers/files/index.mdx","sourceDirName":"providers/files","slug":"/providers/files/","permalink":"/v0.3.0/docs/providers/files/","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"Files\\nThis API is used to upload documents that can be used with other Llama Stack APIs.","sidebar_label":"Files","title":"Files"},"sidebar":"tutorialSidebar","previous":{"title":"Llm-As-Judge","permalink":"/v0.3.0/docs/providers/scoring/inline_llm-as-judge"},"next":{"title":"Localfs","permalink":"/v0.3.0/docs/providers/files/inline_localfs"}}');var r=i(74848),l=i(28453);const n={description:"Files\nThis API is used to upload documents that can be used with other Llama Stack APIs.",sidebar_label:"Files",title:"Files"},a="Files",o={},d=[{value:"Overview",id:"overview",level:2}];function c(e){const s={h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.header,{children:(0,r.jsx)(s.h1,{id:"files",children:"Files"})}),"\n",(0,r.jsx)(s.h2,{id:"overview",children:"Overview"}),"\n",(0,r.jsx)(s.p,{children:"Files"}),"\n",(0,r.jsx)(s.p,{children:"This API is used to upload documents that can be used with other Llama Stack APIs."}),"\n",(0,r.jsxs)(s.p,{children:["This section contains documentation for all available providers for the ",(0,r.jsx)(s.strong,{children:"files"})," API."]})]})}function u(e={}){const{wrapper:s}={...(0,l.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/5133e13c.bf0cf01c.js b/docs/v0.3.0/assets/js/5133e13c.bf0cf01c.js
new file mode 100644
index 00000000..b914e8e4
--- /dev/null
+++ b/docs/v0.3.0/assets/js/5133e13c.bf0cf01c.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[1727],{54932:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>t,default:()=>h,frontMatter:()=>l,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"advanced_apis/evaluation","title":"Evaluation","description":"Evaluation Concepts","source":"@site/docs/advanced_apis/evaluation.mdx","sourceDirName":"advanced_apis","slug":"/advanced_apis/evaluation","permalink":"/v0.3.0/docs/advanced_apis/evaluation","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"Post-Training","permalink":"/v0.3.0/docs/advanced_apis/post_training"},"next":{"title":"Scoring","permalink":"/v0.3.0/docs/advanced_apis/scoring"}}');var s=a(74848),r=a(28453);const l={},t="Evaluation",o={},c=[{value:"Evaluation Concepts",id:"evaluation-concepts",level:2},{value:"Evaluation Providers",id:"evaluation-providers",level:2},{value:"Meta Reference",id:"meta-reference",level:3},{value:"Configuration",id:"configuration",level:4},{value:"Sample Configuration",id:"sample-configuration",level:4},{value:"Features",id:"features",level:4},{value:"NVIDIA",id:"nvidia",level:3},{value:"Configuration",id:"configuration-1",level:4},{value:"Sample Configuration",id:"sample-configuration-1",level:4},{value:"Features",id:"features-1",level:4},{value:"Open-benchmark Eval",id:"open-benchmark-eval",level:2},{value:"List of open-benchmarks Llama Stack support",id:"list-of-open-benchmarks-llama-stack-support",level:3},{value:"Run evaluation on open-benchmarks via CLI",id:"run-evaluation-on-open-benchmarks-via-cli",level:3},{value:"Spin up Llama Stack server",id:"spin-up-llama-stack-server",level:4},{value:"Run eval CLI",id:"run-eval-cli",level:4},{value:"Usage Example",id:"usage-example",level:2},{value:"Best Practices",id:"best-practices",level:2},{value:"What's Next?",id:"whats-next",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"evaluation",children:"Evaluation"})}),"\n",(0,s.jsx)(n.h2,{id:"evaluation-concepts",children:"Evaluation Concepts"}),"\n",(0,s.jsx)(n.p,{children:"The Llama Stack Evaluation flow allows you to run evaluations on your GenAI application datasets or pre-registered benchmarks."}),"\n",(0,s.jsx)(n.p,{children:"We introduce a set of APIs in Llama Stack for supporting running evaluations of LLM applications:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"/datasetio"})," + ",(0,s.jsx)(n.code,{children:"/datasets"})," API"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"/scoring"})," + ",(0,s.jsx)(n.code,{children:"/scoring_functions"})," API"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"/eval"})," + ",(0,s.jsx)(n.code,{children:"/benchmarks"})," API"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This guide goes over the sets of APIs and developer experience flow of using Llama Stack to run evaluations for different use cases. Checkout our Colab notebook on working examples with evaluations ",(0,s.jsx)(n.a,{href:"https://colab.research.google.com/drive/10CHyykee9j2OigaIcRv47BKG9mrNm0tJ?usp=sharing",children:"here"}),"."]}),"\n",(0,s.jsxs)(n.p,{children:["The Evaluation APIs are associated with a set of Resources. Please visit the Resources section in our ",(0,s.jsx)(n.a,{href:"/v0.3.0/docs/concepts/",children:"Core Concepts"})," guide for better high-level understanding."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"DatasetIO"}),": defines interface with datasets and data loaders.","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Associated with ",(0,s.jsx)(n.code,{children:"Dataset"})," resource."]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Scoring"}),": evaluate outputs of the system.","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Associated with ",(0,s.jsx)(n.code,{children:"ScoringFunction"})," resource. We provide a suite of out-of-the box scoring functions and also the ability for you to add custom evaluators. These scoring functions are the core part of defining an evaluation task to output evaluation metrics."]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Eval"}),": generate outputs (via Inference or Agents) and perform scoring.","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Associated with ",(0,s.jsx)(n.code,{children:"Benchmark"})," resource."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"evaluation-providers",children:"Evaluation Providers"}),"\n",(0,s.jsx)(n.p,{children:"Llama Stack provides multiple evaluation providers:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Meta Reference"})," (",(0,s.jsx)(n.code,{children:"inline::meta-reference"}),") - Meta's reference implementation with multi-language support"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"NVIDIA"})," (",(0,s.jsx)(n.code,{children:"remote::nvidia"}),") - NVIDIA's evaluation platform integration"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"meta-reference",children:"Meta Reference"}),"\n",(0,s.jsx)(n.p,{children:"Meta's reference implementation of evaluation tasks with support for multiple languages and evaluation metrics."}),"\n",(0,s.jsx)(n.h4,{id:"configuration",children:"Configuration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Required"}),(0,s.jsx)(n.th,{children:"Default"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"kvstore"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"RedisKVStoreConfig | SqliteKVStoreConfig | PostgresKVStoreConfig | MongoDBKVStoreConfig"})}),(0,s.jsx)(n.td,{children:"No"}),(0,s.jsx)(n.td,{children:"sqlite"}),(0,s.jsx)(n.td,{children:"Key-value store configuration"})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"sample-configuration",children:"Sample Configuration"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"kvstore:\n type: sqlite\n db_path: ${env.SQLITE_STORE_DIR:=~/.llama/dummy}/meta_reference_eval.db\n"})}),"\n",(0,s.jsx)(n.h4,{id:"features",children:"Features"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Multi-language evaluation support"}),"\n",(0,s.jsx)(n.li,{children:"Comprehensive evaluation metrics"}),"\n",(0,s.jsx)(n.li,{children:"Integration with various key-value stores (SQLite, Redis, PostgreSQL, MongoDB)"}),"\n",(0,s.jsx)(n.li,{children:"Built-in support for popular benchmarks"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"nvidia",children:"NVIDIA"}),"\n",(0,s.jsx)(n.p,{children:"NVIDIA's evaluation provider for running evaluation tasks on NVIDIA's platform."}),"\n",(0,s.jsx)(n.h4,{id:"configuration-1",children:"Configuration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Field"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Required"}),(0,s.jsx)(n.th,{children:"Default"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"evaluator_url"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{children:"No"}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"http://0.0.0.0:7331",children:"http://0.0.0.0:7331"})}),(0,s.jsx)(n.td,{children:"The url for accessing the evaluator service"})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"sample-configuration-1",children:"Sample Configuration"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:"evaluator_url: ${env.NVIDIA_EVALUATOR_URL:=http://localhost:7331}\n"})}),"\n",(0,s.jsx)(n.h4,{id:"features-1",children:"Features"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Integration with NVIDIA's evaluation platform"}),"\n",(0,s.jsx)(n.li,{children:"Remote evaluation capabilities"}),"\n",(0,s.jsx)(n.li,{children:"Scalable evaluation processing"}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"open-benchmark-eval",children:"Open-benchmark Eval"}),"\n",(0,s.jsx)(n.h3,{id:"list-of-open-benchmarks-llama-stack-support",children:"List of open-benchmarks Llama Stack support"}),"\n",(0,s.jsx)(n.p,{children:"Llama stack pre-registers several popular open-benchmarks to easily evaluate model performance via CLI."}),"\n",(0,s.jsx)(n.p,{children:"The list of open-benchmarks we currently support:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://arxiv.org/abs/2009.03300",children:"MMLU-COT"})," (Measuring Massive Multitask Language Understanding): Benchmark designed to comprehensively evaluate the breadth and depth of a model's academic and professional understanding"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://arxiv.org/abs/2311.12022",children:"GPQA-COT"})," (A Graduate-Level Google-Proof Q&A Benchmark): A challenging benchmark of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://openai.com/index/introducing-simpleqa/",children:"SimpleQA"}),": Benchmark designed to access models to answer short, fact-seeking questions."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://arxiv.org/abs/2311.16502",children:"MMMU"})," (A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGI): Benchmark designed to evaluate multimodal models."]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["You can follow this ",(0,s.jsx)(n.a,{href:"/v0.3.0/docs/references/evals_reference/#open-benchmark-contributing-guide",children:"contributing guide"})," to add more open-benchmarks to Llama Stack"]}),"\n",(0,s.jsx)(n.h3,{id:"run-evaluation-on-open-benchmarks-via-cli",children:"Run evaluation on open-benchmarks via CLI"}),"\n",(0,s.jsx)(n.p,{children:"We have built-in functionality to run the supported open-benchmarks using llama-stack-client CLI"}),"\n",(0,s.jsx)(n.h4,{id:"spin-up-llama-stack-server",children:"Spin up Llama Stack server"}),"\n",(0,s.jsx)(n.p,{children:"Spin up llama stack server with 'open-benchmark' template"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:"llama stack run llama_stack/distributions/open-benchmark/run.yaml\n\n"})}),"\n",(0,s.jsx)(n.h4,{id:"run-eval-cli",children:"Run eval CLI"}),"\n",(0,s.jsx)(n.p,{children:"There are 3 necessary inputs to run a benchmark eval"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"list of benchmark_ids"}),": The list of benchmark ids to run evaluation on"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"model-id"}),": The model id to evaluate on"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"output_dir"}),": Path to store the evaluate results"]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:"llama-stack-client eval run-benchmark ... \\\n--model_id \\\n--output_dir \n"})}),"\n",(0,s.jsx)(n.p,{children:"You can run"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:"llama-stack-client eval run-benchmark help\n"})}),"\n",(0,s.jsx)(n.p,{children:"to see the description of all the flags that eval run-benchmark has"}),"\n",(0,s.jsx)(n.p,{children:"In the output log, you can find the file path that has your evaluation results. Open that file and you can see you aggregate evaluation results over there."}),"\n",(0,s.jsx)(n.h2,{id:"usage-example",children:"Usage Example"}),"\n",(0,s.jsx)(n.p,{children:"Here's a basic example of using the evaluation API:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:'from llama_stack_client import LlamaStackClient\n\nclient = LlamaStackClient(base_url="http://localhost:8321")\n\n# Register a dataset for evaluation\nclient.datasets.register(\n purpose="evaluation",\n source={\n "type": "uri",\n "uri": "huggingface://datasets/llamastack/evaluation_dataset"\n },\n dataset_id="my_eval_dataset"\n)\n\n# Run evaluation\neval_result = client.eval.run_evaluation(\n dataset_id="my_eval_dataset",\n scoring_functions=["accuracy", "bleu"],\n model_id="my_model"\n)\n\nprint(f"Evaluation completed: {eval_result}")\n'})}),"\n",(0,s.jsx)(n.h2,{id:"best-practices",children:"Best Practices"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Choose appropriate providers"}),": Use Meta Reference for comprehensive evaluation, NVIDIA for platform-specific needs"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Configure storage properly"}),": Ensure your key-value store configuration matches your performance requirements"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Monitor evaluation progress"}),": Large evaluations can take time - implement proper monitoring"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Use appropriate scoring functions"}),": Select scoring metrics that align with your evaluation goals"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"whats-next",children:"What's Next?"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Check out our Colab notebook on working examples with running benchmark evaluations ",(0,s.jsx)(n.a,{href:"https://colab.research.google.com/github/meta-llama/llama-stack/blob/main/docs/notebooks/Llama_Stack_Benchmark_Evals.ipynb#scrollTo=mxLCsP4MvFqP",children:"here"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["Check out our ",(0,s.jsx)(n.a,{href:"/v0.3.0/docs/building_applications/evals",children:"Building Applications - Evaluation"})," guide for more details on how to use the Evaluation APIs to evaluate your applications."]}),"\n",(0,s.jsxs)(n.li,{children:["Check out our ",(0,s.jsx)(n.a,{href:"/v0.3.0/docs/references/evals_reference/",children:"Evaluation Reference"})," for more details on the APIs."]}),"\n",(0,s.jsxs)(n.li,{children:["Explore the ",(0,s.jsx)(n.a,{href:"/v0.3.0/docs/advanced_apis/scoring",children:"Scoring"})," documentation for available scoring functions."]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/51a3e731.81e6ddb1.js b/docs/v0.3.0/assets/js/51a3e731.81e6ddb1.js
new file mode 100644
index 00000000..d1c1f984
--- /dev/null
+++ b/docs/v0.3.0/assets/js/51a3e731.81e6ddb1.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[1953],{22025:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"providers/post_training/index","title":"Post_Training","description":"Overview","source":"@site/docs/providers/post_training/index.mdx","sourceDirName":"providers/post_training","slug":"/providers/post_training/","permalink":"/v0.3.0/docs/providers/post_training/","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Post Training","title":"Post_Training"},"sidebar":"tutorialSidebar","previous":{"title":"Meta-Reference","permalink":"/v0.3.0/docs/providers/agents/inline_meta-reference"},"next":{"title":"inline::huggingface","permalink":"/v0.3.0/docs/providers/post_training/inline_huggingface"}}');var t=n(74848),s=n(28453);const a={sidebar_label:"Post Training",title:"Post_Training"},o="Post_Training",d={},l=[{value:"Overview",id:"overview",level:2}];function c(e){const i={h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"post_training",children:"Post_Training"})}),"\n",(0,t.jsx)(i.h2,{id:"overview",children:"Overview"}),"\n",(0,t.jsxs)(i.p,{children:["This section contains documentation for all available providers for the ",(0,t.jsx)(i.strong,{children:"post_training"})," API."]})]})}function p(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/51d03ef1.b36344d7.js b/docs/v0.3.0/assets/js/51d03ef1.b36344d7.js
new file mode 100644
index 00000000..7c6df9a8
--- /dev/null
+++ b/docs/v0.3.0/assets/js/51d03ef1.b36344d7.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[1294],{61292:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>y,default:()=>j,frontMatter:()=>g,metadata:()=>o,toc:()=>b});const o=JSON.parse('{"id":"api-experimental/create-an-agent-with-the-given-configuration","title":"Create an agent with the given configuration.","description":"Create an agent with the given configuration.","source":"@site/docs/api-experimental/create-an-agent-with-the-given-configuration.api.mdx","sourceDirName":"api-experimental","slug":"/api-experimental/create-an-agent-with-the-given-configuration","permalink":"/v0.3.0/docs/api-experimental/create-an-agent-with-the-given-configuration","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"create-an-agent-with-the-given-configuration","title":"Create an agent with the given configuration.","description":"Create an agent with the given configuration.","sidebar_label":"Create an agent with the given configuration.","hide_title":true,"hide_table_of_contents":true,"api":"eJztG9tuGzf2Vw7mpUkgK3bQolthW8BxktZtkxi2g+7CCRRq5kjDmkNOSI5t1dC37OMC+3X7CYvDywwljXxrdlF3nZdYM5xzP4c8F15mGk2tpEGTjS6zZ9vb9F+BJte8tlzJbJTtStidobR7GpnFw7AezrktwZYIjF7C/othNshyJS1KS0BYXQueMwLy9FdDkC4zk5dYMfrLzmvMRpma/Iq5zQZZrVWN2nJPhwM55kWy0ljN5SwbrBD3TvJPDQIvUFo+5ahhqrQjK3fkFp68bLEYZKwoOH3GxEGCbcqEwUGm8VPDNRbZ6KRD/2GQWW4F4e8RwRoxrWw02kZLLOC8ROkp4XIGDCSee4KG2WJBNH3ZJ/HjkkB8atBYOGcGuDxjghegNFRMTJWusPh8wjaW2cYk67i0OEO9xt4Px8cH4FdDrgrMFq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gn9x1YOPFMMdM922ozaXlugC/QluqIhtltXL3yWpmy2yUPT3bYaIu2VPmp4UHmb+rYpz9NZqGjktr69HTp0zOt0pFx/YtQeWULUPllGGuKrcRGcwbzal9fXKZvYhucPKB3pEHHnZjwy+7oefVsd+eOd10EjcYbhi8WpkM2O7vpu/EnvNJ9IkP603V7t160zR9lzZF2+eD2MzsYk/oYS6I++W+3clqC677aBXIsrW3j1e6Vj0NneVOhyNitVybFmRjrbGvlhdLdhuLO20RoCdJ39lu8/CU/DSJ3sz9Valq6zRruWOwkOWYv3ww8GPydKHAfRCcKy0RHi2Fuy14eVGj5hVKywRNGZCfkJN4xZzt9KT+fjtO7ygwm9yaSLG5mmOo+Zj3Elb+sTgmhbKoFZfWuNzelsg15Ep7IRSUd1MtRE9DmYlZqua9p3EGobQrY64Dd3VOgWeoqZjkqXpNGjPD9/K9fPLk3//457/g5d8OXh7uv3755nj35ydPRnCgcUujvwtH4oBHIYwM4GxngpY99vipdp6XTM4QJjilaxwTzFXl53tIu26jp4hUMdnNBNz6isJKz7i9knBrQMF6qJP1tBaMu5qJi4KXIWKeZIFVcvL2hgXFRXp3eUnjNO+0WCzo8acG9dzfmnCXdCZkaScUfkpkBWoXDU5xHiYOUdqtY78fuoEd71zLVypo+/Zf7OY51vbKtR+SuH/w9uiYNtpwbYPcMhtlmp1T9ZWdZ6OMSih1W9tyzy4zweSsYbPoU/6SyX8AquYHPw==","sidebar_class_name":"post api-method","info_path":"docs/api-experimental/llama-stack-specification-experimental-apis","custom_edit_url":null},"sidebar":"experimentalApiSidebar","previous":{"title":"List all agents.","permalink":"/v0.3.0/docs/api-experimental/list-all-agents"},"next":{"title":"Describe an agent by its ID.","permalink":"/v0.3.0/docs/api-experimental/describe-an-agent-by-its-id"}}');var r=i(74848),n=i(28453),a=i(57742),s=i.n(a),p=i(78178),l=i.n(p),c=i(19624),d=i.n(c),m=i(96226),u=i.n(m),h=(i(77675),i(19365),i(51107));const g={id:"create-an-agent-with-the-given-configuration",title:"Create an agent with the given configuration.",description:"Create an agent with the given configuration.",sidebar_label:"Create an agent with the given configuration.",hide_title:!0,hide_table_of_contents:!0,api:"eJztG9tuGzf2Vw7mpUkgK3bQolthW8BxktZtkxi2g+7CCRRq5kjDmkNOSI5t1dC37OMC+3X7CYvDywwljXxrdlF3nZdYM5xzP4c8F15mGk2tpEGTjS6zZ9vb9F+BJte8tlzJbJTtStidobR7GpnFw7AezrktwZYIjF7C/othNshyJS1KS0BYXQueMwLy9FdDkC4zk5dYMfrLzmvMRpma/Iq5zQZZrVWN2nJPhwM55kWy0ljN5SwbrBD3TvJPDQIvUFo+5ahhqrQjK3fkFp68bLEYZKwoOH3GxEGCbcqEwUGm8VPDNRbZ6KRD/2GQWW4F4e8RwRoxrWw02kZLLOC8ROkp4XIGDCSee4KG2WJBNH3ZJ/HjkkB8atBYOGcGuDxjghegNFRMTJWusPh8wjaW2cYk67i0OEO9xt4Px8cH4FdDrgrMFq14rlPTS61JLbR4AAxMqbQF01QV03NQU6cwdGvOS56XwD3TmjNpnUaZDO8dngXBt4yLm2L2qwm1UHKGGsqmYnJLIyvYRCAk3yyRQ5i4NJbJ/AZcPnpbe/t6DLvw7vDnwEzOJEwQGoMFWEXGoTmeIVRKI3BJ+nSaAzZRjXXITY05n/IcVJ43WqPMcYWu29hz0HDUViu8xLydmDYIL4YImGpVORp2D/aHcKiaWSnmMFVCqHMDh6/24Ou/bH89JKHhBatqbxnRvr7c3u7wPWcFHHoT7+i5oeUHz3n2Tb/n5IJTQCqZAUN/WKWgYnIeARNUYDDjZyiBVaqR1smWV/jgVA9Odc+c6tk3Hb5jpeA1WXrwLJO61t9VAyU7Q8CLHLEgsZGzMYsgeMXtEA4EMoNg9RzYjHEJglnUcaf6atNOZVCfoQaUObkSatpzJTQSL2rMaQfGIIYH13pwrXvkWl+l+9U+WbZkAo68tXf4g3vtrpt8FEYxhLeNBouscrvSBFGCVO68WkT3KnDKGmF7j98bAT841YNT3S+n2u7DdgMXcl5CpsZmh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6isJKz7i9knBrQMF6qJP1tBaMu5qJi4KXIWKeZIFVcvL2hgXFRXp3eUnjNO+0WCzo8acG9dzfmnCXdCZkaScUfkpkBWoXDU5xHiYOUdqtY78fuoEd71zLVypo+/Zf7OY51vbKtR+SuH/w9uiYNtpwbYPcMhtlmp1T9ZWdZ6OMSih1W9tyzy4zweSsYbPoU/6SyX8AquYHPw==",sidebar_class_name:"post api-method",info_path:"docs/api-experimental/llama-stack-specification-experimental-apis",custom_edit_url:null},y=void 0,f={},b=[];function k(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Create an agent with the given configuration."}),"\n",(0,r.jsx)(s(),{method:"post",path:"/v1alpha/agents",context:"endpoint"}),"\n",(0,r.jsx)(t.p,{children:"Create an agent with the given configuration."}),"\n",(0,r.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,r.jsx)(l(),{parameters:[]}),"\n",(0,r.jsx)(d(),{title:"Body",body:{content:{"application/json":{schema:{type:"object",properties:{agent_config:{description:"The configuration for the agent.",type:"object",properties:{sampling_params:{type:"object",properties:{strategy:{oneOf:[{type:"object",properties:{type:{type:"string",const:"greedy",default:"greedy",description:'Must be "greedy" to identify this sampling strategy'}},additionalProperties:!1,required:["type"],title:"GreedySamplingStrategy",description:"Greedy sampling strategy that selects the highest probability token at each step."},{type:"object",properties:{type:{type:"string",const:"top_p",default:"top_p",description:'Must be "top_p" to identify this sampling strategy'},temperature:{type:"number",description:"Controls randomness in sampling. Higher values increase randomness"},top_p:{type:"number",default:.95,description:"Cumulative probability threshold for nucleus sampling. Defaults to 0.95"}},additionalProperties:!1,required:["type"],title:"TopPSamplingStrategy",description:"Top-p (nucleus) sampling strategy that samples from the smallest set of tokens with cumulative probability >= p."},{type:"object",properties:{type:{type:"string",const:"top_k",default:"top_k",description:'Must be "top_k" to identify this sampling strategy'},top_k:{type:"integer",description:"Number of top tokens to consider for sampling. Must be at least 1"}},additionalProperties:!1,required:["type","top_k"],title:"TopKSamplingStrategy",description:"Top-k sampling strategy that restricts sampling to the k most likely tokens."}],discriminator:{propertyName:"type",mapping:{greedy:{type:"object",properties:{type:{type:"string",const:"greedy",default:"greedy",description:'Must be "greedy" to identify this sampling strategy'}},additionalProperties:!1,required:["type"],title:"GreedySamplingStrategy",description:"Greedy sampling strategy that selects the highest probability token at each step."},top_p:{type:"object",properties:{type:{type:"string",const:"top_p",default:"top_p",description:'Must be "top_p" to identify this sampling strategy'},temperature:{type:"number",description:"Controls randomness in sampling. Higher values increase randomness"},top_p:{type:"number",default:.95,description:"Cumulative probability threshold for nucleus sampling. Defaults to 0.95"}},additionalProperties:!1,required:["type"],title:"TopPSamplingStrategy",description:"Top-p (nucleus) sampling strategy that samples from the smallest set of tokens with cumulative probability >= p."},top_k:{type:"object",properties:{type:{type:"string",const:"top_k",default:"top_k",description:'Must be "top_k" to identify this sampling strategy'},top_k:{type:"integer",description:"Number of top tokens to consider for sampling. Must be at least 1"}},additionalProperties:!1,required:["type","top_k"],title:"TopKSamplingStrategy",description:"Top-k sampling strategy that restricts sampling to the k most likely tokens."}}},description:"The sampling strategy."},max_tokens:{type:"integer",default:0,description:"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length."},repetition_penalty:{type:"number",default:1,description:"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics."},stop:{type:"array",items:{type:"string"},description:"Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence."}},additionalProperties:!1,required:["strategy"],title:"SamplingParams",description:"Sampling parameters."},input_shields:{type:"array",items:{type:"string"}},output_shields:{type:"array",items:{type:"string"}},toolgroups:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},args:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]}}},additionalProperties:!1,required:["name","args"],title:"AgentToolGroupWithArgs"}],title:"AgentTool"}},client_tools:{type:"array",items:{type:"object",properties:{toolgroup_id:{type:"string",description:"(Optional) ID of the tool group this tool belongs to"},name:{type:"string",description:"Name of the tool"},description:{type:"string",description:"(Optional) Human-readable description of what the tool does"},input_schema:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) JSON Schema for tool inputs (MCP inputSchema)"},output_schema:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) JSON Schema for tool outputs (MCP outputSchema)"},metadata:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"(Optional) Additional metadata about the tool"}},additionalProperties:!1,required:["name"],title:"ToolDef",description:"Tool definition used in runtime contexts."}},tool_choice:{type:"string",enum:["auto","required","none"],title:"ToolChoice",description:"Whether tool use is required or automatic. This is a hint to the model which may not be followed. It depends on the Instruction Following capabilities of the model.",deprecated:!0},tool_prompt_format:{type:"string",enum:["json","function_tag","python_list"],title:"ToolPromptFormat",description:"Prompt format for calling custom / zero shot tools.",deprecated:!0},tool_config:{type:"object",properties:{tool_choice:{oneOf:[{type:"string",enum:["auto","required","none"],title:"ToolChoice",description:"Whether tool use is required or automatic. This is a hint to the model which may not be followed. It depends on the Instruction Following capabilities of the model."},{type:"string"}],default:"auto",description:"(Optional) Whether tool use is automatic, required, or none. Can also specify a tool name to use a specific tool. Defaults to ToolChoice.auto."},tool_prompt_format:{type:"string",enum:["json","function_tag","python_list"],description:"(Optional) Instructs the model how to format tool calls. By default, Llama Stack will attempt to use a format that is best adapted to the model. - `ToolPromptFormat.json`: The tool calls are formatted as a JSON object. - `ToolPromptFormat.function_tag`: The tool calls are enclosed in a tag. - `ToolPromptFormat.python_list`: The tool calls are output as Python syntax -- a list of function calls."},system_message_behavior:{type:"string",enum:["append","replace"],description:"(Optional) Config for how to override the default system prompt. - `SystemMessageBehavior.append`: Appends the provided system message to the default system prompt. - `SystemMessageBehavior.replace`: Replaces the default system prompt with the provided system message. The system message can include the string '{{function_definitions}}' to indicate where the function definitions should be inserted.",default:"append"}},additionalProperties:!1,title:"ToolConfig",description:"Configuration for tool use."},max_infer_iters:{type:"integer",default:10},model:{type:"string",description:"The model identifier to use for the agent"},instructions:{type:"string",description:"The system instructions for the agent"},name:{type:"string",description:"Optional name for the agent, used in telemetry and identification"},enable_session_persistence:{type:"boolean",default:!1,description:"Optional flag indicating whether session data has to be persisted"},response_format:{description:"Optional response format configuration",oneOf:[{type:"object",properties:{type:{type:"string",enum:["json_schema","grammar"],description:'Must be "json_schema" to identify this format type',const:"json_schema",default:"json_schema"},json_schema:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The JSON schema the response should conform to. In a Python SDK, this is often a `pydantic` model."}},additionalProperties:!1,required:["type","json_schema"],title:"JsonSchemaResponseFormat",description:"Configuration for JSON schema-guided response generation."},{type:"object",properties:{type:{type:"string",enum:["json_schema","grammar"],description:'Must be "grammar" to identify this format type',const:"grammar",default:"grammar"},bnf:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The BNF grammar specification the response should conform to"}},additionalProperties:!1,required:["type","bnf"],title:"GrammarResponseFormat",description:"Configuration for grammar-guided response generation."}],discriminator:{propertyName:"type",mapping:{json_schema:{type:"object",properties:{type:{type:"string",enum:["json_schema","grammar"],description:'Must be "json_schema" to identify this format type',const:"json_schema",default:"json_schema"},json_schema:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The JSON schema the response should conform to. In a Python SDK, this is often a `pydantic` model."}},additionalProperties:!1,required:["type","json_schema"],title:"JsonSchemaResponseFormat",description:"Configuration for JSON schema-guided response generation."},grammar:{type:"object",properties:{type:{type:"string",enum:["json_schema","grammar"],description:'Must be "grammar" to identify this format type',const:"grammar",default:"grammar"},bnf:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The BNF grammar specification the response should conform to"}},additionalProperties:!1,required:["type","bnf"],title:"GrammarResponseFormat",description:"Configuration for grammar-guided response generation."}}},title:"ResponseFormat"}},additionalProperties:!1,required:["model","instructions"],title:"AgentConfig"}},additionalProperties:!1,required:["agent_config"],title:"CreateAgentRequest"}}},required:!0}}),"\n",(0,r.jsx)(u(),{id:void 0,label:void 0,responses:{200:{description:"An AgentCreateResponse with the agent ID.",content:{"application/json":{schema:{type:"object",properties:{agent_id:{type:"string",description:"Unique identifier for the created agent"}},additionalProperties:!1,required:["agent_id"],title:"AgentCreateResponse",description:"Response returned when creating a new agent."}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function j(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(k,{...e})}):k(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/51ea34f5.e6ec6ad4.js b/docs/v0.3.0/assets/js/51ea34f5.e6ec6ad4.js
new file mode 100644
index 00000000..99231c35
--- /dev/null
+++ b/docs/v0.3.0/assets/js/51ea34f5.e6ec6ad4.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[5413],{91932:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>h,default:()=>w,frontMatter:()=>y,metadata:()=>o,toc:()=>b});const o=JSON.parse('{"id":"api-deprecated/run-supervised-fine-tuning-of-a-model","title":"Run supervised fine-tuning of a model.","description":"Run supervised fine-tuning of a model.","source":"@site/docs/api-deprecated/run-supervised-fine-tuning-of-a-model.api.mdx","sourceDirName":"api-deprecated","slug":"/api-deprecated/run-supervised-fine-tuning-of-a-model","permalink":"/v0.3.0/docs/api-deprecated/run-supervised-fine-tuning-of-a-model","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"run-supervised-fine-tuning-of-a-model","title":"Run supervised fine-tuning of a model.","description":"Run supervised fine-tuning of a model.","sidebar_label":"Run supervised fine-tuning of a model.","hide_title":true,"hide_table_of_contents":true,"api":"eJztGlluG8vxKoX5kgxSopy35BHIB59lJw5kW5YoPAS2QBRnajhtzXSPexFNCzpD/vOVY+Q8uUCuEFT3bFwl+SkBDEgfEtXsrq1rr76JNJlSSUMmGt5EzwcD/pOQibUorVAyGkYjOFXGjjUKKeTsr2p6EPWiWElL0vJuLMtcxMi7Dz8ZPnITmTijAvmTXZQUDSM1/USxjXpRqVVJ2oqA8JOaTpwTSWensVrIWXR724swSQSDxfy0cyrF3FAv0vTZCU1JNPzQgrnsRVbYnOGsEB3d3jLIHzZxOM4IGBwZC3M0IOQ15iIBpaHAPFW6oOTxeDYWrTOdfUJampGOeitk/WU8PoWwG2KVUHTbcLcqrdWjL7VWGvzmHiCYTGkLxhUF6gWoFGxGQH7PPBNxBiIwrQVKC6nSgLL63uO5ZfgWRX5fzGE3o86VnJGGzBUo+5owwWlO0DmzRA5jEtJYlPE9uNx7Vwb12IcRXJydVMzEKGFK4AwlYBVoslrQNUGhNIGQfJ/+5gCnylmP3JQUi1TEoOLYaU0yphW6HqKO1Q3Xt9UIr6OdXkxbhFebJKRaFZ6G0enrAzhTbpblC0hVnqu5gbNXL+DnPw5+PmCh0RcsyqAZtX79MBi0+H7FBM6Cirf03FPzK8t5/stmy4lzQdJChgYMf7BKQYFyUQNmqIAwE9ckAQvlpPWyFQU9GdWTUX1nRvX8lxbfWCl4w5peWZbpmtbflIMMrwnoS0yUsNjY2NAS5KIQ9gBOc0JDYPUCcIZCQo6W9EFlbz9ui1SG9DVpIBmzKZGmhBXLSfpSUmwpqYT7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f08xwL7xmJ8dRCrwicIhmKnhV34g8e1eXy45O94WH3WjrVfthP6dizdqvuG8XI7FB5sGeke3TF8Pdo2Fz1aH1l2plQtVd054KAzwQtSXxq6dQdkW6ZfLdx6WFX371amRX55ywhldbhRDyF4uDBYHQ4MNjX0B9s64Xd2pytyd7eJq027urbVlvV+as14UsdB7kzubuRt6Hu1HaOOJ19pALXfbOrfVOirtHND6vihPn+5MbUL+rE5MQvfhURq0OQ6g25GUslnJTsIwvEvhFLlqayDKFsmnLNlwnn1kif4yT4cN76CX9Fw1GZDDz71+mhD34ufQpmlR0EBVJ3NdXD5PKvU6lokZD5KWPlB4DGzSoFk4iVv/OTEZiS4yafDOx8/+OfgpFOMOXlmoKjpo+S3Okr7R0zrwKf8bjuna9I4q6l6w5duDj7Kj/LZs3//45//+dff4fjl6dnLF6Pxy+Nnz4ZwQjOMF14SAVGBC34rpalQ15Twc+3UWacJKimZA7gwVd9bzKrooyml6o2UzBc+y2AvW6B/nBMC+v2fAi1dQOfpz/0hVNpq6Ys9LHMUfpDn3fhNFQk+hLteigXs9jdFg8texB6fD93csOZd6Pz2lpc/O9KL8F7Jv5WbsvZ94F5uRpiQ9lHgihYhXDMX/XFIBK4xd95XrT5m4lZDODGKYyrtzr2XnUB3+u6cU7Bp9WCKZRENI41zn2zOo2EUBf/JY7nhTVi7iXKUM8fTrmEUYPLPfwEBo2wd","sidebar_class_name":"post api-method","info_path":"docs/api-deprecated/llama-stack-specification-deprecated-apis","custom_edit_url":null},"sidebar":"deprecatedApiSidebar","previous":{"title":"Run preference optimization of a model.","permalink":"/v0.3.0/docs/api-deprecated/run-preference-optimization-of-a-model"},"next":{"title":"Safety","permalink":"/v0.3.0/docs/api-deprecated/safety"}}');var r=i(74848),n=i(28453),a=i(57742),p=i.n(a),s=i(78178),d=i.n(s),l=i(19624),c=i.n(l),u=i(96226),f=i.n(u),m=(i(77675),i(19365),i(51107));const y={id:"run-supervised-fine-tuning-of-a-model",title:"Run supervised fine-tuning of a model.",description:"Run supervised fine-tuning of a model.",sidebar_label:"Run supervised fine-tuning of a model.",hide_title:!0,hide_table_of_contents:!0,api:"eJztGlluG8vxKoX5kgxSopy35BHIB59lJw5kW5YoPAS2QBRnajhtzXSPexFNCzpD/vOVY+Q8uUCuEFT3bFwl+SkBDEgfEtXsrq1rr76JNJlSSUMmGt5EzwcD/pOQibUorVAyGkYjOFXGjjUKKeTsr2p6EPWiWElL0vJuLMtcxMi7Dz8ZPnITmTijAvmTXZQUDSM1/USxjXpRqVVJ2oqA8JOaTpwTSWensVrIWXR724swSQSDxfy0cyrF3FAv0vTZCU1JNPzQgrnsRVbYnOGsEB3d3jLIHzZxOM4IGBwZC3M0IOQ15iIBpaHAPFW6oOTxeDYWrTOdfUJampGOeitk/WU8PoWwG2KVUHTbcLcqrdWjL7VWGvzmHiCYTGkLxhUF6gWoFGxGQH7PPBNxBiIwrQVKC6nSgLL63uO5ZfgWRX5fzGE3o86VnJGGzBUo+5owwWlO0DmzRA5jEtJYlPE9uNx7Vwb12IcRXJydVMzEKGFK4AwlYBVoslrQNUGhNIGQfJ/+5gCnylmP3JQUi1TEoOLYaU0yphW6HqKO1Q3Xt9UIr6OdXkxbhFebJKRaFZ6G0enrAzhTbpblC0hVnqu5gbNXL+DnPw5+PmCh0RcsyqAZtX79MBi0+H7FBM6Cirf03FPzK8t5/stmy4lzQdJChgYMf7BKQYFyUQNmqIAwE9ckAQvlpPWyFQU9GdWTUX1nRvX8lxbfWCl4w5peWZbpmtbflIMMrwnoS0yUsNjY2NAS5KIQ9gBOc0JDYPUCcIZCQo6W9EFlbz9ui1SG9DVpIBmzKZGmhBXLSfpSUmwpqYT7ZFpPpvVdmdaP3Xj1mjVbYg7nQdtb/JV5jdZVvhZGcgDvnAZLWPioNCWSIJUVqaCkNq+EUnS53ZDu7gD8ZFRPRvV9GdVgE7Z7mJC3ElY1nBnmpltNwd4LVfDfc6XkPjO0zMCZk2BcSfpasPRTIalvnT+pUkAoVEI5F5ElaizIkmYU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UsdB7kzubuRt6Hu1HaOOJ19pALXfbOrfVOirtHND6vihPn+5MbUL+rE5MQvfhURq0OQ6g25GUslnJTsIwvEvhFLlqayDKFsmnLNlwnn1kif4yT4cN76CX9Fw1GZDDz71+mhD34ufQpmlR0EBVJ3NdXD5PKvU6lokZD5KWPlB4DGzSoFk4iVv/OTEZiS4yafDOx8/+OfgpFOMOXlmoKjpo+S3Okr7R0zrwKf8bjuna9I4q6l6w5duDj7Kj/LZs3//45//+dff4fjl6dnLF6Pxy+Nnz4ZwQjOMF14SAVGBC34rpalQ15Twc+3UWacJKimZA7gwVd9bzKrooyml6o2UzBc+y2AvW6B/nBMC+v2fAi1dQOfpz/0hVNpq6Ys9LHMUfpDn3fhNFQk+hLteigXs9jdFg8texB6fD93csOZd6Pz2lpc/O9KL8F7Jv5WbsvZ94F5uRpiQ9lHgihYhXDMX/XFIBK4xd95XrT5m4lZDODGKYyrtzr2XnUB3+u6cU7Bp9WCKZRENI41zn2zOo2EUBf/JY7nhTVi7iXKUM8fTrmEUYPLPfwEBo2wd",sidebar_class_name:"post api-method",info_path:"docs/api-deprecated/llama-stack-specification-deprecated-apis",custom_edit_url:null},h=void 0,g={},b=[];function v(e){const t={admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Run supervised fine-tuning of a model."}),"\n",(0,r.jsx)(p(),{method:"post",path:"/v1/post-training/supervised-fine-tune",context:"endpoint"}),"\n",(0,r.jsx)(t.admonition,{title:"deprecated",type:"caution",children:(0,r.jsx)(t.p,{children:"This endpoint has been deprecated and may be replaced or removed in future versions of the API."})}),"\n",(0,r.jsx)(t.p,{children:"Run supervised fine-tuning of a model."}),"\n",(0,r.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,r.jsx)(d(),{parameters:[]}),"\n",(0,r.jsx)(c(),{title:"Body",body:{content:{"application/json":{schema:{type:"object",properties:{job_uuid:{type:"string",description:"The UUID of the job to create."},training_config:{description:"The training configuration.",type:"object",properties:{n_epochs:{type:"integer",description:"Number of training epochs to run"},max_steps_per_epoch:{type:"integer",default:1,description:"Maximum number of steps to run per epoch"},gradient_accumulation_steps:{type:"integer",default:1,description:"Number of steps to accumulate gradients before updating"},max_validation_steps:{type:"integer",default:1,description:"(Optional) Maximum number of validation steps per epoch"},data_config:{description:"(Optional) Configuration for data loading and formatting",type:"object",properties:{dataset_id:{type:"string",description:"Unique identifier for the training dataset"},batch_size:{type:"integer",description:"Number of samples per training batch"},shuffle:{type:"boolean",description:"Whether to shuffle the dataset during training"},data_format:{description:"Format of the dataset (instruct or dialog)",type:"string",enum:["instruct","dialog"],title:"DatasetFormat"},validation_dataset_id:{type:"string",description:"(Optional) Unique identifier for the validation dataset"},packed:{type:"boolean",default:!1,description:"(Optional) Whether to pack multiple samples into a single sequence for efficiency"},train_on_input:{type:"boolean",default:!1,description:"(Optional) Whether to compute loss on input tokens as well as output tokens"}},additionalProperties:!1,required:["dataset_id","batch_size","shuffle","data_format"],title:"DataConfig"},optimizer_config:{description:"(Optional) Configuration for the optimization algorithm",type:"object",properties:{optimizer_type:{description:"Type of optimizer to use (adam, adamw, or sgd)",type:"string",enum:["adam","adamw","sgd"],title:"OptimizerType"},lr:{type:"number",description:"Learning rate for the optimizer"},weight_decay:{type:"number",description:"Weight decay coefficient for regularization"},num_warmup_steps:{type:"integer",description:"Number of steps for learning rate warmup"}},additionalProperties:!1,required:["optimizer_type","lr","weight_decay","num_warmup_steps"],title:"OptimizerConfig"},efficiency_config:{description:"(Optional) Configuration for memory and compute optimizations",type:"object",properties:{enable_activation_checkpointing:{type:"boolean",default:!1,description:"(Optional) Whether to use activation checkpointing to reduce memory usage"},enable_activation_offloading:{type:"boolean",default:!1,description:"(Optional) Whether to offload activations to CPU to save GPU memory"},memory_efficient_fsdp_wrap:{type:"boolean",default:!1,description:"(Optional) Whether to use memory-efficient FSDP wrapping"},fsdp_cpu_offload:{type:"boolean",default:!1,description:"(Optional) Whether to offload FSDP parameters to CPU"}},additionalProperties:!1,title:"EfficiencyConfig"},dtype:{type:"string",default:"bf16",description:"(Optional) Data type for model parameters (bf16, fp16, fp32)"}},additionalProperties:!1,required:["n_epochs","max_steps_per_epoch","gradient_accumulation_steps"],title:"TrainingConfig"},hyperparam_search_config:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The hyperparam search configuration."},logger_config:{type:"object",additionalProperties:{oneOf:[{type:"null"},{type:"boolean"},{type:"number"},{type:"string"},{type:"array"},{type:"object"}]},description:"The logger configuration."},model:{type:"string",description:"The model to fine-tune."},checkpoint_dir:{type:"string",description:"The directory to save checkpoint(s) to."},algorithm_config:{description:"The algorithm configuration.",oneOf:[{type:"object",properties:{type:{type:"string",const:"LoRA",default:"LoRA",description:'Algorithm type identifier, always "LoRA"'},lora_attn_modules:{type:"array",items:{type:"string"},description:"List of attention module names to apply LoRA to"},apply_lora_to_mlp:{type:"boolean",description:"Whether to apply LoRA to MLP layers"},apply_lora_to_output:{type:"boolean",description:"Whether to apply LoRA to output projection layers"},rank:{type:"integer",description:"Rank of the LoRA adaptation (lower rank = fewer parameters)"},alpha:{type:"integer",description:"LoRA scaling parameter that controls adaptation strength"},use_dora:{type:"boolean",default:!1,description:"(Optional) Whether to use DoRA (Weight-Decomposed Low-Rank Adaptation)"},quantize_base:{type:"boolean",default:!1,description:"(Optional) Whether to quantize the base model weights"}},additionalProperties:!1,required:["type","lora_attn_modules","apply_lora_to_mlp","apply_lora_to_output","rank","alpha"],title:"LoraFinetuningConfig",description:"Configuration for Low-Rank Adaptation (LoRA) fine-tuning."},{type:"object",properties:{type:{type:"string",const:"QAT",default:"QAT",description:'Algorithm type identifier, always "QAT"'},quantizer_name:{type:"string",description:"Name of the quantization algorithm to use"},group_size:{type:"integer",description:"Size of groups for grouped quantization"}},additionalProperties:!1,required:["type","quantizer_name","group_size"],title:"QATFinetuningConfig",description:"Configuration for Quantization-Aware Training (QAT) fine-tuning."}],discriminator:{propertyName:"type",mapping:{LoRA:{type:"object",properties:{type:{type:"string",const:"LoRA",default:"LoRA",description:'Algorithm type identifier, always "LoRA"'},lora_attn_modules:{type:"array",items:{type:"string"},description:"List of attention module names to apply LoRA to"},apply_lora_to_mlp:{type:"boolean",description:"Whether to apply LoRA to MLP layers"},apply_lora_to_output:{type:"boolean",description:"Whether to apply LoRA to output projection layers"},rank:{type:"integer",description:"Rank of the LoRA adaptation (lower rank = fewer parameters)"},alpha:{type:"integer",description:"LoRA scaling parameter that controls adaptation strength"},use_dora:{type:"boolean",default:!1,description:"(Optional) Whether to use DoRA (Weight-Decomposed Low-Rank Adaptation)"},quantize_base:{type:"boolean",default:!1,description:"(Optional) Whether to quantize the base model weights"}},additionalProperties:!1,required:["type","lora_attn_modules","apply_lora_to_mlp","apply_lora_to_output","rank","alpha"],title:"LoraFinetuningConfig",description:"Configuration for Low-Rank Adaptation (LoRA) fine-tuning."},QAT:{type:"object",properties:{type:{type:"string",const:"QAT",default:"QAT",description:'Algorithm type identifier, always "QAT"'},quantizer_name:{type:"string",description:"Name of the quantization algorithm to use"},group_size:{type:"integer",description:"Size of groups for grouped quantization"}},additionalProperties:!1,required:["type","quantizer_name","group_size"],title:"QATFinetuningConfig",description:"Configuration for Quantization-Aware Training (QAT) fine-tuning."}}},title:"AlgorithmConfig"}},additionalProperties:!1,required:["job_uuid","training_config","hyperparam_search_config","logger_config"],title:"SupervisedFineTuneRequest"}}},required:!0}}),"\n",(0,r.jsx)(f(),{id:void 0,label:void 0,responses:{200:{description:"A PostTrainingJob.",content:{"application/json":{schema:{type:"object",properties:{job_uuid:{type:"string"}},additionalProperties:!1,required:["job_uuid"],title:"PostTrainingJob"}}}},400:{description:"The request was invalid or malformed",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:400,title:"Bad Request",detail:"The request was invalid or malformed"}}}},429:{description:"The client has sent too many requests in a given amount of time",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:429,title:"Too Many Requests",detail:"You have exceeded the rate limit. Please try again later."}}}},500:{description:"The server encountered an unexpected error",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:500,title:"Internal Server Error",detail:"An unexpected error occurred. Our team has been notified."}}}},default:{description:"An unexpected error occurred",content:{"application/json":{schema:{type:"object",properties:{status:{type:"integer",description:"HTTP status code"},title:{type:"string",description:"Error title, a short summary of the error which is invariant for an error type"},detail:{type:"string",description:"Error detail, a longer human-readable description of the error"},instance:{type:"string",description:"(Optional) A URL which can be used to retrieve more information about the specific occurrence of the error"}},additionalProperties:!1,required:["status","title","detail"],title:"Error",description:"Error response from the API. Roughly follows RFC 7807."},example:{status:0,title:"Error",detail:"An unexpected error occurred"}}}}}})]})}function w(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(v,{...e})}):v(e)}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/532a8b9b.203fcb02.js b/docs/v0.3.0/assets/js/532a8b9b.203fcb02.js
new file mode 100644
index 00000000..454a771a
--- /dev/null
+++ b/docs/v0.3.0/assets/js/532a8b9b.203fcb02.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[4479],{14795:(t,e,s)=>{s.d(e,{A:()=>_});s(96540);var i=s(34164),r=s(26972),o=s(28774),n=s(53465),a=s(16654),c=s(21312),l=s(51107);const d={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=s(74848);function p({className:t,href:e,children:s}){return(0,u.jsx)(o.default,{href:e,className:(0,i.A)("card padding--lg",d.cardContainer,t),children:s})}function m({className:t,href:e,icon:s,title:r,description:o}){return(0,u.jsxs)(p,{href:e,className:t,children:[(0,u.jsxs)(l.default,{as:"h2",className:(0,i.A)("text--truncate",d.cardTitle),title:r,children:[s," ",r]}),o&&(0,u.jsx)("p",{className:(0,i.A)("text--truncate",d.cardDescription),title:o,children:o})]})}function f({item:t}){const e=(0,r.Nr)(t),s=function(){const{selectMessage:t}=(0,n.W)();return e=>t(e,(0,c.translate)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:e}))}();return e?(0,u.jsx)(m,{className:t.className,href:e,icon:"\ud83d\uddc3\ufe0f",title:t.label,description:t.description??s(t.items.length)}):null}function h({item:t}){const e=(0,a.A)(t.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",s=(0,r.cC)(t.docId??void 0);return(0,u.jsx)(m,{className:t.className,href:t.href,icon:e,title:t.label,description:t.description??s?.description})}function g({item:t}){switch(t.type){case"link":return(0,u.jsx)(h,{item:t});case"category":return(0,u.jsx)(f,{item:t});default:throw new Error(`unknown item type ${JSON.stringify(t)}`)}}const x={docCardListItem:"docCardListItem_W1sv"};function N({className:t}){const e=(0,r.a4)();return(0,u.jsx)(_,{items:e,className:t})}function j({item:t}){return(0,u.jsx)("article",{className:(0,i.A)(x.docCardListItem,"col col--6"),children:(0,u.jsx)(g,{item:t})})}function _(t){const{items:e,className:s}=t;if(!e)return(0,u.jsx)(N,{...t});const o=(0,r.d1)(e);return(0,u.jsx)("section",{className:(0,i.A)("row",s),children:o.map((t,e)=>(0,u.jsx)(j,{item:t},e))})}},44596:(t,e,s)=>{s.r(e),s.d(e,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>i,toc:()=>u});const i=JSON.parse('{"id":"api/tool-groups","title":"ToolGroups","description":"ToolGroups","source":"@site/docs/api/tool-groups.tag.mdx","sourceDirName":"api","slug":"/api/tool-groups","permalink":"/v0.3.0/docs/api/tool-groups","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"tool-groups","title":"ToolGroups","description":"ToolGroups","custom_edit_url":null},"sidebar":"stableApiSidebar","previous":{"title":"Generate synthetic data based on input dialogs and apply filtering.","permalink":"/v0.3.0/docs/api/generate-synthetic-data-based-on-input-dialogs-and-apply-filtering"},"next":{"title":"List tool groups with optional provider.","permalink":"/v0.3.0/docs/api/list-tool-groups-with-optional-provider"}}');var r=s(74848),o=s(28453),n=s(14795),a=s(83262);const c={id:"tool-groups",title:"ToolGroups",description:"ToolGroups",custom_edit_url:null},l=void 0,d={},u=[];function p(t){return(0,r.jsx)(n.A,{items:(0,a.useCurrentSidebarCategory)().items})}function m(t={}){const{wrapper:e}={...(0,o.R)(),...t.components};return e?(0,r.jsx)(e,{...t,children:(0,r.jsx)(p,{...t})}):p()}}}]);
\ No newline at end of file
diff --git a/docs/v0.3.0/assets/js/540.5e95b40f.js b/docs/v0.3.0/assets/js/540.5e95b40f.js
new file mode 100644
index 00000000..323dbc5f
--- /dev/null
+++ b/docs/v0.3.0/assets/js/540.5e95b40f.js
@@ -0,0 +1,2 @@
+/*! For license information please see 540.5e95b40f.js.LICENSE.txt */
+(self.webpackChunkdocusaurus_template_openapi_docs=self.webpackChunkdocusaurus_template_openapi_docs||[]).push([[540],{58291:(e,t,r)=>{var n,i;!function(){var s,o,a,u,l,c,d,h,f,p,y,m,g,x,v,w,E,Q,k,b,S,L,T,P,I,O,R,C,F,N,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9",j.utils={},j.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n0){var u=j.utils.clone(t)||{};u.position=[o,a],u.index=i.length,i.push(new j.Token(r.slice(o,s),u))}o=s+1}}return i},j.tokenizer.separator=/[\s\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach(function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)}),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r1&&(se&&(r=i),s!=e);)n=r-t,i=t+Math.floor(n/2),s=this.elements[2*i];return s==e||s>e?2*i:sa?l+=2:o==a&&(t+=r[u+1]*n[l+1],u+=2,l+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t0){var s,o=i.str.charAt(0);o in i.node.edges?s=i.node.edges[o]:(s=new j.TokenSet,i.node.edges[o]=s),1==i.str.length&&(s.final=!0),n.push({node:s,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else{a=new j.TokenSet;i.node.edges["*"]=a}if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new j.TokenSet;i.node.edges["*"]=u}1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var l,c=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?l=i.node.edges[d]:(l=new j.TokenSet,i.node.edges[d]=l),1==i.str.length&&(l.final=!0),n.push({node:l,editsRemaining:i.editsRemaining-1,str:c+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query(function(t){new j.QueryParser(e,t).parse()})},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n){r="expecting term or field, found nothing";throw new j.QueryParseError(r,t.start,t.end)}switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:r="expecting term or field, found '"+n.type+"'";throw new j.QueryParseError(r,n.start,n.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),n="unrecognised field '"+t.str+"', possible fields: "+r;throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){n="expecting term, found nothing";throw new j.QueryParseError(n,t.start,t.end)}if(i.type===j.QueryLexer.TERM)return j.QueryParser.parseTerm;n="expecting term, found '"+i.type+"'";throw new j.QueryParseError(n,i.start,i.end)}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+r.type+"'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type '"+i.type+"'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type '"+i.type+"'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()},90540:(e,t,r)=>{"use strict";const n=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),u=e=>"object"==typeof e&&null!==e||"function"==typeof e,l={canHandle:e=>u(e)&&e[n],serialize(e){const{port1:t,port2:r}=new MessageChannel;return d(e,t),[r,[r]]},deserialize:e=>(e.start(),function(e,t){const r=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const n=r.get(t.id);if(n)try{n(t)}finally{r.delete(t.id)}}),g(e,r,[],t)}(e))},c=new Map([["proxy",l],["throw",{canHandle:e=>u(e)&&a in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function d(e,t=globalThis,r=["*"]){t.addEventListener("message",function i(s){if(!s||!s.data)return;if(!function(e,t){for(const r of e){if(t===r||"*"===r)return!0;if(r instanceof RegExp&&r.test(t))return!0}return!1}(r,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:u,type:l,path:c}=Object.assign({path:[]},s.data),f=(s.data.argumentList||[]).map(E);let p;try{const t=c.slice(0,-1).reduce((e,t)=>e[t],e),r=c.reduce((e,t)=>e[t],e);switch(l){case"GET":p=r;break;case"SET":t[c.slice(-1)[0]]=E(s.data.value),p=!0;break;case"APPLY":p=r.apply(t,f);break;case"CONSTRUCT":p=function(e){return Object.assign(e,{[n]:!0})}(new r(...f));break;case"ENDPOINT":{const{port1:t,port2:r}=new MessageChannel;d(e,r),p=function(e,t){return v.set(e,t),e}(t,[t])}break;case"RELEASE":p=void 0;break;default:return}}catch(y){p={value:y,[a]:0}}Promise.resolve(p).catch(e=>({value:e,[a]:0})).then(r=>{const[n,s]=w(r);t.postMessage(Object.assign(Object.assign({},n),{id:u}),s),"RELEASE"===l&&(t.removeEventListener("message",i),h(t),o in e&&"function"==typeof e[o]&&e[o]())}).catch(e=>{const[r,n]=w({value:new TypeError("Unserializable return value"),[a]:0});t.postMessage(Object.assign(Object.assign({},r),{id:u}),n)})}),t.start&&t.start()}function h(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function f(e){if(e)throw new Error("Proxy has been released and is not useable")}function p(e){return Q(e,new Map,{type:"RELEASE"}).then(()=>{h(e)})}const y=new WeakMap,m="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(y.get(e)||0)-1;y.set(e,t),0===t&&p(e)});function g(e,t,r=[],n=function(){}){let o=!1;const a=new Proxy(n,{get(n,i){if(f(o),i===s)return()=>{!function(e){m&&m.unregister(e)}(a),p(e),t.clear(),o=!0};if("then"===i){if(0===r.length)return{then:()=>a};const n=Q(e,t,{type:"GET",path:r.map(e=>e.toString())}).then(E);return n.then.bind(n)}return g(e,t,[...r,i])},set(n,i,s){f(o);const[a,u]=w(s);return Q(e,t,{type:"SET",path:[...r,i].map(e=>e.toString()),value:a},u).then(E)},apply(n,s,a){f(o);const u=r[r.length-1];if(u===i)return Q(e,t,{type:"ENDPOINT"}).then(E);if("bind"===u)return g(e,t,r.slice(0,-1));const[l,c]=x(a);return Q(e,t,{type:"APPLY",path:r.map(e=>e.toString()),argumentList:l},c).then(E)},construct(n,i){f(o);const[s,a]=x(i);return Q(e,t,{type:"CONSTRUCT",path:r.map(e=>e.toString()),argumentList:s},a).then(E)}});return function(e,t){const r=(y.get(t)||0)+1;y.set(t,r),m&&m.register(e,t,e)}(a,e),a}function x(e){const t=e.map(w);return[t.map(e=>e[0]),(r=t.map(e=>e[1]),Array.prototype.concat.apply([],r))];var r}const v=new WeakMap;function w(e){for(const[t,r]of c)if(r.canHandle(e)){const[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},v.get(e)||[]]}function E(e){switch(e.type){case"HANDLER":return c.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Q(e,t,r,n){return new Promise(i=>{const s=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(s,i),e.start&&e.start(),e.postMessage(Object.assign({id:s},r),n)})}var k=r(58291),b=r.n(k),S=r(84809);const L=12;function T(e,t){const r=function(e,t){const r=e.map(e=>/\p{Unified_Ideograph}/u.test(e)?function(e,t){const r=[];return function e(n,i){let s=0,o=!1;for(const a of t)if(n.substr(0,a.length)===a){const t={missed:i.missed,term:i.term.concat({value:a})};n.length>a.length?e(n.substr(a.length),t):r.push(t),o=!0}else for(let t=a.length-1;t>s;t-=1){const u=a.substr(0,t);if(n.substr(0,t)===u){s=t;const a={missed:i.missed,term:i.term.concat({value:u,trailing:!0})};n.length>t?e(n.substr(t),a):r.push(a),o=!0;break}}o||(n.length>0?e(n.substr(1),{missed:i.missed+1,term:i.term}):i.term.length>0&&r.push(i))}(e,{missed:0,term:[]}),r.sort((e,t)=>{const r=e.missed>0?1:0,n=t.missed>0?1:0;return r!==n?r-n:e.term.length-t.term.length}).map(e=>e.term)}(e,t):[{value:e}]).slice(0,L),n=r.filter(e=>e.length>1);let i=1,s=!1;for(const a of n)if(s)a.splice(1,a.length-1);else{a.length>6&&a.splice(6,a.length-6);const e=i*a.length;if(e>=L){if(e>L){const e=Math.floor(L/i);a.splice(e,a.length-e),i*=e}else i=e;i>6&&(s=!0)}else i=e}const o=[];return function e(t,n){if(t===r.length||n.length>=L)o.push(n.slice(0,L));else for(const i of r[t])e(t+1,n.concat(i))}(0,[]),o}(e,t);if(0===r.length)return[{tokens:e,term:e.map(e=>({value:e,presence:b().Query.presence.REQUIRED,wildcard:b().Query.wildcard.LEADING|b().Query.wildcard.TRAILING}))}];for(const a of r)a[a.length-1].maybeTyping=!0;const n=[];for(const a of S.BH)if("en"===a)S.sx.includes(a)||n.unshift(b().stopWordFilter);else{const e=b()[a];e.stopWordFilter&&!S.sx.includes(a)&&n.unshift(e.stopWordFilter)}let i;if(n.length>0){const e=e=>n.reduce((e,t)=>e.filter(e=>t(e.value)),e);i=[];const t=[];for(const n of r){const r=e(n);i.push(r),r.length0&&t.push(r)}r.push(...t)}else i=r.slice();const s=[];for(const a of i)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)s.push(a.slice(0,e).concat(a.slice(e+1)));const o=Math.max(0,S.Ho);return I(r,o).concat(I(s,o))}function P(e,t,r){return e.flatMap(e=>{const n={tokens:e.map(e=>e.value),term:e.map(e=>{const n=r?e.trailing||e.maybeTyping:e.trailing,i=t>0&&e.value.length>t?t:void 0;return{value:e.value,presence:b().Query.presence.REQUIRED,wildcard:n?b().Query.wildcard.TRAILING:b().Query.wildcard.NONE,editDistance:i}})};return t&&n.term.every(e=>!e.editDistance)?[]:n})}function I(e,t){return Array.from({length:t+1},(t,r)=>function(e,t){return P(e,t).concat(P(e.filter(e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping}),t,!0))}(e,r)).flat()}var O;!function(e){e[e.Title=0]="Title",e[e.Heading=1]="Heading",e[e.Description=2]="Description",e[e.Keywords=3]="Keywords",e[e.Content=4]="Content"}(O||(O={}));const R=new Map;d(class{async fetchIndexes(e,t){await this.lowLevelFetchIndexes(e,t)}async lowLevelFetchIndexes(e,t){const r=`${e}${t}`;let n=R.get(r);return n||(n=async function(e,t){const r=`${e}${S.IH.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(r,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const n=await(await fetch(r)).json(),i=n.map(({documents:e,index:t},r)=>({type:r,documents:e,index:b().Index.load(t)})),s=n.reduce((e,t)=>{for(const r of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(r[0][0])&&e.add(r[0]);return e},new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}(e,t),R.set(r,n)),n}async search(e,t,r,n){const i=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return b()[t[0]].tokenizer(e).map(e=>e.toString());let r=/[^-\s]+/g;return t.includes("zh")&&(r=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(r)||[]}(r,S.BH);if(0===i.length)return[];const{wrappedIndexes:s,zhDictionary:o}=await this.lowLevelFetchIndexes(e,t),a=T(i,o),u=[];e:for(const{term:l,tokens:c}of a)for(const{documents:e,index:t,type:r}of s)if(u.push(...t.query(e=>{for(const t of l)e.term(t.value,{wildcard:t.wildcard,presence:t.presence,...t.editDistance?{editDistance:t.editDistance}:null})}).slice(0,n).filter(e=>!u.some(t=>t.document.i.toString()===e.ref)).slice(0,n-u.length).map(t=>{const n=e.find(e=>e.i.toString()===t.ref);return{document:n,type:r,page:r!==O.Title&&s[0].documents.find(e=>e.i===n.p),metadata:t.matchData.metadata,tokens:c,score:t.score}})),u.length>=n)break e;return function(e){e.forEach((e,t)=>{e.index=t}),e.sort((t,r)=>{let n=t.type!==O.Heading&&t.type!==O.Content&&t.type!==O.Description||!t.page?t.index:e.findIndex(e=>e.document===t.page),i=r.type!==O.Heading&&r.type!==O.Content&&r.type!==O.Description||!r.page?r.index:e.findIndex(e=>e.document===r.page);if(-1===n&&(n=t.index),-1===i&&(i=r.index),n===i){const e=(0===r.type?1:0)-(0===t.type?1:0);return 0===e?t.index-r.index:e}return n-i})}(u),function(e){e.forEach((t,r)=>{r>0&&t.page&&e.slice(0,r).some(e=>(e.type===O.Keywords?e.page:e.document)===t.page)&&(r{var t={};e.exports=t,t.creature=a(89211),t.name=a(97637)},218:e=>{e.exports=["2011-10-12","2012-11-12","2015-11-11","2013-9-12"]},251:(e,n)=>{n.read=function(e,n,a,t,r){var i,o,s=8*r-t-1,c=(1<