
Event Format
Processing Dataset Runs
The webhook handler processes dataset runs by executing the prompt for each item in the dataset:Streaming Response
Dataset runs now return streaming responses for real-time processing updates. Each chunk in the stream contains:Telemetry
Each dataset item includes comprehensive telemetry information:Error Handling
Handle errors appropriately in your webhook:Best Practices
-
Streaming
- Always return streaming responses for dataset runs
- Use proper headers:
"AgentMark-Streaming": "true"
- Handle stream errors appropriately
-
Telemetry
- Include all required metadata in
experimental_telemetry
- Use unique
traceId
andrunId
for each execution - Track dataset progress and results
- Include all required metadata in
-
Error Handling
- Validate prompt configuration before processing
- Handle individual item failures gracefully
- Return appropriate HTTP status codes
-
Performance
- Process dataset items sequentially to avoid overwhelming the model
- Use appropriate timeouts for long-running datasets
- Monitor memory usage for large datasets
Next Steps
Have Questions?
We’re here to help! Choose the best way to reach us:
- Join our Discord community for quick answers and discussions
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions