Pipes
Agent skill:
nitrostack-python-middleware-pipeline
Pipes transform values before the handler: async def transform(self, value, metadata: PipeMetadata).
Python
from nitrostack import use_pipes, tool
class StripPipe:
async def transform(self, value, metadata):
if isinstance(value, str):
return value.strip()
return value
@tool(name="echo", description="...", input_schema=EchoInput)
@use_pipes(StripPipe)
async def echo(self, input: EchoInput, context):
return {"text": input.text}
Scaffold: nitrostack-py generate pipe Validation.