Thrubit intercepts every Bedrock call in your state machines and Lambda functions — returning instant, shaped mock responses.
ZERO API costs. Zero latency. Zero surprises.
Before Thrubit, every change to an AI-powered state machine meant a real model call — paying token costs, waiting for inference, and fighting throttle limits just to test your routing logic.
Every test run hits the real Bedrock API — billing tokens, waiting 3–20 seconds for inference, risking throttle limits, and requiring valid AWS credentials just to verify your state machine routing and Lambda handler logic.
Flip the Bedrock mock toggle in Settings. Every invokeModel, converse, and retrieve call returns an instant, correctly-shaped response in under 200ms — so you can focus on your workflow logic, not your AWS bill.
The Bedrock mock is a global setting in Thrubit's AWS panel. Turn it on and every Bedrock call — whether it originates from a Step Functions native integration or from inside a Lambda function — is intercepted and returns a mock response immediately. No code changes. No environment variables.
arn:aws:states:::bedrock:invokeModel) and direct SDK calls inside LambdaThrubit doesn't return a generic placeholder. Each mock response is shaped to match exactly what the real API returns for that model family — so your ResultSelector mappings, Lambda parsing code, and downstream state transitions all work exactly as they will in production.
output.message.content[].text and stopReasonresults[].outputText with token countsretrieveAndGenerate returns full citations and output.text structureapplyGuardrail returns action: "NONE" and coverage objectBedrock appears in two places in modern Step Functions architectures: as a native service integration in the ASL, and as a direct SDK call inside a Lambda function. Thrubit intercepts both.
arn:aws:states:::bedrock:invokeModel task states are intercepted by the execution engineAWS.BedrockRuntime.invokeModel() are patched at the SDK prototype level before your handler runsResultSelector and handler parsing code both work correctlybedrock:invokeModelbedrock:conversebedrock-agent-runtime:retrievebedrock-agent-runtime:retrieveAndGeneratebedrock:applyGuardrailbedrock-agent:invokeAgentBedrockRuntime.invokeModel()BedrockRuntime.converse()BedrockRuntime.retrieveAndGenerate()BedrockRuntime.retrieve()BedrockRuntime.applyGuardrail()BedrockRuntime.invokeAgent()Thrubit detects the model ID and returns a response shaped to that family's schema — so your parsing code and selectors work without touching the real API.
output.message.content[].text with stopReason: "end_turn" and usage tokens. Legacy Claude 2 returns completion field.output.message structure with stopReason and usage object matching production format.results[].outputText with tokenCount and completionReason: "FINISH" matched to the Titan Text schema.generation, prompt_token_count, generation_token_count, and stop_reason: "stop" per the Llama bedrock schema.outputs[].text with stop_reason field shaped to the Mistral Bedrock response format.generations[].text with likelihood and finish_reason: "COMPLETE" per the Cohere Command schema.artifacts[].base64 with finishReason: "SUCCESS" — parses correctly downstream.citations array, output.text, and sessionId for RAG flows. Agent responses include completion and sessionState.No code changes, no environment variables, no AWS credentials required to use mock mode.
In Thrubit, open the Settings panel and navigate to the AWS tab. You'll see the Bedrock and SQS mock toggles alongside your AWS profile and region configuration.
Flip the Bedrock toggle from "Real AWS" to "Mock". The change takes effect immediately — no restart needed. Run your state machine or invoke your Lambda just as you normally would.
Every Bedrock call returns an instant mock response shaped to the correct model schema. Build your routing logic, test error handling, and validate your ResultSelector — all at zero API cost.
When you're ready to validate against the real model, toggle back to "Real AWS" and run again. Because your parsing code was working against the correctly-shaped mock, it works against the real API too.
Download Thrubit and run your first Bedrock-powered state machine locally in under five minutes — at zero cost, with full mock responses for every model family.
Real feedback from engineers, trainers and decision makers.
“Thrubit cut our Step Functions debugging cycle from 15 minutes per iteration down to seconds. The visual trace is worth the price alone. It’s become an essential part of our development workflow.”
“I was looking for ways to make Step Functions and Lambdas more tangible for students. Thrubit makes it significantly easier to visualize workflows and experiment locally, accelerating real understanding.”
“Thrubit saves us over $24k a year & protects us from surprise AWS bills. One rogue state machine once cost us 10x our typical month. With Thrubit, that risk is gone and our developers iterate faster.”