Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/yu-iskw/llmops-demo-ts/langsmith_evaluationgit clone --depth 1 https://github.com/yu-iskw/llmops-demo-tsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/yu-iskw/llmops-demo-ts/langsmith_evaluation)<a href="https://agentmods.dev/rules/yu-iskw/llmops-demo-ts/langsmith_evaluation"><img src="https://agentmods.dev/badge/rules/yu-iskw/llmops-demo-ts/langsmith_evaluation.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01786 |
| Opus 5 | $0.00000 | $0.00893 |
| Sonnet 5 | $0.00000 | $0.00357 |
| Haiku 4.5 | $0.00000 | $0.00179 |
Grade A, and why
langsmith_evaluation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LangSmith Evaluation with @google/genai
This rule provides a comprehensive guide for setting up and running evaluations with LangSmith, specifically tailored for integrations with @google/genai (Gemini on Vertex AI).
1. Setup Environment Variables
Before using @google/genai, ensure the following environment variables are set in your shell:
GOOGLE_API_KEY(for Google API Key authentication)- OR
GOOGLE_GENAI_USE_VERTEXAI=true(to enable Vertex AI)GOOGLE_CLOUD_PROJECT(your Google Cloud project ID)GOOGLE_CLOUD_LOCATION(your Google Cloud location, e.g.,us-central1)
These variables are automatically picked up by New GoogleGenAI({}).
2. Install Dependencies
You will need langsmith and @google/genai. Note: While openevals examples often use openai, you can define custom evaluators or potentially adapt openevals for @google/genai if it supports custom LLM integrations.
npm install langsmith @google/genai
# If you plan to use openevals for prebuilt evaluators, install it as well.
# npm install openevals
3. Create a LangSmith API Key
Create an API key in LangSmith settings and set LANGSMITH_API_KEY environment variable.
export LANGSMITH_TRACING=true
export LANGSMITH_API_KEY="<your-langsmith-api-key>"
4. Create a Dataset
Datasets define your test inputs and expected outputs.
import { Client } from "langsmith";
const client = new Client();
async function createAndAddExamples() {
const dataset = await client.createDataset("My GenAI Dataset", {
description: "Dataset for evaluating @google/genai models.",
});
const examples = [
{
inputs: { question: "What is the capital of France?" },
outputs: { answer: "The capital of France is Paris." },
dataset_id: dataset.id,
},
{
inputs: { question: "Who painted the Mona Lisa?" },
outputs: { answer: "Leonardo da Vinci painted the Mona Lisa." },
dataset_id: dataset.id,
},
];
await client.createExamples(examples);
console.log("Dataset and examples created successfully.");
}
// Call the function to create your dataset
// createAndAddExamples();
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 201 lines · 0 tokens per session scan A 136c9d9cb632
langsmith_evaluation is a cursor rule published in the GitHub repository yu-iskw/llmops-demo-ts (6 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,786 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other cursor rules, from other repositories
gateway
The gateway core module is the central orchestrator that handles AI provider requests, manages caching, queuing, and provides unified interfaces for chat completion, embeddings, and tool responses.
providers
The core providers module contains concrete implementations of AI provider integrations (Anthropic, OpenAI, Google, etc.) that implement the provider interfaces defined in the provider package.
design
All tasks related to updating frontend components, CSS, and general styling.
general
No need to run the app. It's already up. i.e. no bun dev or bun run build.
instruct-ut
基于用户的目标,生产 todo list 并按顺序执行.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.