gsep_after_tool
Scans tool outputs for prompt injection and dangerous instructions before they reach the AI agent.
Instructions
Middleware hook to run after a tool returns external content and before that content is fed back into an agent/LLM. Scans for prompt injection and dangerous action instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | User identifier for personalization and audit context | |
| genome_id | Yes | Unique identifier for this agent genome | |
| task_type | No | Task type hint, e.g. support, coding, research | |
| tool_name | Yes | Name of the tool that produced this result | |
| tool_result | Yes | Raw tool output before it is sent back into the agent/LLM context | |
| user_message | No | Original user request, if available |