Skip to main content
createRuntimeAgentHarnessPorts<State, E>(agent, options?): AgentHarnessPorts<State>
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 Parameters 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?
optional environmentKeys?: readonly (keyof E & string)[]
Only these bindings cross into the portable ports object.