-
Notifications
You must be signed in to change notification settings - Fork 136
Add participant identity, name, and metadata to root useAgent() return value #1246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 9f362b7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
davidzhao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg, just would suggest updating the comment
| failureReasons: null; | ||
|
|
||
| /** The client's assigned identity, coming from the JWT token. */ | ||
| identity: Participant['identity']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it the agent's identity? or the end-user's identity? the comment seems to be indicating the latter. (i.e. client).
assuming it's the agent's, i'd recommend changing the comment to be clear.
identityfor interfacing with with existing lower level apis (it looked like his use case was RPC calls)agentParticipant'sidentityon the rootuseAgent()return valueuseParticipantInfo()was returning name + metadata alongside identity, so it seems like all three are probably equally important (especially since all three are exposed inTokenSourceFetchOptions)