isEnvironmentDefined

Indicates whether the environment for the agent context is defined.

This property evaluates to true if the environment property in the builder is not null, meaning that a specific environment has been explicitly set for the agent context. If false, it implies that no environment has been defined and a default or mock environment may be used in its place.