//#region src/tenant.ts
var TenantHandle = class {
	_ai;
	_customerOrgId;
	_groups;
	_env;
	constructor(ai, opts) {
		this._ai = ai;
		this._customerOrgId = opts.customerOrgId;
		this._groups = opts.groups ?? null;
		this._env = opts.env ?? null;
	}
	agent(agentId, opts = {}) {
		if (!("customerOrgId" in opts)) opts.customerOrgId = this._customerOrgId;
		if (this._groups != null && !("groups" in opts)) opts.groups = this._groups;
		if (this._env != null && !("env" in opts)) opts.env = this._env;
		return this._ai.agent(agentId, opts);
	}
};

//#endregion
export { TenantHandle };
//# sourceMappingURL=tenant.js.map