ai.muna.muna 0.0.43 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/Editor/MunaMenu.cs +11 -1
  2. package/Plugins/Android/Muna.aar +0 -0
  3. package/Plugins/Linux/arm64/libFunction.so +0 -0
  4. package/Plugins/Linux/x86_64/libFunction.so +0 -0
  5. package/Plugins/Windows/arm64/Function.dll +0 -0
  6. package/Plugins/Windows/x86_64/Function.dll +0 -0
  7. package/Plugins/iOS/Function.xcframework/Info.plist +11 -11
  8. package/Plugins/iOS/Function.xcframework/ios-arm64/Function.framework/Function +0 -0
  9. package/Plugins/iOS/Function.xcframework/ios-arm64/Function.framework/Headers/FXNVersion.h +1 -1
  10. package/Plugins/iOS/Function.xcframework/ios-arm64/Function.framework/Info.plist +0 -0
  11. package/Plugins/iOS/Function.xcframework/ios-arm64/Function.framework/_CodeSignature/CodeResources +3 -3
  12. package/Plugins/iOS/Function.xcframework/ios-arm64_x86_64-simulator/Function.framework/Function +0 -0
  13. package/Plugins/iOS/Function.xcframework/ios-arm64_x86_64-simulator/Function.framework/Headers/FXNVersion.h +1 -1
  14. package/Plugins/iOS/Function.xcframework/ios-arm64_x86_64-simulator/Function.framework/Info.plist +0 -0
  15. package/Plugins/iOS/Function.xcframework/ios-arm64_x86_64-simulator/Function.framework/_CodeSignature/CodeResources +3 -3
  16. package/Plugins/iOS/Function.xcframework/xros-arm64/Function.framework/Function +0 -0
  17. package/Plugins/iOS/Function.xcframework/xros-arm64/Function.framework/Headers/FXNVersion.h +1 -1
  18. package/Plugins/iOS/Function.xcframework/xros-arm64/Function.framework/Info.plist +0 -0
  19. package/Plugins/iOS/Function.xcframework/xros-arm64/Function.framework/_CodeSignature/CodeResources +3 -3
  20. package/Plugins/iOS/Function.xcframework/xros-arm64_x86_64-simulator/Function.framework/Function +0 -0
  21. package/Plugins/iOS/Function.xcframework/xros-arm64_x86_64-simulator/Function.framework/Headers/FXNVersion.h +1 -1
  22. package/Plugins/iOS/Function.xcframework/xros-arm64_x86_64-simulator/Function.framework/Info.plist +0 -0
  23. package/Plugins/iOS/Function.xcframework/xros-arm64_x86_64-simulator/Function.framework/_CodeSignature/CodeResources +3 -3
  24. package/Plugins/macOS/Function.dylib +0 -0
  25. package/README.md +1 -1
  26. package/Runtime/API/DotNetClient.cs +0 -3
  27. package/Runtime/Beta/BetaClient.cs +14 -1
  28. package/Runtime/Beta/OpenAI/AudioService.cs +38 -0
  29. package/Runtime/Beta/OpenAI/AudioService.cs.meta +11 -0
  30. package/Runtime/Beta/OpenAI/ChatService.cs +38 -0
  31. package/Runtime/Beta/OpenAI/ChatService.cs.meta +11 -0
  32. package/Runtime/Beta/OpenAI/CompletionService.cs +117 -0
  33. package/Runtime/Beta/OpenAI/CompletionService.cs.meta +11 -0
  34. package/Runtime/Beta/OpenAI/EmbeddingService.cs +252 -0
  35. package/Runtime/Beta/OpenAI/EmbeddingService.cs.meta +11 -0
  36. package/Runtime/Beta/OpenAI/OpenAIClient.cs +50 -0
  37. package/Runtime/Beta/OpenAI/OpenAIClient.cs.meta +11 -0
  38. package/Runtime/Beta/OpenAI/SpeechService.cs +250 -0
  39. package/Runtime/Beta/OpenAI/SpeechService.cs.meta +11 -0
  40. package/Runtime/Beta/OpenAI/Types.cs +365 -0
  41. package/Runtime/Beta/OpenAI/Types.cs.meta +11 -0
  42. package/Runtime/Beta/OpenAI.meta +8 -0
  43. package/Runtime/Beta/Remote/RemotePredictionService.cs +45 -66
  44. package/Runtime/Beta/{Value.cs → Remote/Value.cs} +3 -4
  45. package/Runtime/C/Configuration.cs +1 -1
  46. package/Runtime/C/Function.cs +1 -1
  47. package/Runtime/C/Prediction.cs +1 -1
  48. package/Runtime/C/PredictionStream.cs +1 -1
  49. package/Runtime/C/Predictor.cs +1 -1
  50. package/Runtime/C/Value.cs +3 -2
  51. package/Runtime/C/ValueMap.cs +1 -1
  52. package/Runtime/Muna.cs +2 -2
  53. package/Runtime/Types/Parameter.cs +75 -0
  54. package/Runtime/Types/Parameter.cs.meta +11 -0
  55. package/Runtime/Types/Predictor.cs +0 -53
  56. package/Unity/API/PredictionCacheClient.cs +1 -1
  57. package/Unity/MunaUnity.cs +0 -1
  58. package/package.json +1 -1
  59. /package/Runtime/Beta/{Value.cs.meta → Remote/Value.cs.meta} +0 -0
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Muna
3
+ * Copyright © 2025 NatML Inc. All rights reserved.
4
+ */
5
+
6
+ #nullable enable
7
+ #pragma warning disable 8618
8
+
9
+ namespace Muna {
10
+
11
+ using System;
12
+
13
+ /// <summary>
14
+ /// Predictor parameter.
15
+ /// </summary>
16
+ [Preserve, Serializable]
17
+ public class Parameter {
18
+
19
+ /// <summary>
20
+ /// Parameter name.
21
+ /// </summary>
22
+ public string name;
23
+
24
+ /// <summary>
25
+ /// Parameter type.
26
+ /// </summary>
27
+ public Dtype type;
28
+
29
+ /// <summary>
30
+ /// Parameter description.
31
+ /// </summary>
32
+ public string? description;
33
+
34
+ /// <summary>
35
+ /// Parameter denotation.
36
+ /// </summary>
37
+ public string? denotation;
38
+
39
+ /// <summary>
40
+ /// Parameter is optional.
41
+ /// </summary>
42
+ public bool? optional;
43
+
44
+ /// <summary>
45
+ /// Parameter value range for numeric parameters.
46
+ /// </summary>
47
+ public float[]? range;
48
+
49
+ /// <summary>
50
+ /// Parameter value choices for enumeration parameters.
51
+ /// </summary>
52
+ public EnumerationMember[]? enumeration;
53
+
54
+ /// <summary>
55
+ /// Parameter audio sample rate.
56
+ /// </summary>
57
+ public int? sampleRate;
58
+ }
59
+
60
+ /// <summary>
61
+ /// Prediction parameter enumeration member.
62
+ /// </summary>
63
+ [Preserve, Serializable]
64
+ public class EnumerationMember {
65
+ /// <summary>
66
+ /// Enumeration member name.
67
+ /// </summary>
68
+ public string name;
69
+ /// <summary>
70
+ /// Enumeration member value.
71
+ /// This is usually a `string` or `int`.
72
+ /// </summary>
73
+ public object value;
74
+ }
75
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 624d8c36be04548b7ae5358fd8970639
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -94,59 +94,6 @@ namespace Muna {
94
94
  public Parameter[] outputs;
95
95
  }
96
96
 
97
- /// <summary>
98
- /// Predictor parameter.
99
- /// </summary>
100
- [Preserve, Serializable]
101
- public class Parameter {
102
-
103
- /// <summary>
104
- /// Parameter name.
105
- /// </summary>
106
- public string? name;
107
-
108
- /// <summary>
109
- /// Parameter type.
110
- /// </summary>
111
- public Dtype? type;
112
-
113
- /// <summary>
114
- /// Parameter description.
115
- /// </summary>
116
- public string? description;
117
-
118
- /// <summary>
119
- /// Parameter is optional.
120
- /// </summary>
121
- public bool? optional;
122
-
123
- /// <summary>
124
- /// Parameter value range for numeric parameters.
125
- /// </summary>
126
- public float[]? range;
127
-
128
- /// <summary>
129
- /// Parameter value choices for enumeration parameters.
130
- /// </summary>
131
- public EnumerationMember[]? enumeration;
132
- }
133
-
134
- /// <summary>
135
- /// Prediction parameter enumeration member.
136
- /// </summary>
137
- [Preserve, Serializable]
138
- public class EnumerationMember {
139
- /// <summary>
140
- /// Enumeration member name.
141
- /// </summary>
142
- public string name;
143
- /// <summary>
144
- /// Enumeration member value.
145
- /// This is usually a `string` or `int`.
146
- /// </summary>
147
- public object value;
148
- }
149
-
150
97
  /// <summary>
151
98
  /// Predictor access mode.
152
99
  /// </summary>
@@ -109,7 +109,7 @@ namespace Muna.API {
109
109
  Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), @".fxn") :
110
110
  Path.Combine(Application.persistentDataPath, @"fxn");
111
111
  private static string ResourceCachePath => Path.Combine(CacheRoot, @"cache");
112
- private static string PredictorCachePath => Path.Combine(CacheRoot, @"predictors");
112
+ internal static string PredictorCachePath => Path.Combine(CacheRoot, @"predictors");
113
113
 
114
114
  private async Task<PredictionResource> GetCachedResource(PredictionResource resource) {
115
115
  var path = PredictionService.GetResourcePath(resource, ResourceCachePath);
@@ -36,7 +36,6 @@ namespace Muna {
36
36
  /// </summary>
37
37
  /// <param name="accessKey">Muna access key. This defaults to your access key in Project Settings.</param>
38
38
  /// <param name="url">Muna API URL.</param>
39
- /// <param name="cachePath">Predictor cache path.</param>
40
39
  /// <returns>Muna client.</returns>
41
40
  public static Muna Create(
42
41
  string? accessKey = null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai.muna.muna",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "displayName": "Muna",
5
5
  "description": "Run AI inference in Unity Engine.",
6
6
  "unity": "2022.3",