createRuntimeAgentHarnessPorts<Adapt an actual Agent through its runtime-owned symbol seam. The function never reflects over protected fields and never adds a string-named method to the Agent instance. All calls remain in-process. Type ParametersState,E>(agent,options?):AgentHarnessPorts<State>
Parameters
Returns
AgentHarnessPorts<State>
On the Agent Runtime
getAgentHarnessHost(agent), from @telnyx/edge-runtime/internal, hands the harness the protected members of the Agent class. The harness therefore works on the same stores as the class’s own methods.
RuntimeAgentHarnessPortsOptions
Trusted construction options for selecting environment capabilities. Type Parameters
Properties
environmentKeys?
Only these bindings cross into the portable ports object.optionalenvironmentKeys?: readonly (keyofE&string)[]