BEARER TOKEN
WEATHER DATA
Bearer Token weather data: your agent resolves locations and reads forecasts in each user's AccuWeather account.
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
const sk = new ScalekitClient();
const tools = await sk.tools.listScopedTools("user_123", { filter: { connectionNames: ["accuweather"], toolNames: ["accuweather_autocomplete_cities", "accuweather_autocomplete_locations", "accuweather_get_current_conditions"] }, pageSize: 100 });
const agent = createReactAgent({ llm, tools });import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient();
const tools = await sk.tools.listScopedTools("user_123", { filter: { connectionNames: ["accuweather"], toolNames: ["accuweather_autocomplete_cities", "accuweather_autocomplete_locations", "accuweather_get_current_conditions"] }, pageSize: 100 });
const client = new OpenAI();import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient();
const tools = await sk.tools.listScopedTools("user_123", { filter: { connectionNames: ["accuweather"], toolNames: ["accuweather_autocomplete_cities", "accuweather_autocomplete_locations", "accuweather_get_current_conditions"] }, pageSize: 100 });import { ScalekitClient } from "@scalekit-sdk/node";
const sk = new ScalekitClient();
const tools = await sk.tools.listScopedTools("user_123", { filter: { connectionNames: ["accuweather"], toolNames: ["accuweather_autocomplete_cities", "accuweather_autocomplete_locations", "accuweather_get_current_conditions"] }, pageSize: 100 });// shared key
audit → bot_acct
// scalekit
audit → user_abc ✓