Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. Spark
  3. spark
  4. SparkResultMessage

spark.SparkResultMessage

export interface SparkResultMessage {
  type: 'result';
  /** Request ID this result corresponds to */
  id: string;
  /** Result from successful call */
  result?: unknown;
  /** Error message if call failed */
  error?: string;
}
type('result')
id(string)
– Request ID this result corresponds to
result(unknown)optional
– Result from successful call
error(string)optional
– Error message if call failed

Message sent in response to a function call.

Previous
SparkProxy
Next
SparkSaveOptions