create xopt agent wrapper class #58
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements an agent wrapper class in bluesky-adaptive that enables the use of arbitrary Xopt (https://github.com/xopt-org/Xopt) generators in bluesky-adaptive runs.
Description
This pull request introduces a new module that wraps Xopt generators as agents compatible with the bluesky-adaptive framework. The new mixin class implements key abstract methods for decision-making, enabling integration of Xopt optimization workflows with bluesky-adaptive agents. Users are expected to implement experiment-specific details in subclasses.
Xopt generator agent integration:
XoptGeneratorBaseclass inbluesky_adaptive/agents/xopt.pyto wrap XoptGeneratorobjects and implement generic agent logic, including data ingestion and suggestion of next steps. This class fulfills relevant abstract methods from theAgentbase class, streamlining the integration of Xopt optimization strategies with bluesky-adaptive agents.Documentation and structure:
Motivation and Context
This change enables the use of Xopt-defined algorithms (v2.x.x) for bluesky adaptive runs.
Summary of Changes for Release Notes
Implements an agent wrapper class in bluesky-adaptive that enables the use of arbitrary Xopt (https://github.com/xopt-org/Xopt) generators in bluesky-adaptive runs.
Fixed
Added
Added
/bluesky_adaptive/agents/xopt.pyChanged
Removed
How Has This Been Tested?
So far this has not been tested, pending discussion with maintainers.