News for hackers. Stuff that matters.
Re:Building an AI agent inside a 7-year-old Rails monolith by pell on Friday December 26, 2025 @04:07AM (#46390474)
Was there any concern about giving the LLM access to this return data? Reading your article I wondered if there could be an approach that limits the LLM to running the function calls without ever seeing the output itself fully, e.g., only seeing the start of a JSON string with a status like “success” or “not found”. But I guess it would be complicated to have a continuous conversation that way.
Re:Building an AI agent inside a 7-year-old Rails monolith by aidos on Friday December 26, 2025 @05:56AM (#46391008)
> No model should ever know Jon Snow’s phone number from a SaaS service, but this approach allows this sort of retrieval.

This reads to me like they think that the response from the tool doesn’t go back to the LLM.

I’ve not worked with tools but my understanding is that they’re a way to allow the LLM to request additional data from the client. Once the client executes the requested function, that response data then goes to the LLM to be further processed into a final response.

Re:Building an AI agent inside a 7-year-old Rails monolith by timrogers on Friday December 26, 2025 @07:54AM (#46391570)
That would be the normal pattern. But you could certainly stop after the LLM picks the tool and provides the arguments, and not present the result back to the model.
Re:Building an AI agent inside a 7-year-old Rails monolith by simonw on Friday December 26, 2025 @11:37AM (#46393626)
I was confused by that too. I think I've figured it out.

They're saying that a public LLM won't know the email address of Jon Snow, but they still want to be able to answer questions about their private SaaS data which DOES know that.

Then they describe building a typical tool-based LLM system where the model can run searches against private data and round-trip the results through the model to generate chat responses.

They're relying on the AI labs to keep their promises about not training in data from paying API customers. I think that's a safe bet, personally.

Re:Building an AI agent inside a 7-year-old Rails monolith by aidos on Saturday December 27, 2025 @05:41AM (#46400782)
Makes sense. I agree that it’s probably a safe bet too. Not sure how customers would feel about it though.

It’s also funny how these tools push people into patterns by accident. You’d never consider sending a customer’s details to a 3rd party for them just to send them back, right? And there’s nothing stopping someone from just working more directly with the tool call response themselves but the libraries are setup so you lean into the LLM more than is required (I know you more than anyone appreciate that the value they add here is parsing the fuzzy instruction into a tool call - not the call itself).

Re:Building an AI agent inside a 7-year-old Rails monolith by simonw on Saturday December 27, 2025 @08:16AM (#46401638)
> You’d never consider sending a customer’s details to a 3rd party for them just to send them back, right?

I use hosted database providers and APIs like S3 all the time.

Sending customer details to a third party is fine if you trust them and have a financial relationship with them backed by legal agreements.