username
and password
going into the functions, but we don’t want to have that information stored in our messages, sent to the LLM, or tracked through telemetry.
Soon we’ll see how dependency injection can help.
BaseContext
class for account credentials. This will act as the base structure for dependency injection with information in these not being exposed to the LLM.
ThirdPartyCredential
and are injecting the respective credentials, e.g. Depends(weather_account)
.
The credentials
parameters will not be visible to the LLM, it’ll be completely unaware of it.
get_weather
and it only has location
, credentials
is not part of the LLM request or response.
location
parameter, with the credentials
being injected automatically. Our function is printing out the username to prove that credentials are being passed in.