Skip to content

agent-openai-agents-sdk: improve startup script#114

Open
fanzeyi wants to merge 2 commits intodatabricks:mainfrom
fanzeyi:push-zknuvokllwxs
Open

agent-openai-agents-sdk: improve startup script#114
fanzeyi wants to merge 2 commits intodatabricks:mainfrom
fanzeyi:push-zknuvokllwxs

Conversation

@fanzeyi
Copy link
Member

@fanzeyi fanzeyi commented Feb 6, 2026

No description provided.

@fanzeyi fanzeyi requested a review from bbqiu February 6, 2026 03:45
Co-Authored-By: Bryan Qiu <bryan.qiu@databricks.com>
Comment on lines +6 to +16
class MlflowAgentServer(AgentServer):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._initialized = False

async def _handle_invocations_request(self, *args, **kwargs):
if not self._initialized:
self._initialized = True
from mlflow.genai.agent_server import setup_mlflow_git_based_version_tracking
setup_mlflow_git_based_version_tracking()
return await super()._handle_invocations_request(*args, **kwargs)
Copy link
Member Author

@fanzeyi fanzeyi Feb 6, 2026

Choose a reason for hiding this comment

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

in a longer term we need to move this into mlflow's AgentServer.

we can add a parameter in the initializer enable_git_tracking, and in _handle_invocations_request handler we have this logic to check if this flag is set to true, and call this when that flag is true.

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