Skip to main content

AI SDKs

Here are the configuration options for private context attributes in AI SDKs:

.NET AI

In the .NET AI SDK you can mark attributes as private when building the context object by calling Private() after setting the attribute on the context builder.For example:
When the SDK sends this context back to LaunchDarkly, it removes the email attribute.

Go AI

In the Go AI SDK you can mark attributes as private when building the context object by calling Private() after setting the attribute on the context builder.For example:
When the SDK sends this context back to LaunchDarkly, it removes the email attribute.

Node.js (server-side) AI

In the Node.js (server-side) AI SDK you can define a set of privateAttributes on the context object.Here’s how:
When the SDK sends this context back to LaunchDarkly, it removes the email attribute.

Python AI

In the Python AI SDK you can mark attributes as private when building the context object by calling the private builder method.Here’s how:
When the SDK sends this context back to LaunchDarkly, it removes the email attribute.

Ruby AI

In the Ruby AI SDK you can mark attributes as private when creating the context.Here’s how:
When the SDK sends this context back to LaunchDarkly, it removes the email attribute.