environment

Represents the AI agent's environment in which the context is being executed.

This property allows setting or retrieving the AIAgentEnvironment instance associated with the builder, enabling the integration of external environments. The environment provides mechanisms for tool execution, error reporting, and communication of termination signals.

It is nullable, as the environment may not always be defined during initialization.

See also