Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
system.safety_validate_harmful_content.genai.mts602 B
system({ title: "Uses the content safety provider to validate the LLM output for harmful content", }) export default function (ctx: ChatGenerationContext) { const { defOutputProcessor } = ctx defOutputProcessor(async (res) => { const contentSafety = await host.contentSafety() const { harmfulContentDetected } = (await contentSafety?.detectHarmfulContent?.(res.text)) || {} if (harmfulContentDetected) { return { files: {}, text: "response erased: harmful content detected", } } }) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server