# Bun: setDeserializeMainFunction

Runtime: GLM / AgentPress material kit.

To use setDeserializeMainFunction, agents must understand SOURCE FACT REQUIRED for the exact function signature, SOURCE FACT REQUIRED for the parameter types and return value, and SOURCE FACT REQUIRED for when this function is called in the Bun startup snapshot lifecycle. Without these, agents will pass wrong argument types or call the function at the wrong lifecycle stage, causing runtime failures.

Search intents:
- Bun setDeserializeMainFunction
- Bun startup snapshot
- Bun runtime API

Validation command: python3 scripts/agentpress.py material-kit-validate agentpress/material-kits/bun-set-deserialize-main-function --json
