run-locally

This starts the agent at http://localhost:8000

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "run-locally" with this command: npx skills add databricks/app-templates/databricks-app-templates-run-locally

Run Agent Locally

Start the Server

uv run start-app

This starts the agent at http://localhost:8000

Server Options

Hot-reload on code changes (development)

uv run start-server --reload

Custom port

uv run start-server --port 8001

Multiple workers (production-like)

uv run start-server --workers 4

Combine options

uv run start-server --reload --port 8001

Test the API

Streaming request:

curl -X POST http://localhost:8000/invocations
-H "Content-Type: application/json"
-d '{ "input": [{ "role": "user", "content": "hi" }], "stream": true }'

Non-streaming request:

curl -X POST http://localhost:8000/invocations
-H "Content-Type: application/json"
-d '{ "input": [{ "role": "user", "content": "hi" }] }'

Run Evaluation

uv run agent-evaluate

Uses MLflow scorers (RelevanceToQuery, Safety).

Run Unit Tests

pytest [path]

Troubleshooting

Issue Solution

Port already in use Use --port 8001 or kill existing process

Authentication errors Verify .env is correct; run quickstart skill

Module not found Run uv sync to install dependencies

MLflow experiment not found Ensure MLFLOW_TRACKING_URI in .env is databricks://<profile-name>

MLflow Experiment Not Found

If you see: "The provided MLFLOW_EXPERIMENT_ID environment variable value does not exist"

Verify the experiment exists:

databricks -p <profile> experiments get-experiment <experiment_id>

Fix: Ensure .env has the correct tracking URI format:

MLFLOW_TRACKING_URI="databricks://DEFAULT" # Include profile name

The quickstart script configures this automatically. If you manually edited .env , ensure the profile name is included.

Next Steps

  • Modify your agent: see modify-agent skill

  • Deploy to Databricks: see deploy skill

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

modify-agent

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-memory

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-openai-memory

No summary provided by upstream source.

Repository SourceNeeds Review
General

deploy

No summary provided by upstream source.

Repository SourceNeeds Review