-
Notifications
You must be signed in to change notification settings - Fork 1
ALGO-62 Integrated mlops agent #16
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
Conversation
@@ -91,8 +94,18 @@ def write_to_pipe(self, payload, pprint=print): | |||
def process_local(self, local_payload, pprint): | |||
result = self.apply(local_payload) | |||
self.write_to_pipe(result, pprint=pprint) | |||
|
|||
def mlops_init(self): | |||
mlops_token = os.environ.get("DATAROBOT_MLOPS_API_TOKEN", None) |
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 there a reason you aren't using the same env var as the monitoring agent itself? This might make things simpler, unless you specifically don't want them to be the same. That would be just MLOPS_API_TOKEN
.
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.
Yeah, in the event that there are other MLOPS API tokens from different orgs; wanting to be very clear about what this token is used for so it's not confused with any algorithmia token
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.
👍🏼
This PR adds the mlops agent client-side interface logic to the ADK. Exposing a
mlops
variable to the.init()
function.requires the
environment_validator
in langpacks to validate.algorithmiaio/langpacks#228 check this out to test
to test:
./tools/environment_validator.py -g python3 -s python39 -d java11 -d mlops-agent -t dependency -n python39-mlops
will need to add an environment variable to the template file to validate.