← 输入框|github.com|刷新
Skip to content

[FSSDK-11148] update: Implement CMAB Client - #453

Merged
Farhan Anjum (FarhanAnjum-opti) merged 11 commits into
masterfrom
farhan-anjum/FSSDK-11148-implement-CMAB-client
May 23, 2025
Merged

Farhan Anjum (FarhanAnjum-opti) merged 11 commits into
masterfrom
farhan-anjum/FSSDK-11148-implement-CMAB-client

Conversation

@FarhanAnjum-opti

@FarhanAnjum-opti Farhan Anjum (FarhanAnjum-opti) commented May 6, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Implemented DefaultCmabClient, a client for fetching CMAB (Contextual Multi-Armed Bandit) decisions.

  • Supports configurable retries with exponential backoff through CmabRetryConfig.

  • Handles error scenarios such as network failures, non-2xx responses, invalid JSON, and malformed responses.

  • Logs relevant error and retry information using the Optimizely logger.

Test plan

  • Created unit tests for checking various scenarios.

Issues

Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread tests/test_cmab_client.py Resolved

@Mat001 Matjaz Pirnovar (Mat001) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Just one comment about string format

Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread optimizely/cmab/cmab_client.py Resolved
Comment thread tests/test_cmab_client.py Resolved
Comment thread tests/test_cmab_client.py Resolved
Comment thread tests/test_cmab_client.py Resolved
@FarhanAnjum-opti
Farhan Anjum (FarhanAnjum-opti) deleted the farhan-anjum/FSSDK-11148-implement-CMAB-client branch May 23, 2025 02:35
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.

3 participants