Back to prompt library
Implement Claude Agents SDK MHS Controller with Langfuse
Linked challenge: Claude Agents SDK & Langfuse MHS Device Control Auditor
Prompt source
implementation9 lines3 sectionsNo variables0 checklist items
import anthropic
from langfuse import Langfuse
langfuse = Langfuse()
client = anthropic.Anthropic()
# Define MHS device tool schema and wrap tool execution with Langfuse observe decorator
@langfuse.observe()
def execute_mhs_command(device_id: str, action: str, params: dict):
# Implement safety verification against MHS physical limits
pass