Skip to main content
These annotations serve multiple important purposes:
  • They help users know what input data to provide to the compiled model and how to use output data from the compiled model, via the parameter description.
  • They help users search for compiled models using highly detailed queries (e.g. MCP clients).
  • They help the Muna client automatically provide familiar interfaces around your compiled function, e.g. with the OpenAI interface.
  • They help the Muna website automatically create interactive visualizers for your compiled function.
While not required, we highly recommend using parameter annotations on your compiled functions.
Below are currently supported annotations:
Use the Parameter.Generic annotation to provide information about a general input or output parameters:
model.py
Below is the full Parameter.Generic annotation definition:
Use the Parameter.Numeric annotation to specify numeric input or output parameters:
calculate_area.py
Below is the full Parameter.Numeric annotation definition:
Use the Parameter.Audio annotation to specify audio parameters:
transcribe_audio.py
The Parameter.Audio annotation allows the compiled model to be used by our OpenAI speech client.
Below is the full Parameter.Audio annotation definition:
Use the Parameter.AudioSpeed annotation to specify audio speed parameters in audio generation models:
generate_speech.py
Below is the full Parameter.AudioSpeed annotation definition:
Use the Parameter.AudioVoice annotation to specify audio voice parameters in audio generation models:
generate_speech.py
Below is the full Parameter.AudioVoice annotation definition:
Use the Parameter.BoundingBox or Parameter.BoundingBoxes annotations to specify bounding box parameters in object detection models:
Below is the full Parameter.BoundingBox annotation definition:
Use the Parameter.DepthMap annotation to specify depth map parameters in depth estimation models:
estimate_depth.py
Below is the full Parameter.DepthMap annotation definition:
Use the Parameter.Embedding annotation to specify vector embedding parameters in embedding models:
embed_text.py
The Parameter.Embedding annotation allows the compiled model to be used by our
OpenAI embedding client.
Below is the full Parameter.Embedding annotation definition:
Use the Parameter.EmbeddingDims annotation to specify an embedding Matryoshka dimension parameter in embedding models:
embed_text.py
Below is the full Parameter.EmbeddingDims annotation definition: