import{s as ms,o as ys,n as g}from"../chunks/scheduler.37c15a92.js";import{S as ws,i as ds,g as T,s as y,r as d,A as Js,h as f,f as r,c as w,j as cs,u as J,x as Z,k as Sl,y as hs,a as i,v as h,d as u,t as j,w as b,m as cl,n as ml}from"../chunks/index.2bf4358c.js";import{T as us}from"../chunks/Tip.363c041f.js";import{C as B}from"../chunks/CodeBlock.4e987730.js";import{H as V}from"../chunks/Heading.8ada512a.js";import{H as il,a as W}from"../chunks/HfOption.02c8e375.js";import{E as js}from"../chunks/index.e71982be.js";function bs(U){let e,p,t="tools",c,o,a="retriever",s,l,M="tools.py",I,G,x="retriever.py",v;return{c(){e=cl("If you haven't implemented the tools yet, go back to the "),p=T("a"),p.textContent=t,c=cl(" and "),o=T("a"),o.textContent=a,s=cl(" sections to implement them, and add them to the "),l=T("code"),l.textContent=M,I=cl(" and "),G=T("code"),G.textContent=x,v=cl(" files."),this.h()},l($){e=ml($,"If you haven't implemented the tools yet, go back to the "),p=f($,"A",{href:!0,"data-svelte-h":!0}),Z(p)!=="svelte-1sj1t0f"&&(p.textContent=t),c=ml($," and "),o=f($,"A",{href:!0,"data-svelte-h":!0}),Z(o)!=="svelte-1mms3mq"&&(o.textContent=a),s=ml($," sections to implement them, and add them to the "),l=f($,"CODE",{"data-svelte-h":!0}),Z(l)!=="svelte-1re6lm8"&&(l.textContent=M),I=ml($," and "),G=f($,"CODE",{"data-svelte-h":!0}),Z(G)!=="svelte-olq8cj"&&(G.textContent=x),v=ml($," files."),this.h()},h(){Sl(p,"href","./tools"),Sl(o,"href","./invitees")},m($,k){i($,e,k),i($,p,k),i($,c,k),i($,o,k),i($,s,k),i($,l,k),i($,I,k),i($,G,k),i($,v,k)},p:g,d($){$&&(r(e),r(p),r(c),r(o),r(s),r(l),r(I),r(G),r(v))}}}function Us(U){let e,p,t,c="Now, let’s combine all these tools into a single agent:",o,a,s;return e=new B({props:{code:"JTIzJTIwSW1wb3J0JTIwbmVjZXNzYXJ5JTIwbGlicmFyaWVzJTBBaW1wb3J0JTIwcmFuZG9tJTBBZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCUwQSUwQSUyMyUyMEltcG9ydCUyMG91ciUyMGN1c3RvbSUyMHRvb2xzJTIwZnJvbSUyMHRoZWlyJTIwbW9kdWxlcyUwQWZyb20lMjB0b29scyUyMGltcG9ydCUyMER1Y2tEdWNrR29TZWFyY2hUb29sJTJDJTIwV2VhdGhlckluZm9Ub29sJTJDJTIwSHViU3RhdHNUb29sJTBBZnJvbSUyMHJldHJpZXZlciUyMGltcG9ydCUyMGxvYWRfZ3Vlc3RfZGF0YXNldA==",highlighted:`<span class="hljs-comment"># Import necessary libraries</span>
<span class="hljs-keyword">import</span> random
<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> CodeAgent, InferenceClientModel

<span class="hljs-comment"># Import our custom tools from their modules</span>
<span class="hljs-keyword">from</span> tools <span class="hljs-keyword">import</span> DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
<span class="hljs-keyword">from</span> retriever <span class="hljs-keyword">import</span> load_guest_dataset`,wrap:!1}}),a=new B({props:{code:"JTIzJTIwSW5pdGlhbGl6ZSUyMHRoZSUyMEh1Z2dpbmclMjBGYWNlJTIwbW9kZWwlMEFtb2RlbCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudE1vZGVsKCklMEElMEElMjMlMjBJbml0aWFsaXplJTIwdGhlJTIwd2ViJTIwc2VhcmNoJTIwdG9vbCUwQXNlYXJjaF90b29sJTIwJTNEJTIwRHVja0R1Y2tHb1NlYXJjaFRvb2woKSUwQSUwQSUyMyUyMEluaXRpYWxpemUlMjB0aGUlMjB3ZWF0aGVyJTIwdG9vbCUwQXdlYXRoZXJfaW5mb190b29sJTIwJTNEJTIwV2VhdGhlckluZm9Ub29sKCklMEElMEElMjMlMjBJbml0aWFsaXplJTIwdGhlJTIwSHViJTIwc3RhdHMlMjB0b29sJTBBaHViX3N0YXRzX3Rvb2wlMjAlM0QlMjBIdWJTdGF0c1Rvb2woKSUwQSUwQSUyMyUyMExvYWQlMjB0aGUlMjBndWVzdCUyMGRhdGFzZXQlMjBhbmQlMjBpbml0aWFsaXplJTIwdGhlJTIwZ3Vlc3QlMjBpbmZvJTIwdG9vbCUwQWd1ZXN0X2luZm9fdG9vbCUyMCUzRCUyMGxvYWRfZ3Vlc3RfZGF0YXNldCgpJTBBJTBBJTIzJTIwQ3JlYXRlJTIwQWxmcmVkJTIwd2l0aCUyMGFsbCUyMHRoZSUyMHRvb2xzJTBBYWxmcmVkJTIwJTNEJTIwQ29kZUFnZW50KCUwQSUyMCUyMCUyMCUyMHRvb2xzJTNEJTVCZ3Vlc3RfaW5mb190b29sJTJDJTIwd2VhdGhlcl9pbmZvX3Rvb2wlMkMlMjBodWJfc3RhdHNfdG9vbCUyQyUyMHNlYXJjaF90b29sJTVEJTJDJTIwJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0Rtb2RlbCUyQyUwQSUyMCUyMCUyMCUyMGFkZF9iYXNlX3Rvb2xzJTNEVHJ1ZSUyQyUyMCUyMCUyMyUyMEFkZCUyMGFueSUyMGFkZGl0aW9uYWwlMjBiYXNlJTIwdG9vbHMlMEElMjAlMjAlMjAlMjBwbGFubmluZ19pbnRlcnZhbCUzRDMlMjAlMjAlMjAlMjMlMjBFbmFibGUlMjBwbGFubmluZyUyMGV2ZXJ5JTIwMyUyMHN0ZXBzJTBBKQ==",highlighted:`<span class="hljs-comment"># Initialize the Hugging Face model</span>
model = InferenceClientModel()

<span class="hljs-comment"># Initialize the web search tool</span>
search_tool = DuckDuckGoSearchTool()

<span class="hljs-comment"># Initialize the weather tool</span>
weather_info_tool = WeatherInfoTool()

<span class="hljs-comment"># Initialize the Hub stats tool</span>
hub_stats_tool = HubStatsTool()

<span class="hljs-comment"># Load the guest dataset and initialize the guest info tool</span>
guest_info_tool = load_guest_dataset()

<span class="hljs-comment"># Create Alfred with all the tools</span>
alfred = CodeAgent(
    tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool], 
    model=model,
    add_base_tools=<span class="hljs-literal">True</span>,  <span class="hljs-comment"># Add any additional base tools</span>
    planning_interval=<span class="hljs-number">3</span>   <span class="hljs-comment"># Enable planning every 3 steps</span>
)`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-9b56u9"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Ts(U){let e,p,t,c="Now, let’s combine all these tools into a single agent:",o,a,s;return e=new B({props:{code:"JTIzJTIwSW1wb3J0JTIwbmVjZXNzYXJ5JTIwbGlicmFyaWVzJTBBZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUuYWdlbnQud29ya2Zsb3clMjBpbXBvcnQlMjBBZ2VudFdvcmtmbG93JTBBZnJvbSUyMGxsYW1hX2luZGV4LmxsbXMuaHVnZ2luZ2ZhY2VfYXBpJTIwaW1wb3J0JTIwSHVnZ2luZ0ZhY2VJbmZlcmVuY2VBUEklMEElMEFmcm9tJTIwdG9vbHMlMjBpbXBvcnQlMjBzZWFyY2hfdG9vbCUyQyUyMHdlYXRoZXJfaW5mb190b29sJTJDJTIwaHViX3N0YXRzX3Rvb2wlMEFmcm9tJTIwcmV0cmlldmVyJTIwaW1wb3J0JTIwZ3Vlc3RfaW5mb190b29s",highlighted:`<span class="hljs-comment"># Import necessary libraries</span>
<span class="hljs-keyword">from</span> llama_index.core.agent.workflow <span class="hljs-keyword">import</span> AgentWorkflow
<span class="hljs-keyword">from</span> llama_index.llms.huggingface_api <span class="hljs-keyword">import</span> HuggingFaceInferenceAPI

<span class="hljs-keyword">from</span> tools <span class="hljs-keyword">import</span> search_tool, weather_info_tool, hub_stats_tool
<span class="hljs-keyword">from</span> retriever <span class="hljs-keyword">import</span> guest_info_tool`,wrap:!1}}),a=new B({props:{code:"JTIzJTIwSW5pdGlhbGl6ZSUyMHRoZSUyMEh1Z2dpbmclMjBGYWNlJTIwbW9kZWwlMEFsbG0lMjAlM0QlMjBIdWdnaW5nRmFjZUluZmVyZW5jZUFQSShtb2RlbF9uYW1lJTNEJTIyUXdlbiUyRlF3ZW4yLjUtQ29kZXItMzJCLUluc3RydWN0JTIyKSUwQSUwQSUyMyUyMENyZWF0ZSUyMEFsZnJlZCUyMHdpdGglMjBhbGwlMjB0aGUlMjB0b29scyUwQWFsZnJlZCUyMCUzRCUyMEFnZW50V29ya2Zsb3cuZnJvbV90b29sc19vcl9mdW5jdGlvbnMoJTBBJTIwJTIwJTIwJTIwJTVCZ3Vlc3RfaW5mb190b29sJTJDJTIwc2VhcmNoX3Rvb2wlMkMlMjB3ZWF0aGVyX2luZm9fdG9vbCUyQyUyMGh1Yl9zdGF0c190b29sJTVEJTJDJTBBJTIwJTIwJTIwJTIwbGxtJTNEbGxtJTJDJTBBKQ==",highlighted:`<span class="hljs-comment"># Initialize the Hugging Face model</span>
llm = HuggingFaceInferenceAPI(model_name=<span class="hljs-string">&quot;Qwen/Qwen2.5-Coder-32B-Instruct&quot;</span>)

<span class="hljs-comment"># Create Alfred with all the tools</span>
alfred = AgentWorkflow.from_tools_or_functions(
    [guest_info_tool, search_tool, weather_info_tool, hub_stats_tool],
    llm=llm,
)`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-9b56u9"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function fs(U){let e,p,t,c="Now, let’s combine all these tools into a single agent:",o,a,s;return e=new B({props:{code:"ZnJvbSUyMHR5cGluZyUyMGltcG9ydCUyMFR5cGVkRGljdCUyQyUyMEFubm90YXRlZCUwQWZyb20lMjBsYW5nZ3JhcGguZ3JhcGgubWVzc2FnZSUyMGltcG9ydCUyMGFkZF9tZXNzYWdlcyUwQWZyb20lMjBsYW5nY2hhaW5fY29yZS5tZXNzYWdlcyUyMGltcG9ydCUyMEFueU1lc3NhZ2UlMkMlMjBIdW1hbk1lc3NhZ2UlMkMlMjBBSU1lc3NhZ2UlMEFmcm9tJTIwbGFuZ2dyYXBoLnByZWJ1aWx0JTIwaW1wb3J0JTIwVG9vbE5vZGUlMEFmcm9tJTIwbGFuZ2dyYXBoLmdyYXBoJTIwaW1wb3J0JTIwU1RBUlQlMkMlMjBTdGF0ZUdyYXBoJTBBZnJvbSUyMGxhbmdncmFwaC5wcmVidWlsdCUyMGltcG9ydCUyMHRvb2xzX2NvbmRpdGlvbiUwQWZyb20lMjBsYW5nY2hhaW5faHVnZ2luZ2ZhY2UlMjBpbXBvcnQlMjBIdWdnaW5nRmFjZUVuZHBvaW50JTJDJTIwQ2hhdEh1Z2dpbmdGYWNlJTBBJTBBZnJvbSUyMHRvb2xzJTIwaW1wb3J0JTIwRHVja0R1Y2tHb1NlYXJjaFJ1biUyQyUyMHdlYXRoZXJfaW5mb190b29sJTJDJTIwaHViX3N0YXRzX3Rvb2wlMEFmcm9tJTIwcmV0cmlldmVyJTIwaW1wb3J0JTIwZ3Vlc3RfaW5mb190b29s",highlighted:`<span class="hljs-keyword">from</span> typing <span class="hljs-keyword">import</span> TypedDict, Annotated
<span class="hljs-keyword">from</span> langgraph.graph.message <span class="hljs-keyword">import</span> add_messages
<span class="hljs-keyword">from</span> langchain_core.messages <span class="hljs-keyword">import</span> AnyMessage, HumanMessage, AIMessage
<span class="hljs-keyword">from</span> langgraph.prebuilt <span class="hljs-keyword">import</span> ToolNode
<span class="hljs-keyword">from</span> langgraph.graph <span class="hljs-keyword">import</span> START, StateGraph
<span class="hljs-keyword">from</span> langgraph.prebuilt <span class="hljs-keyword">import</span> tools_condition
<span class="hljs-keyword">from</span> langchain_huggingface <span class="hljs-keyword">import</span> HuggingFaceEndpoint, ChatHuggingFace

<span class="hljs-keyword">from</span> tools <span class="hljs-keyword">import</span> DuckDuckGoSearchRun, weather_info_tool, hub_stats_tool
<span class="hljs-keyword">from</span> retriever <span class="hljs-keyword">import</span> guest_info_tool`,wrap:!1}}),a=new B({props:{code:"JTIzJTIwSW5pdGlhbGl6ZSUyMHRoZSUyMHdlYiUyMHNlYXJjaCUyMHRvb2wlMEFzZWFyY2hfdG9vbCUyMCUzRCUyMER1Y2tEdWNrR29TZWFyY2hSdW4oKSUwQSUwQSUyMyUyMEdlbmVyYXRlJTIwdGhlJTIwY2hhdCUyMGludGVyZmFjZSUyQyUyMGluY2x1ZGluZyUyMHRoZSUyMHRvb2xzJTBBbGxtJTIwJTNEJTIwSHVnZ2luZ0ZhY2VFbmRwb2ludCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIyUXdlbiUyRlF3ZW4yLjUtQ29kZXItMzJCLUluc3RydWN0JTIyJTJDJTBBJTIwJTIwJTIwJTIwaHVnZ2luZ2ZhY2VodWJfYXBpX3Rva2VuJTNESFVHR0lOR0ZBQ0VIVUJfQVBJX1RPS0VOJTJDJTBBKSUwQSUwQWNoYXQlMjAlM0QlMjBDaGF0SHVnZ2luZ0ZhY2UobGxtJTNEbGxtJTJDJTIwdmVyYm9zZSUzRFRydWUpJTBBdG9vbHMlMjAlM0QlMjAlNUJndWVz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jBjb250cm9sJTIwZmxvdyUyMG1vdmVzJTBBYnVpbGRlci5hZGRfZWRnZShTVEFSVCUyQyUyMCUyMmFzc2lzdGFudCUyMiklMEFidWlsZGVyLmFkZF9jb25kaXRpb25hbF9lZGdlcyglMEElMjAlMjAlMjAlMjAlMjJhc3Npc3RhbnQlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjMlMjBJZiUyMHRoZSUyMGxhdGVzdCUyMG1lc3NhZ2UlMjByZXF1aXJlcyUyMGElMjB0b29sJTJDJTIwcm91dGUlMjB0byUyMHRvb2xzJTBBJTIwJTIwJTIwJTIwJTIzJTIwT3RoZXJ3aXNlJTJDJTIwcHJvdmlkZSUyMGElMjBkaXJlY3QlMjByZXNwb25zZSUwQSUyMCUyMCUyMCUyMHRvb2xzX2NvbmRpdGlvbiUyQyUwQSklMEFidWlsZGVyLmFkZF9lZGdlKCUyMnRvb2xzJTIyJTJDJTIwJTIyYXNzaXN0YW50JTIyKSUwQWFsZnJlZCUyMCUzRCUyMGJ1aWxkZXIuY29tcGlsZSgp",highlighted:`<span class="hljs-comment"># Initialize the web search tool</span>
search_tool = DuckDuckGoSearchRun()

<span class="hljs-comment"># Generate the chat interface, including the tools</span>
llm = HuggingFaceEndpoint(
    repo_id=<span class="hljs-string">&quot;Qwen/Qwen2.5-Coder-32B-Instruct&quot;</span>,
    huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
)

chat = ChatHuggingFace(llm=llm, verbose=<span class="hljs-literal">True</span>)
tools = [guest_info_tool, search_tool, weather_info_tool, hub_stats_tool]
chat_with_tools = chat.bind_tools(tools)

<span class="hljs-comment"># Generate the AgentState and Agent graph</span>
<span class="hljs-keyword">class</span> <span class="hljs-title class_">AgentState</span>(<span class="hljs-title class_ inherited__">TypedDict</span>):
    messages: Annotated[<span class="hljs-built_in">list</span>[AnyMessage], add_messages]

<span class="hljs-keyword">def</span> <span class="hljs-title function_">assistant</span>(<span class="hljs-params">state: AgentState</span>):
    <span class="hljs-keyword">return</span> {
        <span class="hljs-string">&quot;messages&quot;</span>: [chat_with_tools.invoke(state[<span class="hljs-string">&quot;messages&quot;</span>])],
    }

<span class="hljs-comment">## The graph</span>
builder = StateGraph(AgentState)

<span class="hljs-comment"># Define nodes: these do the work</span>
builder.add_node(<span class="hljs-string">&quot;assistant&quot;</span>, assistant)
builder.add_node(<span class="hljs-string">&quot;tools&quot;</span>, ToolNode(tools))

<span class="hljs-comment"># Define edges: these determine how the control flow moves</span>
builder.add_edge(START, <span class="hljs-string">&quot;assistant&quot;</span>)
builder.add_conditional_edges(
    <span class="hljs-string">&quot;assistant&quot;</span>,
    <span class="hljs-comment"># If the latest message requires a tool, route to tools</span>
    <span class="hljs-comment"># Otherwise, provide a direct response</span>
    tools_condition,
)
builder.add_edge(<span class="hljs-string">&quot;tools&quot;</span>, <span class="hljs-string">&quot;assistant&quot;</span>)
alfred = builder.<span class="hljs-built_in">compile</span>()`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-9b56u9"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Zs(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[Us]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[Ts]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[fs]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function Bs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJUZWxsJTIwbWUlMjBhYm91dCUyMCdMYWR5JTIwQWRhJTIwTG92ZWxhY2UnJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQucnVuKHF1ZXJ5KSUwQSUwQXByaW50KCUyMiVGMCU5RiU4RSVBOSUyMEFsZnJlZCdzJTIwUmVzcG9uc2UlM0ElMjIpJTBBcHJpbnQocmVzcG9uc2Up",highlighted:`query = <span class="hljs-string">&quot;Tell me about &#x27;Lady Ada Lovelace&#x27;&quot;</span>
response = alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQUJhc2VkJTIwb24lMjB0aGUlMjBpbmZvcm1hdGlvbiUyMEklMjByZXRyaWV2ZWQlMkMlMjBMYWR5JTIwQWRhJTIwTG92ZWxhY2UlMjBpcyUyMGFuJTIwZXN0ZWVtZWQlMjBtYXRoZW1hdGljaWFuJTIwYW5kJTIwZnJpZW5kLiUyMFNoZSUyMGlzJTIwcmVub3duZWQlMjBmb3IlMjBoZXIlMjBwaW9uZWVyaW5nJTIwd29yayUyMGluJTIwbWF0aGVtYXRpY3MlMjBhbmQlMjBjb21wdXRpbmclMkMlMjBvZnRlbiUyMGNlbGVicmF0ZWQlMjBhcyUyMHRoZSUyMGZpcnN0JTIwY29tcHV0ZXIlMjBwcm9ncmFtbWVyJTIwZHVlJTIwdG8lMjBoZXIlMjB3b3JrJTIwb24lMjBDaGFybGVzJTIwQmFiYmFnZSdzJTIwQW5hbHl0aWNhbCUyMEVuZ2luZS4lMjBIZXIlMjBlbWFpbCUyMGFkZHJlc3MlMjBpcyUyMGFkYS5sb3ZlbGFjZSU0MGV4YW1wbGUuY29tLg==",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
Based <span class="hljs-keyword">on</span> the information I retrieved, Lady Ada Lovelace <span class="hljs-built_in">is</span> an esteemed mathematician <span class="hljs-built_in">and</span> <span class="hljs-keyword">friend</span>. She <span class="hljs-built_in">is</span> renowned <span class="hljs-keyword">for</span> her pioneering work <span class="hljs-keyword">in</span> mathematics <span class="hljs-built_in">and</span> computing, often celebrated <span class="hljs-keyword">as</span> the first computer programmer due <span class="hljs-keyword">to</span> her work <span class="hljs-keyword">on</span> Charles Babbage<span class="hljs-comment">&#x27;s Analytical Engine. Her email address is ada.lovelace@example.com.</span>`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Is(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJUZWxsJTIwbWUlMjBhYm91dCUyMExhZHklMjBBZGElMjBMb3ZlbGFjZS4lMjBXaGF0J3MlMjBoZXIlMjBiYWNrZ3JvdW5kJTNGJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjBhd2FpdCUyMGFsZnJlZC5ydW4ocXVlcnkpJTBBJTBBcHJpbnQoJTIyJUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZS5yZXNwb25zZS5ibG9ja3MlNUIwJTVELnRleHQp",highlighted:`query = <span class="hljs-string">&quot;Tell me about Lady Ada Lovelace. What&#x27;s her background?&quot;</span>
response = <span class="hljs-keyword">await</span> alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response.response.blocks[<span class="hljs-number">0</span>].text)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQUxhZHklMjBBZGElMjBMb3ZlbGFjZSUyMHdhcyUyMGFuJTIwRW5nbGlzaCUyMG1hdGhlbWF0aWNpYW4lMjBhbmQlMjB3cml0ZXIlMkMlMjBiZXN0JTIwa25vd24lMjBmb3IlMjBoZXIlMjB3b3JrJTIwb24lMjBDaGFybGVzJTIwQmFiYmFnZSdzJTIwQW5hbHl0aWNhbCUyMEVuZ2luZS4lMjBTaGUlMjB3YXMlMjB0aGUlMjBmaXJzdCUyMHRvJTIwcmVjb2duaXplJTIwdGhhdCUyMHRoZSUyMG1hY2hpbmUlMjBoYWQlMjBhcHBsaWNhdGlvbnMlMjBiZXlvbmQlMjBwdXJlJTIwY2FsY3VsYXRpb24u",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
Lady Ada Lovelace was an English mathematician <span class="hljs-built_in">and</span> writer, best known <span class="hljs-keyword">for</span> her work <span class="hljs-keyword">on</span> Charles Babbage<span class="hljs-comment">&#x27;s Analytical Engine. She was the first to recognize that the machine had applications beyond pure calculation.</span>`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Gs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQuaW52b2tlKCU3QiUyMm1lc3NhZ2VzJTIyJTNBJTIwJTIyVGVsbCUyMG1lJTIwYWJvdXQlMjAnTGFkeSUyMEFkYSUyMExvdmVsYWNlJyUyMiU3RCklMEElMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlJTVCJ21lc3NhZ2VzJyU1RCU1Qi0xJTVELmNvbnRlbnQp",highlighted:`response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>: <span class="hljs-string">&quot;Tell me about &#x27;Lady Ada Lovelace&#x27;&quot;</span>})

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmc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ltZS4lMjBIZXIlMjBjb250cmlidXRpb25zJTIwdG8lMjB0aGUlMjBmaWVsZCUyMG9mJTIwY29tcHV0ZXIlMjBzY2llbmNlJTIwbGFpZCUyMHRoZSUyMGdyb3VuZHdvcmslMjBmb3IlMjBmdXR1cmUlMjBkZXZlbG9wbWVudHMuJTIwQSUyMGRheSUyMGluJTIwT2N0b2JlciUyQyUyMGRlc2lnbmF0ZWQlMjBhcyUyMEFkYSUyMExvdmVsYWNlJTIwRGF5JTJDJTIwaG9ub3JzJTIwd29tZW4ncyUyMGNvbnRyaWJ1dGlvbnMlMjB0byUyMHNjaWVuY2UlMjBhbmQlMjB0ZWNobm9sb2d5JTJDJTIwaW5zcGlyZWQlMjBieSUyMExvdmVsYWNlJ3MlMjBwaW9uZWVyaW5nJTIwd29yay4=",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
Ada Lovelace, also known <span class="hljs-keyword">as</span> Augusta Ada King, Countess <span class="hljs-keyword">of</span> Lovelace, was an English mathematician <span class="hljs-built_in">and</span> writer. Born <span class="hljs-keyword">on</span> December <span class="hljs-number">10</span>, <span class="hljs-number">1815</span>, <span class="hljs-built_in">and</span> passing away <span class="hljs-keyword">on</span> November <span class="hljs-number">27</span>, <span class="hljs-number">1852</span>, she <span class="hljs-built_in">is</span> renowned <span class="hljs-keyword">for</span> her work <span class="hljs-keyword">on</span> Charles Babbage<span class="hljs-comment">&#x27;s Analytical Engine, a proposed mechanical general-purpose computer. Ada Lovelace is celebrated as one of the first computer programmers because she created a program for the Analytical Engine in 1843. She recognized that the machine could be used for more than mere calculation, envisioning its potential in a way that few did at the time. Her contributions to the field of computer science laid the groundwork for future developments. A day in October, designated as Ada Lovelace Day, honors women&#x27;s contributions to science and technology, inspired by Lovelace&#x27;s pioneering work.</span>`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function $s(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[Bs]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[Is]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[Gs]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function gs(U){let e,p,t,c="Expected output (will vary due to randomness):",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJXaGF0J3MlMjB0aGUlMjB3ZWF0aGVyJTIwbGlrZSUyMGluJTIwUGFyaXMlMjB0b25pZ2h0JTNGJTIwV2lsbCUyMGl0JTIwYmUlMjBzdWl0YWJsZSUyMGZvciUyMG91ciUyMGZpcmV3b3JrcyUyMGRpc3BsYXklM0YlMjIlMEFyZXNwb25zZSUyMCUzRCUyMGFsZnJlZC5ydW4ocXVlcnkpJTBBJTBBcHJpbnQoJTIyJUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZSk=",highlighted:`query = <span class="hljs-string">&quot;What&#x27;s the weather like in Paris tonight? Will it be suitable for our fireworks display?&quot;</span>
response = alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQUkndmUlMjBjaGVja2VkJTIwdGhlJTIwd2VhdGhlciUyMGluJTIwUGFyaXMlMjBmb3IlMjB5b3UuJTIwQ3VycmVudGx5JTJDJTIwaXQncyUyMGNsZWFyJTIwd2l0aCUyMGElMjB0ZW1wZXJhdHVyZSUyMG9mJTIwMjUlQzIlQjBDLiUyMFRoZXNlJTIwY29uZGl0aW9ucyUyMGFyZSUyMHBlcmZlY3QlMjBmb3IlMjB0aGUlMjBmaXJld29ya3MlMjBkaXNwbGF5JTIwdG9uaWdodC4lMjBUaGUlMjBjbGVhciUyMHNraWVzJTIwd2lsbCUyMHByb3ZpZGUlMjBleGNlbGxlbnQlMjB2aXNpYmlsaXR5JTIwZm9yJTIwdGhlJTIwc3BlY3RhY3VsYXIlMjBzaG93JTJDJTIwYW5kJTIwdGhlJTIwY29tZm9ydGFibGUlMjB0ZW1wZXJhdHVyZSUyMHdpbGwlMjBlbnN1cmUlMjB0aGUlMjBndWVzdHMlMjBjYW4lMjBlbmpveSUyMHRoZSUyMG91dGRvb3IlMjBldmVudCUyMHdpdGhvdXQlMjBkaXNjb21mb3J0Lg==",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
I<span class="hljs-comment">&#x27;ve checked the weather in Paris for you. Currently, it&#x27;s clear with a temperature of 25°C. These conditions are perfect for the fireworks display tonight. The clear skies will provide excellent visibility for the spectacular show, and the comfortable temperature will ensure the guests can enjoy the outdoor event without discomfort.</span>`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-13f6273"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Ws(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJXaGF0J3MlMjB0aGUlMjB3ZWF0aGVyJTIwbGlrZSUyMGluJTIwUGFyaXMlMjB0b25pZ2h0JTNGJTIwV2lsbCUyMGl0JTIwYmUlMjBzdWl0YWJsZSUyMGZvciUyMG91ciUyMGZpcmV3b3JrcyUyMGRpc3BsYXklM0YlMjIlMEFyZXNwb25zZSUyMCUzRCUyMGF3YWl0JTIwYWxmcmVkLnJ1bihxdWVyeSklMEElMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlKQ==",highlighted:`query = <span class="hljs-string">&quot;What&#x27;s the weather like in Paris tonight? Will it be suitable for our fireworks display?&quot;</span>
response = <span class="hljs-keyword">await</span> alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQVRoZSUyMHdlYXRoZXIlMjBpbiUyMFBhcmlzJTIwdG9uaWdodCUyMGlzJTIwcmFpbnklMjB3aXRoJTIwYSUyMHRlbXBlcmF0dXJlJTIwb2YlMjAxNSVDMiVCMEMuJTIwR2l2ZW4lMjB0aGUlMjByYWluJTJDJTIwaXQlMjBtYXklMjBub3QlMjBiZSUyMHN1aXRhYmxlJTIwZm9yJTIwYSUyMGZpcmV3b3JrcyUyMGRpc3BsYXku",highlighted:`🎩 Alfred<span class="hljs-symbol">&#x27;s</span> Response:
The weather <span class="hljs-keyword">in</span> Paris tonight <span class="hljs-keyword">is</span> rainy <span class="hljs-keyword">with</span> a temperature <span class="hljs-keyword">of</span> <span class="hljs-number">15</span>°C. Given the rain, it may <span class="hljs-keyword">not</span> be suitable <span class="hljs-keyword">for</span> a fireworks display.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function ks(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQuaW52b2tlKCU3QiUyMm1lc3NhZ2VzJTIyJTNBJTIwJTIyV2hhdCdzJTIwdGhlJTIwd2VhdGhlciUyMGxpa2UlMjBpbiUyMFBhcmlzJTIwdG9uaWdodCUzRiUyMFdpbGwlMjBpdCUyMGJlJTIwc3VpdGFibGUlMjBmb3IlMjBvdXIlMjBmaXJld29ya3MlMjBkaXNwbGF5JTNGJTIyJTdEKSUwQSUwQXByaW50KCUyMiVGMCU5RiU4RSVBOSUyMEFsZnJlZCdzJTIwUmVzcG9uc2UlM0ElMjIpJTBBcHJpbnQocmVzcG9uc2UlNUInbWVzc2FnZXMnJTVEJTVCLTElNUQuY29udGVudCk=",highlighted:`response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>: <span class="hljs-string">&quot;What&#x27;s the weather like in Paris tonight? Will it be suitable for our fireworks display?&quot;</span>})

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQVRoZSUyMHdlYXRoZXIlMjBpbiUyMFBhcmlzJTIwdG9uaWdodCUyMGlzJTIwcmFpbnklMjB3aXRoJTIwYSUyMHRlbXBlcmF0dXJlJTIwb2YlMjAxNSVDMiVCMEMlMkMlMjB3aGljaCUyMG1heSUyMG5vdCUyMGJlJTIwc3VpdGFibGUlMjBmb3IlMjB5b3VyJTIwZmlyZXdvcmtzJTIwZGlzcGxheS4=",highlighted:`🎩 Alfred<span class="hljs-symbol">&#x27;s</span> Response:
The weather <span class="hljs-keyword">in</span> Paris tonight <span class="hljs-keyword">is</span> rainy <span class="hljs-keyword">with</span> a temperature <span class="hljs-keyword">of</span> <span class="hljs-number">15</span>°C, which may <span class="hljs-keyword">not</span> be suitable <span class="hljs-keyword">for</span> your fireworks display.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function vs(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[gs]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[Ws]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[ks]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function Vs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJPbmUlMjBvZiUyMG91ciUyMGd1ZXN0cyUyMGlzJTIwZnJvbSUyMFF3ZW4uJTIwV2hhdCUyMGNhbiUyMHlvdSUyMHRlbGwlMjBtZSUyMGFib3V0JTIwdGhlaXIlMjBtb3N0JTIwcG9wdWxhciUyMG1vZGVsJTNGJTIyJTBBcmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQucnVuKHF1ZXJ5KSUwQSUwQXByaW50KCUyMiVGMCU5RiU4RSVBOSUyMEFsZnJlZCdzJTIwUmVzcG9uc2UlM0ElMjIpJTBBcHJpbnQocmVzcG9uc2Up",highlighted:`query = <span class="hljs-string">&quot;One of our guests is from Qwen. What can you tell me about their most popular model?&quot;</span>
response = alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQVRoZSUyMG1vc3QlMjBwb3B1bGFyJTIwUXdlbiUyMG1vZGVsJTIwaXMlMjBRd2VuJTJGUXdlbjIuNS1WTC03Qi1JbnN0cnVjdCUyMHdpdGglMjAzJTJDMzEzJTJDMzQ1JTIwZG93bmxvYWRzLg==",highlighted:`🎩 Alfred<span class="hljs-symbol">&#x27;s</span> Response:
The most popular Qwen model <span class="hljs-keyword">is</span> Qwen/Qwen2.<span class="hljs-number">5</span>-VL-<span class="hljs-number">7</span>B-Instruct <span class="hljs-keyword">with</span> <span class="hljs-number">3</span>,<span class="hljs-number">313</span>,<span class="hljs-number">345</span> downloads.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Xs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJPbmUlMjBvZiUyMG91ciUyMGd1ZXN0cyUyMGlzJTIwZnJvbSUyMEdvb2dsZS4lMjBXaGF0JTIwY2FuJTIweW91JTIwdGVsbCUyMG1lJTIwYWJvdXQlMjB0aGVpciUyMG1vc3QlMjBwb3B1bGFyJTIwbW9kZWwlM0YlMjIlMEFyZXNwb25zZSUyMCUzRCUyMGF3YWl0JTIwYWxmcmVkLnJ1bihxdWVyeSklMEElMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlKQ==",highlighted:`query = <span class="hljs-string">&quot;One of our guests is from Google. What can you tell me about their most popular model?&quot;</span>
response = <span class="hljs-keyword">await</span> alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQVRoZSUyMG1vc3QlMjBwb3B1bGFyJTIwbW9kZWwlMjBieSUyMEdvb2dsZSUyMG9uJTIwdGhlJTIwSHVnZ2luZyUyMEZhY2UlMjBIdWIlMjBpcyUyMGdvb2dsZSUyRmVsZWN0cmEtYmFzZS1kaXNjcmltaW5hdG9yJTJDJTIwd2l0aCUyMDI4JTJDNTQ2JTJDNzUyJTIwZG93bmxvYWRzLg==",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
The most popular model <span class="hljs-keyword">by</span> Google <span class="hljs-keyword">on</span> the Hugging Face Hub <span class="hljs-built_in">is</span> google/electra-base-discriminator, <span class="hljs-keyword">with</span> <span class="hljs-number">28</span>,<span class="hljs-number">546</span>,<span class="hljs-number">752</span> downloads.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Cs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQuaW52b2tlKCU3QiUyMm1lc3NhZ2VzJTIyJTNBJTIwJTIyT25lJTIwb2YlMjBvdXIlMjBndWVzdHMlMjBpcyUyMGZyb20lMjBRd2VuLiUyMFdoYXQlMjBjYW4lMjB5b3UlMjB0ZWxsJTIwbWUlMjBhYm91dCUyMHRoZWlyJTIwbW9zdCUyMHBvcHVsYXIlMjBtb2RlbCUzRiUyMiU3RCklMEElMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlJTVCJ21lc3NhZ2VzJyU1RCU1Qi0xJTVELmNvbnRlbnQp",highlighted:`response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>: <span class="hljs-string">&quot;One of our guests is from Qwen. What can you tell me about their most popular model?&quot;</span>})

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQVRoZSUyMG1vc3QlMjBkb3dubG9hZGVkJTIwbW9kZWwlMjBieSUyMFF3ZW4lMjBpcyUyMFF3ZW4lMkZRd2VuMi41LVZMLTdCLUluc3RydWN0JTIwd2l0aCUyMDMlMkMzMTMlMkMzNDUlMjBkb3dubG9hZHMu",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
The most downloaded model <span class="hljs-keyword">by</span> Qwen <span class="hljs-built_in">is</span> Qwen/Qwen2.<span class="hljs-number">5</span>-VL-<span class="hljs-number">7</span>B-Instruct <span class="hljs-keyword">with</span> <span class="hljs-number">3</span>,<span class="hljs-number">313</span>,<span class="hljs-number">345</span> downloads.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Rs(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[Vs]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[Xs]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[Cs]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function Ns(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJJJTIwbmVlZCUyMHRvJTIwc3BlYWslMjB3aXRoJTIwRHIuJTIwTmlrb2xhJTIwVGVzbGElMjBhYm91dCUyMHJlY2VudCUyMGFkdmFuY2VtZW50cyUyMGluJTIwd2lyZWxlc3MlMjBlbmVyZ3kuJTIwQ2FuJTIweW91JTIwaGVscCUyMG1lJTIwcHJlcGFyZSUyMGZvciUyMHRoaXMlMjBjb252ZXJzYXRpb24lM0YlMjIlMEFyZXNwb25zZSUyMCUzRCUyMGFsZnJlZC5ydW4ocXVlcnkpJTBBJTBBcHJpbnQoJTIyJUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZSk=",highlighted:`query = <span class="hljs-string">&quot;I need to speak with Dr. Nikola Tesla about recent advancements in wireless energy. Can you help me prepare for this conversation?&quot;</span>
response = alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQUkndmUlMjBnYXRoZXJlZCUyMGluZm9ybWF0aW9uJTIwdG8lMjBoZWxwJTIweW91JTIwcHJlcGFyZSUyMGZvciUyMHlvdXIlMjBjb252ZXJzYXRpb24lMjB3aXRoJTIwRHIuJTIwTmlrb2xhJTIwVGVzbGEuJTBBJTBBR3Vlc3QlMjBJbmZvcm1hdGlvbiUzQSUwQU5hbWUlM0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lMjBnaXZlJTIweW91JTIwcGxlbnR5JTIwdG8lMjBkaXNjdXNzJTIwd2l0aCUyMERyLiUyMFRlc2xhJTIwd2hpbGUlMjBkZW1vbnN0cmF0aW5nJTIweW91ciUyMGtub3dsZWRnZSUyMG9mJTIwaGlzJTIwaW50ZXJlc3RzJTIwYW5kJTIwcmVjZW50JTIwZGV2ZWxvcG1lbnRzJTIwaW4lMjBoaXMlMjBmaWVsZC4=",highlighted:`🎩 Alfred<span class="hljs-comment">&#x27;s Response:</span>
I<span class="hljs-comment">&#x27;ve gathered information to help you prepare for your conversation with Dr. Nikola Tesla.</span>

Guest Information:
<span class="hljs-symbol">Name:</span> Dr. Nikola Tesla
<span class="hljs-symbol">Relation:</span> old <span class="hljs-keyword">friend</span> <span class="hljs-keyword">from</span> university days
<span class="hljs-symbol">Description:</span> Dr. Nikola Tesla <span class="hljs-built_in">is</span> an old <span class="hljs-keyword">friend</span> <span class="hljs-keyword">from</span> your university days. He<span class="hljs-comment">&#x27;s recently patented a new wireless energy transmission system and would be delighted to discuss it with you. Just remember he&#x27;s passionate about pigeons, so that might make for good small talk.</span>
<span class="hljs-symbol">Email:</span> nikola.tesla@gmail.com

Recent Advancements <span class="hljs-keyword">in</span> Wireless Energy:
Based <span class="hljs-keyword">on</span> my web search, here are some recent developments <span class="hljs-keyword">in</span> wireless energy transmission:
<span class="hljs-number">1</span>. Researchers have made progress <span class="hljs-keyword">in</span> <span class="hljs-type">long</span>-range wireless power transmission <span class="hljs-keyword">using</span> focused electromagnetic waves
<span class="hljs-number">2</span>. Several companies are developing resonant inductive coupling technologies <span class="hljs-keyword">for</span> consumer electronics
<span class="hljs-number">3</span>. There are <span class="hljs-built_in">new</span> applications <span class="hljs-keyword">in</span> electric vehicle charging without physical connections

Conversation Starters:
<span class="hljs-number">1</span>. <span class="hljs-string">&quot;I&#x27;d love to hear about your new patent on wireless energy transmission. How does it compare to your original concepts from our university days?&quot;</span>
<span class="hljs-number">2</span>. <span class="hljs-string">&quot;Have you seen the recent developments in resonant inductive coupling for consumer electronics? What do you think of their approach?&quot;</span>
<span class="hljs-number">3</span>. <span class="hljs-string">&quot;How are your pigeons doing? I remember your fascination with them.&quot;</span>

This should give you plenty <span class="hljs-keyword">to</span> discuss <span class="hljs-keyword">with</span> Dr. Tesla <span class="hljs-keyword">while</span> demonstrating your knowledge <span class="hljs-keyword">of</span> his interests <span class="hljs-built_in">and</span> recent developments <span class="hljs-keyword">in</span> his field.`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Fs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cXVlcnklMjAlM0QlMjAlMjJJJTIwbmVlZCUyMHRvJTIwc3BlYWslMjB3aXRoJTIwRHIuJTIwTmlrb2xhJTIwVGVzbGElMjBhYm91dCUyMHJlY2VudCUyMGFkdmFuY2VtZW50cyUyMGluJTIwd2lyZWxlc3MlMjBlbmVyZ3kuJTIwQ2FuJTIweW91JTIwaGVscCUyMG1lJTIwcHJlcGFyZSUyMGZvciUyMHRoaXMlMjBjb252ZXJzYXRpb24lM0YlMjIlMEFyZXNwb25zZSUyMCUzRCUyMGF3YWl0JTIwYWxmcmVkLnJ1bihxdWVyeSklMEElMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlKQ==",highlighted:`query = <span class="hljs-string">&quot;I need to speak with Dr. Nikola Tesla about recent advancements in wireless energy. Can you help me prepare for this conversation?&quot;</span>
response = <span class="hljs-keyword">await</span> alfred.run(query)

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response)`,wrap:!1}}),a=new B({props:{code:"JUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUwQUhlcmUlMjBhcmUlMjBzb21lJTIwcmVjZW50JTIwYWR2YW5jZW1lbnRzJTIwaW4lMjB3aXJlbGVzcyUyMGVuZXJneSUyMHRoYXQlMjB5b3UlMjBtaWdodCUyMGZpbmQlMjB1c2VmdWwlMjBmb3IlMjB5b3VyJTIwY29udmVyc2F0aW9uJTIwd2l0aCUyMERyLiUyME5pa29sYSUyMFRlc2xhJTNBJTBBJTBBMS4lMjAqKkFkdmFuY2VtZW50cyUyMGFuZCUyMENoYWxsZW5nZXMlMjBpbiUyMFdpcmVsZXNzJTIwUG93ZXIlMjBUcmFuc2ZlcioqJTNBJTIwVGhpcyUyMGFydGljbGUlMjBkaXNjdXNzZXMlMjB0aGUlMjBldm9sdXRpb24lMjBvZiUyMHdpcmVsZXNzJTIwcG93ZXIlMjB0cmFuc2ZlciUyMChXUFQpJTIwZnJvbSUyMGNvbnZlbnRpb25hbCUyMHdpcmVkJTIwbWV0aG9kcyUyMHRvJTIwbW9kZXJuJTIwYXBwbGljYXRpb25zJTJDJTIwaW5jbHVkaW5nJTIwc29sYXIlMjBzcGFjZSUyMHBvd2VyJTIwc3RhdGlvbnMuJTIwSXQlMjBoaWdobGlnaHRzJTIwdGhlJTIwaW5pdGlhbCUyMGZvY3VzJTIwb24lMjBtaWNyb3dhdmUlMjB0ZWNobm9sb2d5JTIwYW5kJTIwdGhlJTIwY3VycmVudCUyMGRlbWFuZCUyMGZvciUyMFdQVCUyMGR1ZSUyMHRvJTIwdGhlJTIwcmlzZSUyMG9mJTIwZWxlY3RyaWMl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aW9ucyUyMGFuZCUyMGRpc2N1c3NlcyUyMGZ1dHVyZSUyMHRyZW5kcyUyMGluJTIwdGhlJTIwZmllbGQuJTBBJTBBNC4lMjAqKldpcmVsZXNzJTIwUG93ZXIlMjBUcmFuc2ZlciUzQSUyMEFwcGxpY2F0aW9ucyUyQyUyMENoYWxsZW5nZXMlMkMlMjBCYXJyaWVycyUyQyUyMGFuZCUyMHRoZQ==",highlighted:`🎩 Alfred&#x27;s Response:
Here are <span class="hljs-keyword">some</span> recent advancements <span class="hljs-keyword">in</span> wireless energy <span class="hljs-keyword">that</span> you might find useful <span class="hljs-keyword">for</span> your conversation <span class="hljs-keyword">with</span> Dr. Nikola Tesla:

<span class="hljs-number">1.</span> **Advancements <span class="hljs-keyword">and</span> Challenges <span class="hljs-keyword">in</span> Wireless Power Transfer**: This article discusses <span class="hljs-keyword">the</span> evolution <span class="hljs-keyword">of</span> wireless power transfer (WPT) <span class="hljs-keyword">from</span> conventional wired methods <span class="hljs-keyword">to</span> modern applications, including solar <span class="hljs-literal">space</span> power stations. It highlights <span class="hljs-keyword">the</span> initial focus <span class="hljs-keyword">on</span> microwave technology <span class="hljs-keyword">and</span> <span class="hljs-keyword">the</span> current demand <span class="hljs-keyword">for</span> WPT due <span class="hljs-keyword">to</span> <span class="hljs-keyword">the</span> rise <span class="hljs-keyword">of</span> electric devices.

<span class="hljs-number">2.</span> **Recent Advances <span class="hljs-keyword">in</span> Wireless Energy Transfer Technologies <span class="hljs-keyword">for</span> Body-Interfaced Electronics**: This article explores wireless energy transfer (WET) <span class="hljs-keyword">as</span> a solution <span class="hljs-keyword">for</span> powering body-interfaced electronics <span class="hljs-keyword">without</span> <span class="hljs-keyword">the</span> need <span class="hljs-keyword">for</span> batteries <span class="hljs-keyword">or</span> lead wires. It discusses <span class="hljs-keyword">the</span> advantages <span class="hljs-keyword">and</span> potential applications <span class="hljs-keyword">of</span> WET <span class="hljs-keyword">in</span> this context.

<span class="hljs-number">3.</span> **Wireless Power Transfer <span class="hljs-keyword">and</span> Energy Harvesting: Current Status <span class="hljs-keyword">and</span> Future Trends**: This article provides an overview <span class="hljs-keyword">of</span> recent advances <span class="hljs-keyword">in</span> wireless power supply methods, including energy harvesting <span class="hljs-keyword">and</span> wireless power transfer. It presents several promising applications <span class="hljs-keyword">and</span> discusses future trends <span class="hljs-keyword">in</span> <span class="hljs-keyword">the</span> field.

<span class="hljs-number">4.</span> **Wireless Power Transfer: Applications, Challenges, Barriers, <span class="hljs-keyword">and</span> <span class="hljs-keyword">the</span>`,wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Qs(U){let e,p,t,c="Expected output:",o,a,s;return e=new B({props:{code:"cmVzcG9uc2UlMjAlM0QlMjBhbGZyZWQuaW52b2tlKCU3QiUyMm1lc3NhZ2VzJTIyJTNBJTIySSUyMG5lZWQlMjB0byUyMHNwZWFrJTIwd2l0aCUyMCdEci4lMjBOaWtvbGElMjBUZXNsYSclMjBhYm91dCUyMHJlY2VudCUyMGFkdmFuY2VtZW50cyUyMGluJTIwd2lyZWxlc3MlMjBlbmVyZ3kuJTIwQ2FuJTIweW91JTIwaGVscCUyMG1lJTIwcHJlcGFyZSUyMGZvciUyMHRoaXMlMjBjb252ZXJzYXRpb24lM0YlMjIlN0QpJTBBJTBBcHJpbnQoJTIyJUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZSU1QidtZXNzYWdlcyclNUQlNUItMSU1RC5jb250ZW50KQ==",highlighted:`response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>:<span class="hljs-string">&quot;I need to speak with &#x27;Dr. Nikola Tesla&#x27; about recent advancements in wireless energy. Can you help me prepare for this conversation?&quot;</span>})

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)`,wrap:!1}}),a=new B({props:{code:"QmFzZWQlMjBvbiUyMHRoZSUyMHByb3ZpZGVkJTIwaW5mb3JtYXRpb24lMkMlMjBoZXJlJTIwYXJlJTIwa2V5JTIwcG9pbnRzJTIwdG8lMjBwcmVwYXJlJTIwZm9yJTIwdGhlJTIwY29udmVyc2F0aW9uJTIwd2l0aCUyMCdEci4lMjBOaWtvbGElMjBUZXNsYSclMjBhYm91dCUyMHJlY2VudCUyMGFkdmFuY2VtZW50cyUyMGluJTIwd2lyZWxlc3MlMjBlbmVyZ3klM0ElNUNuMS4lMjAqKldpcmVsZXNzJTIwUG93ZXIlMjBUcmFuc21pc3Npb24lMjAoV1BUKSUzQSoqJTIwRGlzY3VzcyUyMGhvdyUyMFdQVCUyMHJldm9sdXRpb25pemVzJTIwZW5lcmd5JTIwdHJhbnNmZXIlMjBieSUyMGVsaW1pbmF0aW5nJTIwdGhlJTIwbmVlZCUyMGZvciUyMGNvcmRzJTIwYW5kJTIwbGV2ZXJhZ2luZyUyMG1lY2hhbmlzbXMlMjBsaWtlJTIwaW5kdWN0aXZlJTIwYW5kJTIwcmVzb25hbnQlMjBjb3VwbGluZy4lNUNuMi4lMjAqKkFkdmFuY2VtZW50cyUyMGluJTIwV2lyZWxlc3MlMjBDaGFyZ2luZyUzQSoqJTIwSGlnaGxpZ2h0JTIwaW1wcm92ZW1lbnRzJTIwaW4lMjBlZmZpY2llbmN5JTJDJTI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UlMjBjb25uZWN0aXZpdHklMkMlMjBlZmZpY2llbmN5JTJDJTIwYW5kJTIwc2VjdXJpdHklMjBpbiUyMElvVCUyMGRldmljZXMlMjBhbmQlMjBzeXN0ZW1zLiU1Q242LiUyMCoqQnJlYWt0aHJvdWdocyUyMGluJTIwV2lyZWxlc3MlMjBDaGFyZ2luZyUyMFRlY2hub2xvZ3klM0EqKiUyMEluY2x1ZGUlMjBhbnklMjByZWNlbnQlMjBicmVha3Rocm91Z2hzJTIwb3IlMjBzdHVkaWVzJTJDJTIwc3VjaCUyMGFzJTIwdGhlJTIwb25lJTIwZnJvbSUyMEluY2hlb24lMjBOYXRpb25hbCUyMFVuaXZlcnNpdHklMkMlMjB0byUyMHN1YnN0YW50aWF0ZSUyMHRoZSUyMGFkdmFuY2VtZW50cyUyMGluJTIwd2lyZWxlc3MlMjBjaGFyZ2luZy4=",highlighted:'Based <span class="hljs-keyword">on</span> the provided information, here are <span class="hljs-keyword">key</span> points <span class="hljs-keyword">to</span> prepare <span class="hljs-keyword">for</span> the conversation <span class="hljs-keyword">with</span> <span class="hljs-comment">&#x27;Dr. Nikola Tesla&#x27; about recent advancements in wireless energy:\\n1. **Wireless Power Transmission (WPT):** Discuss how WPT revolutionizes energy transfer by eliminating the need for cords and leveraging mechanisms like inductive and resonant coupling.\\n2. **Advancements in Wireless Charging:** Highlight improvements in efficiency, faster charging speeds, and the rise of Qi/Qi2 certified wireless charging solutions.\\n3. **5G-Advanced Innovations and NearLink Wireless Protocol:** Mention these as developments that enhance speed, security, and efficiency in wireless networks, which can support advanced wireless energy technologies.\\n4. **AI and ML at the Edge:** Talk about how AI and machine learning will rely on wireless networks to bring intelligence to the edge, enhancing automation and intelligence in smart homes and buildings.\\n5. **Matter, Thread, and Security Advancements:** Discuss these as key innovations that drive connectivity, efficiency, and security in IoT devices and systems.\\n6. **Breakthroughs in Wireless Charging Technology:** Include any recent breakthroughs or studies, such as the one from Incheon National University, to substantiate the advancements in wireless charging.</span>',wrap:!1}}),{c(){d(e.$$.fragment),p=y(),t=T("p"),t.textContent=c,o=y(),d(a.$$.fragment)},l(l){J(e.$$.fragment,l),p=w(l),t=f(l,"P",{"data-svelte-h":!0}),Z(t)!=="svelte-15t3xg7"&&(t.textContent=c),o=w(l),J(a.$$.fragment,l)},m(l,M){h(e,l,M),i(l,p,M),i(l,t,M),i(l,o,M),h(a,l,M),s=!0},p:g,i(l){s||(u(e.$$.fragment,l),u(a.$$.fragment,l),s=!0)},o(l){j(e.$$.fragment,l),j(a.$$.fragment,l),s=!1},d(l){l&&(r(p),r(t),r(o)),b(e,l),b(a,l)}}}function Ys(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[Ns]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[Fs]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[Qs]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function xs(U){let e,p;return e=new B({props:{code:"JTIzJTIwQ3JlYXRlJTIwQWxmcmVkJTIwd2l0aCUyMGNvbnZlcnNhdGlvbiUyMG1lbW9yeSUwQWFsZnJlZF93aXRoX21lbW9yeSUyMCUzRCUyMENvZGVBZ2VudCglMEElMjAlMjAlMjAlMjB0b29scyUzRCU1Qmd1ZXN0X2luZm9fdG9vbCUyQyUyMHdlYXRoZXJfaW5mb190b29sJTJDJTIwaHViX3N0YXRzX3Rvb2wlMkMlMjBzZWFyY2hfdG9vbCU1RCUyQyUyMCUwQSUyMCUyMCUyMCUyMG1vZGVsJTNEbW9kZWwlMkMlMEElMjAlMjAlMjAlMjBhZGRfYmFzZV90b29scyUzRFRydWUlMkMlMEElMjAlMjAlMjAlMjBwbGFubmluZ19pbnRlcnZhbCUzRDMlMEEpJTBBJTBBJTIzJTIwRmlyc3QlMjBpbnRlcmFjdGlvbiUwQXJlc3BvbnNlMSUyMCUzRCUyMGFsZnJlZF93aXRoX21lbW9yeS5ydW4oJTIyVGVsbCUyMG1lJTIwYWJvdXQlMjBMYWR5JTIwQWRhJTIwTG92ZWxhY2UuJTIyKSUwQXByaW50KCUyMiVGMCU5RiU4RSVBOSUyMEFsZnJlZCdzJTIwRmlyc3QlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZTEpJTBBJTBBJTIzJTIwU2Vjb25kJTIwaW50ZXJhY3Rpb24lMjAocmVmZXJlbmNpbmclMjB0aGUlMjBmaXJzdCklMEFyZXNwb25zZTIlMjAlM0QlMjBhbGZyZWRfd2l0aF9tZW1vcnkucnVuKCUyMldoYXQlMjBwcm9qZWN0cyUyMGlzJTIwc2hlJTIwY3VycmVudGx5JTIwd29ya2luZyUyMG9uJTNGJTIyJTJDJTIwcmVzZXQlM0RGYWxzZSklMEFwcmludCglMjIlRjAlOUYlOEUlQTklMjBBbGZyZWQncyUyMFNlY29uZCUyMFJlc3BvbnNlJTNBJTIyKSUwQXByaW50KHJlc3BvbnNlMik=",highlighted:`<span class="hljs-comment"># Create Alfred with conversation memory</span>
alfred_with_memory = CodeAgent(
    tools=[guest_info_tool, weather_info_tool, hub_stats_tool, search_tool], 
    model=model,
    add_base_tools=<span class="hljs-literal">True</span>,
    planning_interval=<span class="hljs-number">3</span>
)

<span class="hljs-comment"># First interaction</span>
response1 = alfred_with_memory.run(<span class="hljs-string">&quot;Tell me about Lady Ada Lovelace.&quot;</span>)
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s First Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response1)

<span class="hljs-comment"># Second interaction (referencing the first)</span>
response2 = alfred_with_memory.run(<span class="hljs-string">&quot;What projects is she currently working on?&quot;</span>, reset=<span class="hljs-literal">False</span>)
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Second Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response2)`,wrap:!1}}),{c(){d(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,c){h(e,t,c),p=!0},p:g,i(t){p||(u(e.$$.fragment,t),p=!0)},o(t){j(e.$$.fragment,t),p=!1},d(t){b(e,t)}}}function zs(U){let e,p;return e=new B({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUud29ya2Zsb3clMjBpbXBvcnQlMjBDb250ZXh0JTBBJTBBYWxmcmVkJTIwJTNEJTIwQWdlbnRXb3JrZmxvdy5mcm9tX3Rvb2xzX29yX2Z1bmN0aW9ucyglMEElMjAlMjAlMjAlMjAlNUJndWVzdF9pbmZvX3Rvb2wlMkMlMjBzZWFyY2hfdG9vbCUyQyUyMHdlYXRoZXJfaW5mb190b29sJTJDJTIwaHViX3N0YXRzX3Rvb2wlNUQlMkMlMEElMjAlMjAlMjAlMjBsbG0lM0RsbG0lMEEpJTBBJTBBJTIzJTIwUmVtZW1iZXJpbmclMjBzdGF0ZSUwQWN0eCUyMCUzRCUyMENvbnRleHQoYWxmcmVkKSUwQSUwQSUyMyUyMEZpcnN0JTIwaW50ZXJhY3Rpb24lMEFyZXNwb25zZTElMjAlM0QlMjBhd2FpdCUyMGFsZnJlZC5ydW4oJTIyVGVsbCUyMG1lJTIwYWJvdXQlMjBMYWR5JTIwQWRhJTIwTG92ZWxhY2UuJTIyJTJDJTIwY3R4JTNEY3R4KSUwQXByaW50KCUyMiVGMCU5RiU4RSVBOSUyMEFsZnJlZCdzJTIwRmlyc3QlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZTEpJTBBJTBBJTIzJTIwU2Vjb25kJTIwaW50ZXJhY3Rpb24lMjAocmVmZXJlbmNpbmclMjB0aGUlMjBmaXJzdCklMEFyZXNwb25zZTIlMjAlM0QlMjBhd2FpdCUyMGFsZnJlZC5ydW4oJTIyV2hhdCUyMHByb2plY3RzJTIwaXMlMjBzaGUlMjBjdXJyZW50bHklMjB3b3JraW5nJTIwb24lM0YlMjIlMkMlMjBjdHglM0RjdHgpJTBBcHJpbnQoJTIyJUYwJTlGJThFJUE5JTIwQWxmcmVkJ3MlMjBTZWNvbmQlMjBSZXNwb25zZSUzQSUyMiklMEFwcmludChyZXNwb25zZTIp",highlighted:`<span class="hljs-keyword">from</span> llama_index.core.workflow <span class="hljs-keyword">import</span> Context

alfred = AgentWorkflow.from_tools_or_functions(
    [guest_info_tool, search_tool, weather_info_tool, hub_stats_tool],
    llm=llm
)

<span class="hljs-comment"># Remembering state</span>
ctx = Context(alfred)

<span class="hljs-comment"># First interaction</span>
response1 = <span class="hljs-keyword">await</span> alfred.run(<span class="hljs-string">&quot;Tell me about Lady Ada Lovelace.&quot;</span>, ctx=ctx)
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s First Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response1)

<span class="hljs-comment"># Second interaction (referencing the first)</span>
response2 = <span class="hljs-keyword">await</span> alfred.run(<span class="hljs-string">&quot;What projects is she currently working on?&quot;</span>, ctx=ctx)
<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Second Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response2)`,wrap:!1}}),{c(){d(e.$$.fragment)},l(t){J(e.$$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nQp",highlighted:`<span class="hljs-comment"># First interaction</span>
response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>: [HumanMessage(content=<span class="hljs-string">&quot;Tell me about &#x27;Lady Ada Lovelace&#x27;. What&#x27;s her background and how is she related to me?&quot;</span>)]})


<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)
<span class="hljs-built_in">print</span>()

<span class="hljs-comment"># Second interaction (referencing the first)</span>
response = alfred.invoke({<span class="hljs-string">&quot;messages&quot;</span>: response[<span class="hljs-string">&quot;messages&quot;</span>] + [HumanMessage(content=<span class="hljs-string">&quot;What projects is she currently working on?&quot;</span>)]})

<span class="hljs-built_in">print</span>(<span class="hljs-string">&quot;🎩 Alfred&#x27;s Response:&quot;</span>)
<span class="hljs-built_in">print</span>(response[<span class="hljs-string">&#x27;messages&#x27;</span>][-<span class="hljs-number">1</span>].content)`,wrap:!1}}),{c(){d(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,c){h(e,t,c),p=!0},p:g,i(t){p||(u(e.$$.fragment,t),p=!0)},o(t){j(e.$$.fragment,t),p=!1},d(t){b(e,t)}}}function Es(U){let e,p,t,c,o,a;return e=new W({props:{id:"agents-frameworks",option:"smolagents",$$slots:{default:[xs]},$$scope:{ctx:U}}}),t=new W({props:{id:"agents-frameworks",option:"llama-index",$$slots:{default:[zs]},$$scope:{ctx:U}}}),o=new W({props:{id:"agents-frameworks",option:"langgraph",$$slots:{default:[Ss]},$$scope:{ctx:U}}}),{c(){d(e.$$.fragment),p=y(),d(t.$$.fragment),c=y(),d(o.$$.fragment)},l(s){J(e.$$.fragment,s),p=w(s),J(t.$$.fragment,s),c=w(s),J(o.$$.fragment,s)},m(s,l){h(e,s,l),i(s,p,l),h(t,s,l),i(s,c,l),h(o,s,l),a=!0},p(s,l){const M={};l&2&&(M.$$scope={dirty:l,ctx:s}),e.$set(M);const I={};l&2&&(I.$$scope={dirty:l,ctx:s}),t.$set(I);const G={};l&2&&(G.$$scope={dirty:l,ctx:s}),o.$set(G)},i(s){a||(u(e.$$.fragment,s),u(t.$$.fragment,s),u(o.$$.fragment,s),a=!0)},o(s){j(e.$$.fragment,s),j(t.$$.fragment,s),j(o.$$.fragment,s),a=!1},d(s){s&&(r(p),r(c)),b(e,s),b(t,s),b(o,s)}}}function _s(U){let e,p,t,c,o,a,s,l="Now that we’ve built all the necessary components for Alfred, it’s time to bring everything together into a complete agent that can help host our extravagant gala.",M,I,G="In this section, we’ll combine the guest information retrieval, web search, weather information, and Hub stats tools into a single powerful agent.",x,v,$,k,El="Instead of reimplementing all the tools we’ve created in previous sections, we’ll import them from their respective modules which we saved in the <code>tools.py</code> and <code>retriever.py</code> files.",yl,X,wl,z,_l="Let’s import the necessary libraries and tools from the previous sections:",dl,C,Jl,S,Hl="Your agent is now ready to use!",hl,E,ul,_,Al="Now that Alfred is fully equipped with all the necessary tools, let’s see how he can help with various tasks during the gala.",jl,H,bl,A,ql="Let’s see how Alfred can help us with our guest information.",Ul,R,Tl,q,fl,D,Dl="Let’s see how Alfred can help us with the weather.",Zl,N,Bl,L,Il,K,Ll="Let’s see how Alfred can help us impress AI researchers.",Gl,F,$l,P,gl,O,Kl="Let’s see how Alfred can help us prepare for a conversation with Dr. Nikola Tesla.",Wl,Q,kl,ll,vl,sl,Pl="To make Alfred even more helpful during the gala, we can enable conversation memory so he remembers previous interactions:",Vl,Y,Xl,el,Ol="Notice that none of these three agent approaches directly couple memory with the agent. Is there a specific reason for this design choice 🧐?",Cl,tl,ls='<li>smolagents: Memory is not preserved across different execution runs, you must explicitly state it using <code>reset=False</code>.</li> <li>LlamaIndex: Requires explicitly adding a context object for memory management within a run.</li> <li>LangGraph: Offers options to retrieve previous messages or utilize a dedicated <a href="https://langchain-ai.github.io/langgraph/tutorials/introduction/#part-3-adding-memory-to-the-chatbot" rel="nofollow">MemorySaver</a> component.</li>',Rl,nl,Nl,al,ss="Congratulations! You’ve successfully built Alfred, a sophisticated agent equipped with multiple tools to help host the most extravagant gala of the century. Alfred can now:",Fl,ol,es="<li>Retrieve detailed information about guests</li> <li>Check weather conditions for planning outdoor activities</li> <li>Provide insights about influential AI builders and their models</li> <li>Search the web for the latest information</li> <li>Maintain conversation context with memory</li>",Ql,pl,ts="With these capabilities, Alfred is ready to ensure your gala is a resounding success, impressing guests with personalized attention and up-to-date information.",Yl,rl,xl,Ml,zl;return o=new V({props:{title:"Creating Your Gala Agent",local:"creating-your-gala-agent",headingTag:"h1"}}),v=new V({props:{title:"Assembling Alfred: The Complete Agent",local:"assembling-alfred-the-complete-agent",headingTag:"h2"}}),X=new us({props:{$$slots:{default:[bs]},$$scope:{ctx:U}}}),C=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[Zs]},$$scope:{ctx:U}}}),E=new V({props:{title:"Using Alfred: End-to-End Examples",local:"using-alfred-end-to-end-examples",headingTag:"h2"}}),H=new V({props:{title:"Example 1: Finding Guest Information",local:"example-1-finding-guest-information",headingTag:"h3"}}),R=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[$s]},$$scope:{ctx:U}}}),q=new V({props:{title:"Example 2: Checking the Weather for Fireworks",local:"example-2-checking-the-weather-for-fireworks",headingTag:"h3"}}),N=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[vs]},$$scope:{ctx:U}}}),L=new V({props:{title:"Example 3: Impressing AI Researchers",local:"example-3-impressing-ai-researchers",headingTag:"h3"}}),F=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[Rs]},$$scope:{ctx:U}}}),P=new V({props:{title:"Example 4: Combining Multiple Tools",local:"example-4-combining-multiple-tools",headingTag:"h3"}}),Q=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[Ys]},$$scope:{ctx:U}}}),ll=new V({props:{title:"Advanced Features: Conversation Memory",local:"advanced-features-conversation-memory",headingTag:"h2"}}),Y=new il({props:{id:"agents-frameworks",options:["smolagents","llama-index","langgraph"],$$slots:{default:[Es]},$$scope:{ctx:U}}}),nl=new V({props:{title:"Conclusion",local:"conclusion",headingTag:"h2"}}),rl=new js({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit3/agentic-rag/agent.mdx"}}),{c(){e=T("meta"),p=y(),t=T("p"),c=y(),d(o.$$.fragment),a=y(),s=T("p"),s.textContent=l,M=y(),I=T("p"),I.textContent=G,x=y(),d(v.$$.fragment),$=y(),k=T("p"),k.innerHTML=El,yl=y(),d(X.$$.fragment),wl=y(),z=T("p"),z.textContent=_l,dl=y(),d(C.$$.fragment),Jl=y(),S=T("p"),S.textContent=Hl,hl=y(),d(E.$$.fragment),ul=y(),_=T("p"),_.textContent=Al,jl=y(),d(H.$$.fragment),bl=y(),A=T("p"),A.textContent=ql,Ul=y(),d(R.$$.fragment),Tl=y(),d(q.$$.fragment),fl=y(),D=T("p"),D.textContent=Dl,Zl=y(),d(N.$$.fragment),Bl=y(),d(L.$$.fragment),Il=y(),K=T("p"),K.textContent=Ll,Gl=y(),d(F.$$.fragment),$l=y(),d(P.$$.fragment),gl=y(),O=T("p"),O.textContent=Kl,Wl=y(),d(Q.$$.fragment),kl=y(),d(ll.$$.fragment),vl=y(),sl=T("p"),sl.textContent=Pl,Vl=y(),d(Y.$$.fragment),Xl=y(),el=T("p"),el.textContent=Ol,Cl=y(),tl=T("ul"),tl.innerHTML=ls,Rl=y(),d(nl.$$.fragment),Nl=y(),al=T("p"),al.textContent=ss,Fl=y(),ol=T("ol"),ol.innerHTML=es,Ql=y(),pl=T("p"),pl.textContent=ts,Yl=y(),d(rl.$$.fragment),xl=y(),Ml=T("p"),this.h()},l(n){const m=Js("svelte-u9bgzb",document.head);e=f(m,"META",{name:!0,content:!0}),m.forEach(r),p=w(n),t=f(n,"P",{}),cs(t).forEach(r),c=w(n),J(o.$$.fragment,n),a=w(n),s=f(n,"P",{"data-svelte-h":!0}),Z(s)!=="svelte-zy52na"&&(s.textContent=l),M=w(n),I=f(n,"P",{"data-svelte-h":!0}),Z(I)!=="svelte-14br3fr"&&(I.textContent=G),x=w(n),J(v.$$.fragment,n),$=w(n),k=f(n,"P",{"data-svelte-h":!0}),Z(k)!=="svelte-ymwr2s"&&(k.innerHTML=El),yl=w(n),J(X.$$.fragment,n),wl=w(n),z=f(n,"P",{"data-svelte-h":!0}),Z(z)!=="svelte-c7rmsv"&&(z.textContent=_l),dl=w(n),J(C.$$.fragment,n),Jl=w(n),S=f(n,"P",{"data-svelte-h":!0}),Z(S)!=="svelte-14v72pw"&&(S.textContent=Hl),hl=w(n),J(E.$$.fragment,n),ul=w(n),_=f(n,"P",{"data-svelte-h":!0}),Z(_)!=="svelte-9tzza2"&&(_.textContent=Al),jl=w(n),J(H.$$.fragment,n),bl=w(n),A=f(n,"P",{"data-svelte-h":!0}),Z(A)!=="svelte-q56lz7"&&(A.textContent=ql),Ul=w(n),J(R.$$.fragment,n),Tl=w(n),J(q.$$.fragment,n),fl=w(n),D=f(n,"P",{"data-svelte-h":!0}),Z(D)!=="svelte-hjmcxo"&&(D.textContent=Dl),Zl=w(n),J(N.$$.fragment,n),Bl=w(n),J(L.$$.fragment,n),Il=w(n),K=f(n,"P",{"data-svelte-h":!0}),Z(K)!=="svelte-1jt87a9"&&(K.textContent=Ll),Gl=w(n),J(F.$$.fragment,n),$l=w(n),J(P.$$.fragment,n),gl=w(n),O=f(n,"P",{"data-svelte-h":!0}),Z(O)!=="svelte-1ke07qy"&&(O.textContent=Kl),Wl=w(n),J(Q.$$.fragment,n),kl=w(n),J(ll.$$.fragment,n),vl=w(n),sl=f(n,"P",{"data-svelte-h":!0}),Z(sl)!=="svelte-litl8p"&&(sl.textContent=Pl),Vl=w(n),J(Y.$$.fragment,n),Xl=w(n),el=f(n,"P",{"data-svelte-h":!0}),Z(el)!=="svelte-wb8021"&&(el.textContent=Ol),Cl=w(n),tl=f(n,"UL",{"data-svelte-h":!0}),Z(tl)!=="svelte-nvz4r2"&&(tl.innerHTML=ls),Rl=w(n),J(nl.$$.fragment,n),Nl=w(n),al=f(n,"P",{"data-svelte-h":!0}),Z(al)!=="svelte-dnx784"&&(al.textContent=ss),Fl=w(n),ol=f(n,"OL",{"data-svelte-h":!0}),Z(ol)!=="svelte-1vc8vrh"&&(ol.innerHTML=es),Ql=w(n),pl=f(n,"P",{"data-svelte-h":!0}),Z(pl)!=="svelte-kz905k"&&(pl.textContent=ts),Yl=w(n),J(rl.$$.fragment,n),xl=w(n),Ml=f(n,"P",{}),cs(Ml).forEach(r),this.h()},h(){Sl(e,"name","hf:doc:metadata"),Sl(e,"content",Hs)},m(n,m){hs(document.head,e),i(n,p,m),i(n,t,m),i(n,c,m),h(o,n,m),i(n,a,m),i(n,s,m),i(n,M,m),i(n,I,m),i(n,x,m),h(v,n,m),i(n,$,m),i(n,k,m),i(n,yl,m),h(X,n,m),i(n,wl,m),i(n,z,m),i(n,dl,m),h(C,n,m),i(n,Jl,m),i(n,S,m),i(n,hl,m),h(E,n,m),i(n,ul,m),i(n,_,m),i(n,jl,m),h(H,n,m),i(n,bl,m),i(n,A,m),i(n,Ul,m),h(R,n,m),i(n,Tl,m),h(q,n,m),i(n,fl,m),i(n,D,m),i(n,Zl,m),h(N,n,m),i(n,Bl,m),h(L,n,m),i(n,Il,m),i(n,K,m),i(n,Gl,m),h(F,n,m),i(n,$l,m),h(P,n,m),i(n,gl,m),i(n,O,m),i(n,Wl,m),h(Q,n,m),i(n,kl,m),h(ll,n,m),i(n,vl,m),i(n,sl,m),i(n,Vl,m),h(Y,n,m),i(n,Xl,m),i(n,el,m),i(n,Cl,m),i(n,tl,m),i(n,Rl,m),h(nl,n,m),i(n,Nl,m),i(n,al,m),i(n,Fl,m),i(n,ol,m),i(n,Ql,m),i(n,pl,m),i(n,Yl,m),h(rl,n,m),i(n,xl,m),i(n,Ml,m),zl=!0},p(n,[m]){const ns={};m&2&&(ns.$$scope={dirty:m,ctx:n}),X.$set(ns);const as={};m&2&&(as.$$scope={dirty:m,ctx:n}),C.$set(as);const os={};m&2&&(os.$$scope={dirty:m,ctx:n}),R.$set(os);const ps={};m&2&&(ps.$$scope={dirty:m,ctx:n}),N.$set(ps);const rs={};m&2&&(rs.$$scope={dirty:m,ctx:n}),F.$set(rs);const is={};m&2&&(is.$$scope={dirty:m,ctx:n}),Q.$set(is);const Ms={};m&2&&(Ms.$$scope={dirty:m,ctx:n}),Y.$set(Ms)},i(n){zl||(u(o.$$.fragment,n),u(v.$$.fragment,n),u(X.$$.fragment,n),u(C.$$.fragment,n),u(E.$$.fragment,n),u(H.$$.fragment,n),u(R.$$.fragment,n),u(q.$$.fragment,n),u(N.$$.fragment,n),u(L.$$.fragment,n),u(F.$$.fragment,n),u(P.$$.fragment,n),u(Q.$$.fragment,n),u(ll.$$.fragment,n),u(Y.$$.fragment,n),u(nl.$$.fragment,n),u(rl.$$.fragment,n),zl=!0)},o(n){j(o.$$.fragment,n),j(v.$$.fragment,n),j(X.$$.fragment,n),j(C.$$.fragment,n),j(E.$$.fragment,n),j(H.$$.fragment,n),j(R.$$.fragment,n),j(q.$$.fragment,n),j(N.$$.fragment,n),j(L.$$.fragment,n),j(F.$$.fragment,n),j(P.$$.fragment,n),j(Q.$$.fragment,n),j(ll.$$.fragment,n),j(Y.$$.fragment,n),j(nl.$$.fragment,n),j(rl.$$.fragment,n),zl=!1},d(n){n&&(r(p),r(t),r(c),r(a),r(s),r(M),r(I),r(x),r($),r(k),r(yl),r(wl),r(z),r(dl),r(Jl),r(S),r(hl),r(ul),r(_),r(jl),r(bl),r(A),r(Ul),r(Tl),r(fl),r(D),r(Zl),r(Bl),r(Il),r(K),r(Gl),r($l),r(gl),r(O),r(Wl),r(kl),r(vl),r(sl),r(Vl),r(Xl),r(el),r(Cl),r(tl),r(Rl),r(Nl),r(al),r(Fl),r(ol),r(Ql),r(pl),r(Yl),r(xl),r(Ml)),r(e),b(o,n),b(v,n),b(X,n),b(C,n),b(E,n),b(H,n),b(R,n),b(q,n),b(N,n),b(L,n),b(F,n),b(P,n),b(Q,n),b(ll,n),b(Y,n),b(nl,n),b(rl,n)}}}const Hs='{"title":"Creating Your Gala Agent","local":"creating-your-gala-agent","sections":[{"title":"Assembling Alfred: The Complete Agent","local":"assembling-alfred-the-complete-agent","sections":[],"depth":2},{"title":"Using Alfred: End-to-End Examples","local":"using-alfred-end-to-end-examples","sections":[{"title":"Example 1: Finding Guest Information","local":"example-1-finding-guest-information","sections":[],"depth":3},{"title":"Example 2: Checking the Weather for Fireworks","local":"example-2-checking-the-weather-for-fireworks","sections":[],"depth":3},{"title":"Example 3: Impressing AI Researchers","local":"example-3-impressing-ai-researchers","sections":[],"depth":3},{"title":"Example 4: Combining Multiple Tools","local":"example-4-combining-multiple-tools","sections":[],"depth":3}],"depth":2},{"title":"Advanced Features: Conversation Memory","local":"advanced-features-conversation-memory","sections":[],"depth":2},{"title":"Conclusion","local":"conclusion","sections":[],"depth":2}],"depth":1}';function As(U){return ys(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class se extends ws{constructor(e){super(),ds(this,e,As,_s,ms,{})}}export{se as component};
