Loading...
Loading...
Compare original and translation side by side
undefinedundefined
**Via clawhub:**
```bash
npx clawhub@latest install context
**通过clawhub安装:**
```bash
npx clawhub@latest install contextundefinedundefinedcurl -s -X POST -H "Content-Type: application/json" \
-d '{"email": "you@example.com"}' \
https://api.getcamino.ai/trial/start{"api_key": "camino-xxx...", "calls_remaining": 25, ...}~/.claude/settings.json{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}curl -s -X POST -H "Content-Type: application/json" \
-d '{"email": "you@example.com"}' \
https://api.getcamino.ai/trial/start{"api_key": "camino-xxx...", "calls_remaining": 25, ...}~/.claude/settings.json{
"env": {
"CAMINO_API_KEY": "your-api-key-here"
}
}undefinedundefinedundefinedundefinedcurl -X POST -H "X-API-Key: $CAMINO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location": {"lat": 40.7589, "lon": -73.9851}, "radius": 500, "context": "lunch options"}' \
"https://api.getcamino.ai/context"curl -X POST -H "X-API-Key: $CAMINO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location": {"lat": 40.7589, "lon": -73.9851}, "radius": 500, "context": "lunch options"}' \
"https://api.getcamino.ai/context"| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| location | object | Yes | - | Coordinate with lat/lon |
| radius | int | No | 500 | Search radius in meters |
| context | string | No | - | Context for tailored insights (e.g., "outdoor dining") |
| time | string | No | - | Temporal query format |
| include_weather | bool | No | false | Include weather data |
| weather_forecast | string | No | "daily" | "daily" or "hourly" |
| 字段 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| location | 对象 | 是 | - | 包含lat(纬度)和lon(经度)的坐标 |
| radius | 整数 | 否 | 500 | 搜索半径(单位:米) |
| context | 字符串 | 否 | - | 用于定制化洞察的上下文(例如:"outdoor dining") |
| time | 字符串 | 否 | - | 时间查询格式 |
| include_weather | 布尔值 | 否 | false | 是否包含天气数据 |
| weather_forecast | 字符串 | 否 | "daily" | 可选值为"daily"(每日)或"hourly"(每小时) |
{
"area_description": "Busy commercial district in Midtown Manhattan...",
"relevant_places": {
"restaurants": [...],
"cafes": [...],
"transit": [...]
},
"location": {"lat": 40.7589, "lon": -73.9851},
"search_radius": 500,
"total_places_found": 47,
"context_insights": "For lunch, you have many options including..."
}{
"area_description": "Busy commercial district in Midtown Manhattan...",
"relevant_places": {
"restaurants": [...],
"cafes": [...],
"transit": [...]
},
"location": {"lat": 40.7589, "lon": -73.9851},
"search_radius": 500,
"total_places_found": 47,
"context_insights": "For lunch, you have many options including..."
}./scripts/context.sh '{
"location": {"lat": 48.8584, "lon": 2.2945},
"radius": 1000,
"context": "tourist visiting Paris"
}'./scripts/context.sh '{
"location": {"lat": 48.8584, "lon": 2.2945},
"radius": 1000,
"context": "tourist visiting Paris"
}'./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "business meeting",
"include_weather": true
}'./scripts/context.sh '{
"location": {"lat": 40.7589, "lon": -73.9851},
"radius": 500,
"context": "business meeting",
"include_weather": true
}'./scripts/context.sh '{
"location": {"lat": 37.7749, "lon": -122.4194},
"context": "outdoor activities",
"include_weather": true,
"weather_forecast": "hourly"
}'./scripts/context.sh '{
"location": {"lat": 37.7749, "lon": -122.4194},
"context": "outdoor activities",
"include_weather": true,
"weather_forecast": "hourly"
}'