Notes

Technical notes in English

Selected notes from en-gineering labs, translated or written directly in English.

日本語の記事一覧へ

Published notes

August 23, 2026
AWSLLM Guardrails

How to Apply Amazon Bedrock Guardrails to Only Part of an Input

This note explains how to limit the scope of Amazon Bedrock Guardrails to part of an input text by using InvokeModel input tags and Converse guardContent blocks.

Amazon BedrockAmazon Bedrock GuardrailsLLM
Read more
August 11, 2026
MastraLLMAgent

Using Mastra Agent Approval to Require Human Confirmation Before Tool Execution

This note shows how to use Mastra Agent Approval from a Hono API, letting read-only tools run automatically while requiring approval for side-effect tools such as sending email.

MastraLLMAgent ApprovalHuman in the Loop
Read more
August 1, 2026
MastraAWSLLM Guardrails

Using Amazon Bedrock and Bedrock Guardrails with Mastra

This note explains how to call Amazon Bedrock models and Bedrock Guardrails from Mastra.

MastraAmazon BedrockLLMAmazon Bedrock Guardrails
Read more
July 26, 2026
promptfoo

Fixing a Promptfoo result collision bug with duplicate provider ids

I fixed a Promptfoo bug where evaluation results collided and were displayed incorrectly when multiple providers used the same provider id.

promptfooLLMEvaluation
Read more