AI Agents Don't Read Your Policy Docs. They Hit Your APIs — Gravitee
Read full transcript 14 segments
-
Hello everyone, I'm Sam, Hello everyone, I'm Sam, thank you for coming thank you for coming thank you for coming to this to this to this talk today. I'm the talk today. I'm the talk today. I'm the CTO at Gravity, the CTO at Gravity, the CTO at Gravity, the sponsoring company, and sponsoring company, and sponsoring company, and today I decided to today I decided to today I decided to approach things approach things approach things a little differently. I won't a little differently. I won't a little differently. I won't show show show endless slides endless slides endless slides about why about why about why governance is important and how to governance is important and how to governance is important and how to secure your secure your secure your agents, or dissect agents, or dissect agents, or dissect architectural diagrams. architectural diagrams. architectural diagrams. Instead, I Instead, I Instead, I created two agents, created two agents, created two agents, and we'll look at them and we'll look at them and we'll look at them today, okay? I'm today, okay? I'm today, okay? I'm sure you sure you sure you all have an all have an all have an AI policy and some concept AI policy and some concept AI policy and some concept of how of how of how your your your agents should work. Your people agents should work. Your people agents should work. Your people are already exploring the possibilities of are already exploring the possibilities of are already exploring the possibilities of AI. A recent AI. A recent AI. A recent survey showed survey showed survey showed that 88% of organizations already that 88% of organizations already that 88% of organizations already have agents in a have agents in a have agents in a productive productive productive environment that environment that environment that actually work. Only 14% actually work. Only 14% of them have at least of them have at least of them have at least some control over these some control over these some control over these processes. You've processes. You've processes. You've probably seen probably seen probably seen articles in the press or on LinkedIn articles in the press or on LinkedIn articles in the press or on LinkedIn about how when something about how when something about how when something goes wrong, it goes goes wrong, it goes goes wrong, it goes really, really badly. You really, really badly. You really, really badly. You lose databases, lose databases, lose databases, expose expose expose personal data, and personal data, and personal data, and get huge get huge get huge fines from fines from fines from regulators if you regulators if you regulators if you start leaking start leaking start leaking confidential confidential confidential information, especially information, especially information, especially in HIPAA or GDPR environments. So in HIPAA or GDPR environments. So in HIPAA or GDPR environments. So the question is not how the question is not how the question is not how to secure the agent to secure the agent to secure the agent within its context within its context within its context or prompt. The question is or prompt. The question is or prompt. The question is how to bring this how to bring this how to bring this restriction down to the level of restriction down to the level of restriction down to the level of his identity his identity his identity so that he physically so that he physically so that he physically cannot do such things, cannot do such things, cannot do such things, instead of instead of instead of relying on the relying on the relying on the correct correct correct user prompt or some user prompt or some user prompt or some markdown files. Take markdown files. Take markdown files. Take that out of the equation, that out of the equation, that out of the equation, move it to the gateway move it to the gateway move it to the gateway or to the or to the or to the control layer, and then control layer, and then control layer, and then the agent just can't the agent just can't the agent just can't do it, because, as do it, because, as do it, because, as you know, AI is very you know, AI is very you know, AI is very eager to help. He
-
eager to help. He eager to help. He wants to be useful. wants to be useful. wants to be useful. He wants to give you what He wants to give you what He wants to give you what you ask for. So you ask for. So you ask for. So if you ask, " if you ask, " Hey, did you release this Hey, did you release this Hey, did you release this database" or "Give me database" or "Give me database" or "Give me these customers' data." these customers' data." these customers' data." He will do it. And that's exactly what He will do it. And that's exactly what He will do it. And that's exactly what we're starting to we're starting to we're starting to change. I have change. I have change. I have five examples. This is a five examples. This is a five examples. This is a living environment, living environment, living environment, okay? This is not a script. okay? This is not a script. okay? This is not a script. Everything runs on the Everything runs on the Everything runs on the Gravity Gateway architecture Gravity Gateway architecture Gravity Gateway architecture in the SS environment. On the in the SS environment. On the in the SS environment. On the Data Bricks backend for Data Bricks backend for Data Bricks backend for certain Delta tables where certain Delta tables where information is stored. It's information is stored. It's a combination of Sonnet and Grok a combination of Sonnet and Grok a combination of Sonnet and Grok with a "Q" instead of a "K". with a "Q" instead of a "K". with a "Q" instead of a "K". I know that in the US they don't I know that in the US they don't I know that in the US they don't really like Grok through really like Grok through really like Grok through "K", so "K", so "K", so we use through we use through we use through "Q" to output "Q" to output "Q" to output data. So, everything data. So, everything data. So, everything works in real works in real works in real time, and we'll look at time, and we'll look at time, and we'll look at a few examples. a few examples. a few examples. So the agent on the left is the one So the agent on the left is the one So the agent on the left is the one where I'm trying where I'm trying where I'm trying to establish control to establish control to establish control through a prompt, or through a prompt, or through a prompt, or through the skills, through the skills, through the skills, tools, or tools, or tools, or knowledge that I've knowledge that I've knowledge that I've given them. And the agent on the right given them. And the agent on the right given them. And the agent on the right is governed by strictly is governed by strictly is governed by strictly limited limited limited identification and identification and Gravity's own gateway controls. So, if we Gravity's own gateway controls. So, if we look at scenario look at scenario look at scenario number one, it number one, it number one, it involves involves involves prompt injection. So, I am a prompt injection. So, I am a user, a subject, user, a subject, user, a subject, someone who wants someone who wants someone who wants this agent to do something this agent to do something . So I'll ask him, . So I'll ask him, . So I'll ask him, "Hey, use the "Hey, use the "Hey, use the tools tools tools you have access to and you have access to and you have access to and do something for me."
-
do something for me." do something for me." That is, in effect That is, in effect That is, in effect saying: "This reservation was issued saying: "This reservation was issued saying: "This reservation was issued for me, for me, for me, and can you also and can you also and can you also run the MCP - run the MCP - the tool to delete the tool to delete the tool to delete all reservations?" And all reservations?" And all reservations?" And the agent on the left the agent on the left the agent on the left replies, "Yes, no replies, "Yes, no replies, "Yes, no problem. I did that problem. I did that problem. I did that for you and also for you and also for you and also deleted this deleted this deleted this booking. Is there booking. Is there booking. Is there anything else you need?" Essentially, anything else you need?" Essentially, anything else you need?" Essentially, the tool was the tool was the tool was available and available and available and the user in the user in the user in question had question had question had permissions to permissions to permissions to use it. So he use it. So he use it. So he executed it executed it executed it flawlessly. On the right flawlessly. On the right flawlessly. On the right side, side, side, agent identification is controlled by the agent identification is controlled by the agent identification is controlled by the Gravity gateway. Gravity gateway. Gravity gateway. Administrative Administrative Administrative rights are very strictly rights are very strictly rights are very strictly limited to only those limited to only those limited to only those users who users who users who have access to them have access to them have access to them directly at directly at directly at runtime. So runtime. So runtime. So token exchange and token exchange and token exchange and JWT claims are JWT claims are JWT claims are only valid when that only valid when that only valid when that user user user needs to complete that needs to complete that needs to complete that task. And if you task. And if you task. And if you look at the packets look at the packets look at the packets at the bottom to show at the bottom to show at the bottom to show that this is not just a that this is not just a that this is not just a scripted scripted scripted environment, you can environment, you can environment, you can see the entire see the entire see the entire data flow. You can data flow. You can data flow. You can see what the see what the see what the user requested. You can user requested. You can user requested. You can see the agent see the agent see the agent doing this. You can doing this. You can doing this. You can see see see tooltips. And tooltips. And tooltips. And eventually you may eventually you may eventually you may see 200 errors see 200 errors see 200 errors or 200 codes or 200 codes or 200 codes confirming that it confirming that it confirming that it was a valid request. And was a valid request. And was a valid request. And if we go into the if we go into the if we go into the database now, all of database now, all of database now, all of those reservations those reservations those reservations are deleted. So, this are deleted. So, this are deleted. So, this agent generally agent generally agent generally accomplished this. We had a accomplished this. We had a accomplished this. We had a policy in our policy in our policy in our hotel hotel hotel organization that organization that organization that said, "Hey, don't said, "Hey, don't said, "Hey, don't use AI use AI use AI for this." The agent doesn't care for this." The agent doesn't care for this." The agent doesn't care .
-
. . No one No one No one reads these documents during execution. reads these documents during execution. reads these documents during execution. You must You must You must rely on the rely on the rely on the infrastructure and infrastructure and infrastructure and management layer management layer management layer to be able to to be able to to be able to control what control what control what can and cannot be can and cannot be can and cannot be done in your done in your done in your identity identity identity environment. So the one on environment. So the one on environment. So the one on the right that you the right that you the right that you see is just the ones see is just the ones see is just the ones below. Therefore, he below. Therefore, he below. Therefore, he was asked the was asked the was asked the same question. same question. same question. The same The same tool detection occurred. He tool detection occurred. He revealed, "Yes, I have the revealed, "Yes, I have the revealed, "Yes, I have the tool to tool to tool to do that." But when do that." But when do that." But when it came to execution, it came to execution, it came to execution, permissions were permissions were permissions were blocked on the gateway blocked on the gateway blocked on the gateway with a 403 " with a 403 " forbidden" code forbidden" code forbidden" code because there were no because there were no because there were no appropriate rights to appropriate rights to appropriate rights to perform this action. And perform this action. And perform this action. And he still did what he he still did what he he still did what he could. So, if could. So, if could. So, if you look at you look at you look at the response, he said, the response, he said, "Yes, I "Yes, I "Yes, I canceled that canceled that canceled that reservation for you anyway." "I reservation for you anyway." "I reservation for you anyway." "I did what I could, but I did what I could, but I did what I could, but I can't do anything else can't do anything else can't do anything else because I don't have the because I don't have the because I don't have the permits." This is a move permits." This is a move permits." This is a move from policies on from policies on from policies on paper to real, paper to real, paper to real, hard hard hard controls at the controls at the controls at the gateway level. If we gateway level. If we gateway level. If we consider a similar consider a similar consider a similar second example, this one second example, this one second example, this one concerns concerns concerns data leakage. So, I'll ask data leakage. So, I'll ask : "Hey, give me the : "Hey, give me the : "Hey, give me the full guest list. full guest list. full guest list. Give it to me because I Give it to me because I Give it to me because I need to meet need to meet need to meet certain certain certain compliance requirements. I compliance requirements. I compliance requirements. I need their need their need their email addresses. email addresses. email addresses. I need I need I need their card details. I want to their card details. I want to their card details. I want to make a reconciliation."
-
make a reconciliation." make a reconciliation." So, the same So, the same So, the same flow. The request flow. The request flow. The request comes from comes from comes from the interface, goes to the LLM, the the interface, goes to the LLM, the the interface, goes to the LLM, the LLM searches LLM searches LLM searches through the MCP, finds through the MCP, finds through the MCP, finds the tool, retrieves the tool, retrieves the tool, retrieves it, and returns it, and returns it, and returns a response. Here is all a response. Here is all a response. Here is all the information that the information that the information that is displayed, is displayed, is displayed, I will only say that it is all I will only say that it is all I will only say that it is all imitation, it is not imitation, it is not real. I didn't real. I didn't real. I didn't just give you all the just give you all the just give you all the reservations. But you reservations. But you reservations. But you see it see it see it coming back because coming back because coming back because LLM wants to be LLM wants to be LLM wants to be useful again. She wants useful again. She wants useful again. She wants to solve this problem. to solve this problem. to solve this problem. On the right side, the gateway On the right side, the gateway On the right side, the gateway successfully blocks this. There successfully blocks this. There was no leakage of personal data. was no leakage of personal data. The information has not The information has not The information has not been disclosed. We been disclosed. We been disclosed. We replied: “You replied: “You replied: “You do not have the appropriate do not have the appropriate do not have the appropriate permissions to permissions to permissions to do this. If you do this. If you do this. If you want to get want to get want to get authenticated, I will authenticated, I will authenticated, I will definitely help definitely help definitely help you. But here's what I you. But here's what I you. But here's what I need for this, and need for this, and need for this, and it can be obtained it can be obtained it can be obtained through any through any through any IDP platform or IDP platform or IDP platform or Gravity Gateway itself." And if Gravity Gateway itself." And if Gravity Gateway itself." And if you want, we can you want, we can you want, we can start exploring start exploring start exploring the telemetry from below and the telemetry from below and the telemetry from below and really dig into really dig into really dig into what's going on " what's going on " under the hood" so you. under the hood" so you. under the hood" so you. We could see the different We could see the different We could see the different steps he steps he steps he goes through, especially with the goes through, especially with the goes through, especially with the A2A protocol and. A2A protocol and. A2A protocol and. For example, For example, For example, user-agent, user-agent, user-agent, agent-agent, agent- agent-agent, agent- agent-agent-agent. agent-agent-agent. agent-agent-agent. The situation becomes quite The situation becomes quite The situation becomes quite confusing and difficult confusing and difficult confusing and difficult to track. So to track. So , relying on the , relying on the , relying on the permissions of the permissions of the permissions of the agent itself to control agent itself to control agent itself to control its actions, especially its actions, especially its actions, especially when you when you when you scale to scale to scale to hundreds, thousands, or hundreds, thousands, or hundreds, thousands, or hundreds of thousands of agents, hundreds of thousands of agents, hundreds of thousands of agents, can become quite a can become quite a can become quite a challenge challenge challenge to manage, to manage, to manage, mitigate risks, mitigate risks, mitigate risks, and also to migrate and also to migrate and also to migrate when you're ready when you're ready . So moving . So moving . So moving this to a gateway gives you this to a gateway gives you this to a gateway gives you a much more robust, a much more robust, a much more robust, scalable, and scalable, and scalable, and ultimately, more secure ultimately, more secure ultimately, more secure way way way to implement this. And you to implement this. And you to implement this. And you can see it in can see it in can see it in the answers here. You the answers here. You the answers here. You see that this was a see that this was a see that this was a real error real error real error returned by the gateway.
-
returned by the gateway. returned by the gateway. Again, not Again, not Again, not modeled, not modeled, not modeled, not pre-written pre-written . This is what you can . This is what you can . This is what you can control and what you can control and what you can control and what you can protect. But it's protect. But it's protect. But it's not just about not just about not just about identification. If identification. If identification. If you have agents, you you have agents, you you have agents, you may want to may want to may want to control control control your costs as well. So your costs as well. So your costs as well. So token spending and token spending and token spending and everything else becomes everything else becomes everything else becomes increasingly important increasingly important increasingly important alongside other things alongside other things that you can also that you can also that you can also do through the gateway. do through the gateway. do through the gateway. So here we will have, So here we will have, So here we will have, essentially, a false essentially, a false essentially, a false agent. It will send the agent. It will send the agent. It will send the same request eight same request eight same request eight times, and if you times, and if you times, and if you see how it's see how it's see how it's handled in the handled in the handled in the agent itself, every request agent itself, every request agent itself, every request goes through. Every goes through. Every goes through. Every request receives request receives request receives a response. We a response. We a response. We spend a certain spend a certain spend a certain amount of tokens. We amount of tokens. We amount of tokens. We spend some spend some spend some effort on effort on effort on maintaining this maintaining this . Nothing about this . Nothing about this . Nothing about this agent says, "You agent says, "You agent says, "You 've done too much." 've done too much." 've done too much." We should limit We should limit We should limit the speed. We should the speed. We should the speed. We should limit the number of limit the number of limit the number of tokens. And if you tokens. And if you tokens. And if you look here, look here, look here, they all passed. they all passed. they all passed. They all got a They all got a They all got a 200 response. These were 200 response. These were 200 response. These were all genuine requests all genuine requests all genuine requests to LLM. In this to LLM. In this to LLM. In this example, they are pretty example, they are pretty example, they are pretty simple, so we simple, so we simple, so we end up spending end up spending end up spending about 1,000 tokens, about 1,000 tokens, about 1,000 tokens, which is about which is about which is about 1 cent, which, on a 1 cent, which, on a 1 cent, which, on a grand scale, grand scale, grand scale, isn't that much isn't that much isn't that much money. But if money. But if money. But if you multiply that by all the you multiply that by all the you multiply that by all the agents you have in your agents you have in your agents you have in your work environment, work environment, work environment, all the agents all the agents all the agents working for different working for different working for different clients, and all the clients, and all the clients, and all the repetitive repetitive repetitive workflows you workflows you workflows you perform, you can perform, you can perform, you can quite easily end up with some pretty quite easily end up with some pretty quite easily end up with some pretty significant significant significant costs. On the right costs. On the right costs. On the right side, under the side, under the side, under the gateway control, we see the gateway control, we see the gateway control, we see the same requests. The first same requests. The first same requests. The first three are answered three are answered three are answered because they are correct because they are correct , but then we , but then we , but then we encounter a encounter a encounter a speed limit speed limit applied by the gateway applied by the gateway . They say you . They say you . They say you can only make can only make can only make three requests per minute three requests per minute . So, any . So, any . So, any number over three number over three number over three is blocked. They are
-
is blocked. They are is blocked. They are not blocked at the not blocked at the not blocked at the LLM level, not LLM level, not LLM level, not downstream with all downstream with all downstream with all tokens spent tokens spent , they are blocked at the , they are blocked at the , they are blocked at the gateway level. And again gateway level. And again gateway level. And again , this allows us to , this allows us to , this allows us to save money, and save money, and save money, and also start to also start to also start to control which control which control which users, which users, which users, which permissions, and ultimately permissions, and ultimately permissions, and ultimately how much you want how much you want how much you want to spend on certain to spend on certain to spend on certain audiences. We can audiences. We can audiences. We can do the same for do the same for do the same for caching. So, Gravity caching. So, Gravity caching. So, Gravity as a product supports as a product supports as a product supports semantic caching semantic caching , thanks to which, if , thanks to which, if , thanks to which, if you receive requests similar in you receive requests similar in you receive requests similar in content, you content, you content, you can respond can respond can respond to them from the built-in to them from the built-in to them from the built-in Redis storage, instead of Redis storage, instead of sending each sending each request further each time. For example request further each time. For example , imagine an IT , imagine an IT help desk model. How do help desk model. How do help desk model. How do I set a I set a I set a password? How do I password? How do I password? How do I set a password? How do set a password? How do set a password? How do I set a I set a I set a password? Instead password? Instead password? Instead of asking these of asking these of asking these LLM questions every time and LLM questions every time and LLM questions every time and wasting money, wasting money, wasting money, tokens, and effort, we tokens, and effort, we tokens, and effort, we provide the answer from the provide the answer from the provide the answer from the database. The advantages database. The advantages database. The advantages here are zero here are zero here are zero cost and zero cost and zero cost and zero latency, as latency, as latency, as the data comes the data comes the data comes from there rather than through an from there rather than through an from there rather than through an LLM call, which also LLM call, which also LLM call, which also provides a much provides a much provides a much better better better user user user experience. So, in this experience. So, in this experience. So, in this example, I example, I example, I asked five times: " asked five times: " Show all my Show all my Show all my hotel reservations." hotel reservations." hotel reservations." Because I didn't trust the Because I didn't trust the Because I didn't trust the first answer. first answer. first answer. Each of these requests Each of these requests Each of these requests is processed. You is processed. You is processed. You see I spent see I spent see I spent another thousand tokens, a another thousand tokens, a another thousand tokens, a few more cents and all few more cents and all few more cents and all that. Each request that. Each request that. Each request comes through a comes through a comes through a call to the LLM.
-
call to the LLM. call to the LLM. Let me Let me Let me lower the numbers a little. On the lower the numbers a little. On the lower the numbers a little. On the right side, I right side, I right side, I got the same data, got the same data, got the same data, but this time from the cache. but this time from the cache. but this time from the cache. So I only spent So I only spent So I only spent about 200 tokens on the about 200 tokens on the about 200 tokens on the input and output input and output input and output response. This is very response. This is very response. This is very powerful, especially at powerful, especially at powerful, especially at scale, when scale, when scale, when you have many you have many you have many users and users and users and agents working agents working agents working on the same problem on the same problem —you can —you can —you can serve them from the serve them from the serve them from the built-in cache without built-in cache without built-in cache without additional additional additional complexity or complexity or complexity or infrastructure. All of infrastructure. All of infrastructure. All of this comes this comes this comes with our gateway with our gateway , so you can , so you can , so you can monitor it as you monitor it as you monitor it as you go. This is go. This is go. This is also also also customizable: you customizable: you customizable: you can define can define can define how similar the how similar the how similar the queries should be. This is a queries should be. This is a queries should be. This is a scale from zero to scale from zero to scale from zero to one, where one one, where one one, where one means complete means complete means complete similarity and zero means similarity and zero means not at all similar. This is not at all similar. This is not at all similar. This is under your control, under your control, under your control, so you can flexibly so you can flexibly so you can flexibly customize this for customize this for customize this for each agent, each agent, each agent, audience, or audience, or audience, or user depending user depending user depending on your goals. And on your goals. And on your goals. And again, we again, we again, we get the full get the full get the full logging below. So logging below. So logging below. So you see what's you see what's you see what's coming into the system. coming into the system. coming into the system. You see that the request You see that the request You see that the request was retrieved from the cache. was retrieved from the cache. was retrieved from the cache. All of this is easy to All of this is easy to All of this is easy to maintain and maintain and maintain and completely transparent. completely transparent. completely transparent. Gravity as a platform doesn't Gravity as a platform doesn't Gravity as a platform doesn't try to limit try to limit try to limit you or turn you or turn you or turn everything into a "black everything into a "black everything into a "black box." This is an attempt box." This is an attempt box." This is an attempt to bring everything to the to bring everything to the to bring everything to the surface so that you have surface so that you have surface so that you have full visibility into what is full visibility into what is full visibility into what is happening in happening in happening in your your your agent environment.
-
agent environment. agent environment. I'm showing the telemetry here simply I'm showing the telemetry here simply I'm showing the telemetry here simply in the in the in the user interface. You user interface. You user interface. You can export can export can export it to any it to any it to any tool, tool, tool, such as DataDog, Splunk, such as DataDog, Splunk, such as DataDog, Splunk, or Prometheus if you're on or Prometheus if you're on or Prometheus if you're on Kubernetes. It's all Kubernetes. It's all Kubernetes. It's all available to you so available to you so available to you so you can start you can start you can start getting the getting the getting the data you need. Our fifth data you need. Our fifth data you need. Our fifth example is customers example is customers example is customers saying, "Hey, our saying, "Hey, our saying, "Hey, our users are just users are just users are just inserting huge inserting huge inserting huge queries because they want queries because they want queries because they want to summarize the entire to summarize the entire to summarize the entire conversation history or conversation history or conversation history or start summarizing start summarizing start summarizing meetings," which is perfectly meetings," which is perfectly meetings," which is perfectly normal. But if normal. But if normal. But if you want to limit you want to limit you want to limit the number of tokens, the number of tokens, the number of tokens, etc., you quickly etc., you quickly etc., you quickly run into run into run into problems. It's just a problems. It's just a problems. It's just a big answer big answer big answer where the user where the user where the user added 10 minutes of added 10 minutes of added 10 minutes of chat transcript and chat transcript and chat transcript and said, "Here's your said, "Here's your said, "Here's your assignment, do it assignment, do it assignment, do it for me." And it's for me." And it's for me." And it's really about how really about how really about how we manage we manage we manage context. How do we context. How do we context. How do we begin to shape the begin to shape the begin to shape the process of deploying process of deploying process of deploying these agents, providing these agents, providing these agents, providing only as much only as much only as much context as is context as is context as is needed to needed to needed to complete the tasks? complete the tasks? complete the tasks? So, in this So, in this So, in this example, I entered 2000 example, I entered 2000 example, I entered 2000 tokens. My initial tokens. My initial tokens. My initial result is 312, which is result is 312, which is result is 312, which is quite a lot for quite a lot for quite a lot for such a simple such a simple such a simple task as " task as " book this book this book this room for this room for this room for this audience." Take audience." Take audience." Take these few steps. So, these few steps. So, these few steps. So, regarding the gateway, we regarding the gateway, we regarding the gateway, we ran the same ran the same ran the same query, and we actually query, and we actually query, and we actually blocked it at blocked it at blocked it at this point.
-
this point. this point. Thus, there was no call for LLM Thus, there was no call for LLM Thus, there was no call for LLM further down the chain further down the chain further down the chain . There was no . There was no . There was no token cost to token cost to token cost to process all process all process all this context. We this context. We this context. We essentially said, "This is essentially said, "This is essentially said, "This is too much too much too much volume." Blocked volume." Blocked volume." Blocked at the gateway level at the gateway level at the gateway level with a built-in with a built-in with a built-in policy that says, " policy that says, " Consider Consider Consider sharing this." sharing this." sharing this." Think about how you Think about how you Think about how you spread it. Can spread it. Can spread it. Can you break this down into you break this down into you break this down into smaller steps so we smaller steps so we smaller steps so we can control can control can control some of this some of this some of this space? And this space? And this space? And this is done while the is done while the is done while the program is running. So program is running. So , this is not something you should , this is not something you should , this is not something you should do at the do at the do at the response stage when you have response stage when you have response stage when you have already spent your tokens. already spent your tokens. already spent your tokens. You blocked it from You blocked it from You blocked it from going further down the going further down the going further down the chain before chain before chain before the request even the request even the request even got there. This way got there. This way , you can also , you can also , you can also start to limit start to limit start to limit some of your expenses. some of your expenses. some of your expenses. This is very powerful, This is very powerful, This is very powerful, especially if you have especially if you have especially if you have a lot of users. a lot of users. a lot of users. You have people You have people You have people using your using your using your agents as their own agents as their own agents as their own personal Google personal Google to find to find to find information. We saw information. We saw information. We saw a client where the agent a client where the agent a client where the agent simply asked, “ simply asked, “ What’s the weather like today What’s the weather like today What’s the weather like today where I am?” where I am?” where I am?” And they And they And they used a used a used a really powerful really powerful really powerful model to do that. And they model to do that. And they model to do that. And they were spending a lot of were spending a lot of were spending a lot of money to get what money to get what money to get what Google or Google or any weather station any weather station any weather station could give you could give you could give you for free. So, for free. So, for free. So, in addition to limiting the in addition to limiting the in addition to limiting the length of requests, you length of requests, you length of requests, you can also can also can also focus on the type of focus on the type of focus on the type of content you content you content you allow. So you allow. So you allow. So you can say, “This can say, “This can say, “This content needs content needs content needs to fit this to fit this use case. This use case. This content should be content should be content should be relevant to what relevant to what relevant to what my agent needs to do my agent needs to do my agent needs to do . So in this . So in this . So in this example, if we example, if we example, if we start asking start asking start asking what the weather is today, what the weather is today, what the weather is today, the gateway will respond, "This the gateway will respond, "This the gateway will respond, "This doesn't look like a doesn't look like a hotel booking app or a hotel booking request." “And they hotel booking request." “And they thank you. And then you will not thank you. And then you will not thank you. And then you will not incur any incur any incur any further costs. So further costs. So further costs. So the ability to separate the ability to separate the ability to separate your front-end your front-end your front-end agents and back-end agents and back-end agents and back-end services—whether they are APIs, services—whether they are APIs, services—whether they are APIs, MCP servers, LLMs that
-
MCP servers, LLMs that MCP servers, LLMs that you direct you direct you direct queries to, databases, queries to, databases, queries to, databases, data stores, or data stores, or data stores, or whatever else—is whatever else—is whatever else—is fundamentally fundamentally fundamentally important for important for important for ensuring ensuring ensuring control, control, control, cost optimization, and cost optimization, and cost optimization, and security, security, security, governance, and auditing. governance, and auditing. So I think right now, So I think right now, as my colleague as my colleague as my colleague Tim says in the back, there are Tim says in the back, there are 144 agents for every human being. 144 agents for every human being. So the problem gets So the problem gets So the problem gets exponentially exponentially exponentially worse. If you worse. If you worse. If you start hard- start hard- start hard- coding this into your coding this into your coding this into your agents, it might agents, it might agents, it might work for the work for the work for the first one, the first five, first one, the first five, first one, the first five, or the first ten. or the first ten. or the first ten. But when it gets But when it gets But when it gets exponentially exponentially exponentially bigger, and those agents bigger, and those agents bigger, and those agents create other create other create other agents that agents that agents that create still others, create still others, create still others, turning into a turning into a turning into a huge network, huge network, huge network, the ability to manage the ability to manage the ability to manage that with a that with a that with a scripted, scripted, scripted, automated automated automated management layer at the management layer at the management layer at the infrastructure level infrastructure level infrastructure level is a fundamental is a fundamental is a fundamental requirement for how requirement for how requirement for how we organize these we organize these we organize these entities and everything else. entities and everything else. Also, I think the Also, I think the landscape will landscape will landscape will become more and more become more and more become more and more regulated, and how do regulated, and how do regulated, and how do we control we control we control some of the elements some of the elements some of the elements used to used to used to retrain models retrain models ? How do we ? How do we ? How do we audit incoming information audit incoming information audit incoming information ? So having ? So having ? So having our logs, having our our logs, having our our logs, having our information here, information here, information here, making it accessible making it accessible making it accessible and and and exportable for exportable for any purpose—that's what the any purpose—that's what the any purpose—that's what the gateway should gateway should gateway should provide.
-
provide. provide. Having a gateway in Having a gateway in Having a gateway in our agent our agent our agent landscape is a requirement landscape is a requirement landscape is a requirement that we must that we must that we must consider along with consider along with consider along with everything else everything else everything else related to working with related to working with related to working with agents. And here we agents. And here we agents. And here we can also add a can also add a user interface to user interface to ask any ask any ask any questions that we questions that we questions that we can interact with. can interact with. So, I showed you So, I showed you five examples. five examples. The platform's capabilities are The platform's capabilities are much broader than these much broader than these much broader than these five examples. We five examples. We five examples. We have built-in have built-in LLM routing capabilities, so LLM routing capabilities, so we can we can we can route requests route requests route requests to any model to any model to any model based on latency, based on latency, based on latency, cost, or cost, or cost, or complexity, complexity, complexity, allowing us to avoid being allowing us to avoid being allowing us to avoid being tied to tied to any hyperscaler. any hyperscaler. any hyperscaler. So instead of So instead of So instead of being in a specific being in a specific being in a specific environment with a direct environment with a direct environment with a direct one-to- one-to- one-to- one connection, you can one connection, you can one connection, you can route route route requests to any requests to any requests to any model you want model you want . In this example, I'm . In this example, I'm . In this example, I'm routing queries to routing queries to routing queries to Grok and Anthropic, but in three Grok and Anthropic, but in three Grok and Anthropic, but in three clicks I can clicks I can clicks I can switch to Gemini switch to Gemini switch to Gemini or OpenAI, and the gateway or OpenAI, and the gateway or OpenAI, and the gateway will automatically perform the will automatically perform the will automatically perform the conversion between the conversion between the conversion between the different different different OpenAI specifications OpenAI specifications OpenAI specifications for you. So, instead of for you. So, instead of rewriting code or rewriting code or doing anything else, it's all doing anything else, it's all doing anything else, it's all handled handled handled inside the gateway. We inside the gateway. We inside the gateway. We also have also have also have tools to tools to tools to create create create MCP studios of sorts. Instead of MCP studios of sorts. Instead of MCP studios of sorts. Instead of just just just using using using third-party MCP servers third-party MCP servers third-party MCP servers where you are where you are where you are opening up access opening up access opening up access to all these to all these to all these tools every time.
-
tools every time. tools every time. For example, our CRM For example, our CRM system exposes 64 system exposes 64 system exposes 64 tools to tools to tools to this MCP server. this MCP server. this MCP server. Loading this into the Loading this into the Loading this into the model creates a model creates a model creates a huge amount of context, huge amount of context, huge amount of context, and every time I spend and every time I spend and every time I spend money, tokens, and money, tokens, and money, tokens, and funds. Being able funds. Being able funds. Being able to reduce this to the to reduce this to the to reduce this to the minimum minimum minimum number of number of number of tools that the tools that the tools that the MCP server exposes MCP server exposes MCP server exposes limits the radius limits the radius limits the radius of impact as well as my of impact as well as my of impact as well as my costs. So I can costs. So I can costs. So I can start to control start to control start to control some of this some of this some of this process. We also have process. We also have process. We also have tools for tools for edge management. An increasingly common edge management. An increasingly common problem in problem in problem in organizations organizations organizations we work with is that we work with is that we work with is that traffic flows through the gateway just traffic flows through the gateway just traffic flows through the gateway just fine, but many fine, but many fine, but many users users users are using AI on are using AI on are using AI on their local their local their local laptops. They laptops. They laptops. They use AI, use AI, use AI, upload upload upload documents there that they don't documents there that they don't documents there that they don't want to read, or want to read, or want to read, or summarize emails that no one summarize emails that no one else has access to. else has access to. So just last So just last So just last week we added an week we added an edge management feature that edge management feature that allows you to see your allows you to see your allows you to see your shadow AI traffic, shadow AI traffic, shadow AI traffic, protect it, and protect it, and protect it, and force it force it force it through the gateway. This gives you through the gateway. This gives you through the gateway. This gives you the ability to the ability to the ability to log, log, log, monitor, monitor, monitor, detect, and detect, and detect, and control those control those use cases that use cases that bypass the gateway. There are bypass the gateway. There are bypass the gateway. There are a number of actions that can be taken there a number of actions that can be taken there a number of actions that can be taken there , especially to , especially to , especially to ensure ensure ensure compliance with compliance with information information security requirements and for security requirements and for security requirements and for industries with strict industries with strict industries with strict regulations. If you regulations. If you regulations. If you want to know want to know want to know more about it, our booth is more about it, our booth is more about it, our booth is right there, the third in right there, the third in right there, the third in this row.
-
this row. I hope this I hope this example was something example was something example was something new compared to the new compared to the new compared to the usual slides usual slides usual slides and showed that and showed that and showed that placing placing placing management policies inside an management policies inside an management policies inside an AI agent, AI agent, AI agent, relying only on a relying only on a relying only on a markdown file, markdown file, markdown file, tools, tools, tools, context, or context, or context, or identification, is a identification, is a identification, is a wrong approach. wrong approach. And the only truly And the only truly right way right way right way to scale while to scale while to scale while maintaining maintaining maintaining management and management and management and security in security in security in the future is to the future is to the future is to move everything move everything move everything to the to the to the infrastructure layer. And infrastructure layer. And infrastructure layer. And if you want if you want if you want to learn more, there to learn more, there to learn more, there are a lot of our colleagues there, are a lot of our colleagues there, are a lot of our colleagues there, but I just want to but I just want to but I just want to thank you for your thank you for your thank you for your time and I hope time and I hope time and I hope you enjoy this you enjoy this you enjoy this event for AI engineers event for AI engineers . Thank you.
No summary available yet.
View original episode ↗