Skip to content

feat: add user resource and documentation for retrieving authenticated user info#108

Open
kryachkow wants to merge 1 commit into
epam:developmentfrom
kryachkow:feat/93-user-info
Open

feat: add user resource and documentation for retrieving authenticated user info#108
kryachkow wants to merge 1 commit into
epam:developmentfrom
kryachkow:feat/93-user-info

Conversation

@kryachkow

Copy link
Copy Markdown

Applicable issues

#93

Description of changes

Summary

Add support for the DIAL /v1/user/info endpoint in the Python SDK by introducing a new user resource with sync/async info() methods. This lets services (for example StatGPT backend) fetch authenticated user info via aidial-client instead of custom direct HTTP calls.

Changes

  • Added User and AsyncUser resources with info() -> GET /v1/user/info
  • Wired user into Dial and AsyncDial
  • Exported the new resources in aidial_client/resources/__init__.py
  • Added tests for sync/async success, request method+URL, and HTTP error handling
  • Updated README.md with usage examples:
    • client.user.info()
    • await async_client.user.info()

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kryachkow kryachkow requested a review from adubovik as a code owner June 10, 2026 11:26
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