Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

feat: add ElevenLabs JavaScript SDK example for code snippets documentation

Summary

Adds an example JavaScript file demonstrating the ElevenLabs Agents SDK (@elevenlabs/client) for use in documentation. This example showcases the Conversation.startSession() API with various callbacks (onConnect, onDisconnect, onMessage, onError, onStatusChange, onModeChange) that would display nicely in IDE screenshots with JSDoc documentation visible.

This is related to GitHub issue #6138 which requests improving the "Snippets in the SDK" documentation section with IDE screenshots.

Review & Testing Checklist for Human

  • Verify the example code accurately reflects the current ElevenLabs JavaScript SDK API (based on https://elevenlabs.io/docs/agents-platform/libraries/java-script)
  • Confirm examples/sdks/elevenlabs/ is the appropriate location for this file
  • Check if this example file is sufficient for the intended use case (taking IDE screenshots showing JSDoc documentation)

Notes

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant