Add agent-openai-basic template - #262
Open
elainemwang wants to merge 12 commits into
Open
Conversation
elainemwang
force-pushed
the
add-agent-openai-local-template
branch
from
August 21, 2026 20:41
0f34179 to
7ee174b
Compare
elainemwang
commented
Aug 21, 2026
elainemwang
force-pushed
the
add-agent-openai-local-template
branch
12 times, most recently
from
August 24, 2026 17:39
77c0c13 to
36fe0ae
Compare
elainemwang
marked this pull request as ready for review
August 24, 2026 18:41
elainemwang
force-pushed
the
add-agent-openai-local-template
branch
9 times, most recently
from
August 24, 2026 22:46
a14e86e to
4553e4e
Compare
A lean OpenAI Agents SDK agent backend for Databricks Apps: runs locally with no database and no setup beyond a Databricks auth profile. Lakebase durability and MLflow tracing are opt-in. API-first (no bundled UI); exposes the OpenAI Responses API.
elainemwang
force-pushed
the
add-agent-openai-local-template
branch
from
August 24, 2026 22:47
4553e4e to
bbf59ff
Compare
Co-authored-by: Isaac <no-reply@databricks.com>
elainemwang
commented
Aug 25, 2026
elainemwang
commented
Aug 25, 2026
elainemwang
commented
Aug 25, 2026
elainemwang
commented
Aug 25, 2026
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
… at call time Co-authored-by: Isaac <no-reply@databricks.com>
Removes the import-time env gate; create_agent composes [*all_tools(), *memory_tools()]. memory_tools() returns [] unless AGENT_MEMORY_STORE is set, so the model is only offered memory tools when configured. Swap the import for a databricks-openai helper when it ships. Co-authored-by: Isaac <no-reply@databricks.com>
tracing._enabled is now set at startup instead of import, so the agent import chain is side-effect-free. load_dotenv can move below the imports, removing the ruff E402 suppression. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
build_mcp_servers() (the user knob) stays in agent/mcps.py; the connect()/MCPServerManager plumbing moves to mason/ with the other SDK-migration candidates. Also drops a dead json import and applies safe ruff fixes to the moved files. Co-authored-by: Isaac <no-reply@databricks.com>
elainemwang
commented
Aug 25, 2026
| # (local dev, no Lakebase) it's None, so the server serves in-request over the local SQLite store. | ||
| agent_server = LongRunningAgentServer( | ||
| "ResponsesAgent", | ||
| db_autoscaling_endpoint=os.getenv("LAKEBASE_AUTOSCALING_ENDPOINT"), |
Author
There was a problem hiding this comment.
will update post local db backed LongRunningAgentServer to remove the currently required db_autoscaling_endpoint param. cc @shivam5
Author
There was a problem hiding this comment.
will also use resume_strategy=ResumeStrategy.AGENT_SESSION after databricks/databricks-ai-bridge#467
Co-authored-by: Isaac <no-reply@databricks.com>
Enable tracing when a destination (MLFLOW_TRACKING_URI or MLFLOW_TRACING_DESTINATION) and an experiment (MLFLOW_EXPERIMENT_ID or MLFLOW_EXPERIMENT_NAME) are both present, in whichever form the user or Apps resource binding provides. MLflow resolves the specific value. Co-authored-by: Isaac <no-reply@databricks.com>
jennsun
reviewed
Aug 25, 2026
|
|
||
| ``inbound``: Responses request -> agent-SDK run input. ``outbound``: agent-SDK stream events -> | ||
| Responses wire events. SDK-specific — a different harness would replace this layer. | ||
| """ |
Contributor
There was a problem hiding this comment.
is there supposed to be content here?
jennsun
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds agent-openai-basic, a lean OpenAI Agents SDK agent backend for Databricks Apps.
uv run start-server). Sessions use local SQLite.POST /responses,POST /invocations).@function_toolfile inagent/tools/(auto-collected); add MCP servers inagent/mcps.py.trace example: https://eng-ml-inference.staging.cloud.databricks.com/ml/experiments/4023724100406459/traces?o=1653573648247579&selectedEvaluationId=tr-8b96a9e6b738b5605074bbae43e7ff6d