-
Notifications
You must be signed in to change notification settings - Fork 107
Migrate Vision and AI-room-renovate for new motia version #140
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
base: main
Are you sure you want to change the base?
Changes from all commits
e2fe084
54b6d7a
f583e4a
d5ea056
6af69bb
8994570
40f61b7
a0e8507
0335aa3
0020915
33bfa8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| modules: | ||
| - class: modules::stream::StreamModule | ||
| config: | ||
| port: ${STREAMS_PORT:3112} | ||
| host: 127.0.0.1 | ||
| adapter: | ||
| class: modules::stream::adapters::KvStore | ||
| config: | ||
| store_method: file_based | ||
| file_path: ./data/streams_store | ||
|
|
||
| - class: modules::state::StateModule | ||
| config: | ||
| adapter: | ||
| class: modules::state::adapters::KvStore | ||
| config: | ||
| store_method: file_based | ||
| file_path: ./data/state_store.db | ||
|
|
||
| - class: modules::api::RestApiModule | ||
| config: | ||
| port: 3111 | ||
| host: 127.0.0.1 | ||
| default_timeout: 30000 | ||
| concurrency_request_limit: 1024 | ||
| cors: | ||
| allowed_origins: | ||
| - '*' | ||
| allowed_methods: | ||
| - GET | ||
| - POST | ||
| - PUT | ||
| - DELETE | ||
| - OPTIONS | ||
|
|
||
| - class: modules::observability::OtelModule | ||
| config: | ||
| enabled: ${OTEL_ENABLED:true} | ||
| service_name: ${OTEL_SERVICE_NAME:iii-engine} | ||
| service_version: ${SERVICE_VERSION:0.2.0} | ||
| service_namespace: ${SERVICE_NAMESPACE:production} | ||
| exporter: ${OTEL_EXPORTER_TYPE:memory} | ||
| endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} | ||
| sampling_ratio: 1.0 | ||
| memory_max_spans: ${OTEL_MEMORY_MAX_SPANS:10000} | ||
| metrics_enabled: true | ||
| metrics_exporter: ${OTEL_METRICS_EXPORTER:memory} | ||
| metrics_retention_seconds: 3600 | ||
| metrics_max_count: 10000 | ||
| logs_enabled: ${OTEL_LOGS_ENABLED:true} | ||
| logs_exporter: ${OTEL_LOGS_EXPORTER:memory} | ||
| logs_max_count: ${OTEL_LOGS_MAX_COUNT:1000} | ||
| logs_retention_seconds: ${OTEL_LOGS_RETENTION_SECONDS:3600} | ||
| logs_sampling_ratio: ${OTEL_LOGS_SAMPLING_RATIO:1.0} | ||
|
|
||
| - class: modules::queue::QueueModule | ||
| config: | ||
| adapter: | ||
| class: modules::queue::BuiltinQueueAdapter | ||
|
|
||
| - class: modules::pubsub::PubSubModule | ||
| config: | ||
| adapter: | ||
| class: modules::pubsub::LocalAdapter | ||
|
|
||
| - class: modules::cron::CronModule | ||
| config: | ||
| adapter: | ||
| class: modules::cron::KvCronAdapter | ||
|
|
||
| - class: modules::shell::ExecModule | ||
| config: | ||
| watch: | ||
| - steps/**/*.ts | ||
|
|
||
| exec: | ||
| - npx motia dev | ||
| - bun run --enable-source-maps dist/index-dev.js | ||
|
Comment on lines
+71
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, locate and examine the config.yaml file
find . -name "config.yaml" -path "*/ai-room-renovate/*" | head -5Repository: MotiaDev/motia-examples Length of output: 125 🏁 Script executed: # Check the repository structure to understand the project better
ls -la examples/advanced-use-cases/ai-room-renovate/ 2>/dev/null || echo "Directory not found"Repository: MotiaDev/motia-examples Length of output: 1051 🏁 Script executed: # Search for Motia documentation or ExecModule references in the repo
find . -type f \( -name "*.md" -o -name "*.ts" -o -name "*.js" \) -exec grep -l "ExecModule\|motia" {} \; | head -20Repository: MotiaDev/motia-examples Length of output: 31238 🌐 Web query:
💡 Result: In Motia’s If you need “parallel” behavior, you generally have to do it yourself inside a single Sources 🏁 Script executed: # Read the config.yaml file to see the actual content at lines 71-78
cat -n examples/advanced-use-cases/ai-room-renovate/config.yaml | sed -n '60,85p'Repository: MotiaDev/motia-examples Length of output: 754 🏁 Script executed: # Read the package.json to understand what these scripts do
cat examples/advanced-use-cases/ai-room-renovate/package.jsonRepository: MotiaDev/motia-examples Length of output: 705 🏁 Script executed: # Check if there's any documentation in the repo about ExecModule or the intended behavior
cat examples/advanced-use-cases/ai-room-renovate/README.md | head -100Repository: MotiaDev/motia-examples Length of output: 3430 The two Motia's ExecModule runs commands in the Looking at the rest of the config, there's already a separate
🤖 Prompt for AI Agents |
||
|
|
||
| - class: modules::shell::ExecModule | ||
| config: | ||
| watch: | ||
| - steps/**/*.py | ||
|
|
||
| exec: | ||
| - uv run motia run --dir steps | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,30 +3,20 @@ | |||||
| "version": "1.0.0", | ||||||
| "description": "AI Home Renovation Planner - A multi-agent Motia workflow that analyzes photos, creates personalized renovation plans, and generates comprehensive project roadmaps", | ||||||
| "scripts": { | ||||||
| "postinstall": "motia install", | ||||||
| "dev": "motia dev", | ||||||
| "generate-types": "motia generate-types", | ||||||
| "build": "motia build", | ||||||
| "clean": "rm -rf dist node_modules python_modules .motia .mermaid" | ||||||
| "start": "bun run --enable-source-maps dist/index-dev.js", | ||||||
| "dev": "iii", | ||||||
| "dev:py": "uv run motia dev --dir steps --watch", | ||||||
| "build": "npx motia dev" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Running ✏️ Suggested fix- "build": "npx motia dev"
+ "dev:ts": "npx motia dev"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| }, | ||||||
| "keywords": [ | ||||||
| "motia" | ||||||
| ], | ||||||
| "dependencies": { | ||||||
| "@motiadev/core": "^0.9.0-beta.145", | ||||||
| "@motiadev/plugin-endpoint": "^0.9.0-beta.145", | ||||||
| "@motiadev/plugin-logs": "^0.9.0-beta.145", | ||||||
| "@motiadev/plugin-observability": "^0.9.0-beta.145", | ||||||
| "@motiadev/plugin-states": "^0.9.0-beta.145", | ||||||
| "motia": "^0.9.0-beta.145", | ||||||
| "motia": "1.0.0-rc.14", | ||||||
| "zod": "^3.24.4" | ||||||
| }, | ||||||
| "devDependencies": { | ||||||
| "@jest/globals": "^29.7.0", | ||||||
| "@types/jest": "^29.5.14", | ||||||
| "@types/react": "^19.1.1", | ||||||
| "jest": "^29.7.0", | ||||||
| "ts-jest": "^29.4.5", | ||||||
| "ts-node": "^10.9.2", | ||||||
| "typescript": "^5.7.3" | ||||||
| } | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [project] | ||
| name = "ai-room-renovate" | ||
| version = "0.1.0" | ||
| description = "AI Home Renovation Planner" | ||
| requires-python = ">=3.10" | ||
| dependencies = [ | ||
| "motia[otel]==1.0.0-rc.22", | ||
| "iii-sdk==0.2.0", | ||
| "pydantic>=2.0", | ||
| "google-adk>=0.1.0", | ||
| "google-genai>=0.2.0", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| dev = [ | ||
| "pytest>=8.0.0", | ||
| ] | ||
|
|
||
| [tool.uv] | ||
| package = false |
This file was deleted.
This file was deleted.
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.
Default
SERVICE_NAMESPACEof"production"is misleading for a dev/example project.If a developer runs this example with a real OTLP backend without setting
SERVICE_NAMESPACE, all traces/metrics will be tagged as belonging to theproductionnamespace.✏️ Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents