When to use this
Use this guide when you want to connect a TypeScript service and record one agent run with user input, context, a decision, and an outcome.Setup
Install the SDK.endpoint, the SDK sends events to https://api.lynxops.co.
Example
Wrap one agent execution inrun(). Events recorded inside the callback are attached to the same run and session.
What you can see in Lynx
After the SDK sends events, Lynx can show:- The session timeline
- The user input that started the run
- Context loaded by the agent
- Agent decisions and reasons
- The final technical and business outcome
Shut down safely
For long-running servers, callshutdown() in your shutdown hook. For serverless handlers, call it before the handler exits if you want a best-effort final flush.
Delivery is background-only by default. Failed event delivery does not throw
from your agent workflow.