MCPcopy
hub / github.com/agent-infra/sandbox / constructor

Method constructor

sdk/js/src/Client.ts:56–69  ·  view source on GitHub ↗
(_options: SandboxClient.Options)

Source from the content-addressed store, hash-verified

54 protected _auth: Auth | undefined;
55
56 constructor(_options: SandboxClient.Options) {
57 this._options = {
58 ..._options,
59 logging: core.logging.createLogger(_options?.logging),
60 headers: mergeHeaders(
61 {
62 "X-Fern-Language": "JavaScript",
63 "X-Fern-Runtime": core.RUNTIME.type,
64 "X-Fern-Runtime-Version": core.RUNTIME.version,
65 },
66 _options?.headers,
67 ),
68 };
69 }
70
71 public get sandbox(): SandboxService {
72 return (this._sandbox ??= new SandboxService(this._options));

Callers

nothing calls this directly

Calls 1

mergeHeadersFunction · 0.90

Tested by

no test coverage detected