weave-typescript 0.5.1 → 0.9.0

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 (33) hide show
  1. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +377 -0
  2. package/dist/weaveapi/llmx/v1/architecture.pb.js +2756 -0
  3. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +491 -0
  4. package/dist/weaveapi/llmx/v1/capabilities.pb.js +3159 -0
  5. package/dist/weaveapi/{modex → llmx}/v1/model.pb.d.ts +86 -42
  6. package/dist/weaveapi/{modex → llmx}/v1/model.pb.js +119 -442
  7. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +142 -0
  8. package/dist/weaveapi/llmx/v1/pricing.pb.js +825 -0
  9. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.d.ts +1 -3
  10. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.js +3 -57
  11. package/dist/weaveapi/{modex → llmx}/v1/service.pb.d.ts +20 -20
  12. package/dist/weaveapi/{modex → llmx}/v1/service.pb.js +17 -17
  13. package/dist/weavesql/llmxdb/capabilities_sql.d.ts +151 -0
  14. package/dist/weavesql/llmxdb/capabilities_sql.js +241 -0
  15. package/dist/weavesql/llmxdb/changes_sql.d.ts +81 -0
  16. package/dist/weavesql/llmxdb/changes_sql.js +118 -0
  17. package/dist/weavesql/llmxdb/models_sql.d.ts +198 -0
  18. package/dist/weavesql/llmxdb/models_sql.js +244 -0
  19. package/dist/weavesql/llmxdb/providers_sql.d.ts +122 -0
  20. package/dist/weavesql/llmxdb/providers_sql.js +179 -0
  21. package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +83 -0
  22. package/dist/weavesql/llmxdb/scraper_runs_sql.js +137 -0
  23. package/dist/weavesql/llmxdb/search_sql.d.ts +272 -0
  24. package/dist/weavesql/llmxdb/search_sql.js +348 -0
  25. package/dist/weavesql/weavedb/dataset_sql.d.ts +17 -0
  26. package/dist/weavesql/weavedb/dataset_sql.js +21 -0
  27. package/dist/weavesql/weavedb/relationships_sql.d.ts +16 -0
  28. package/dist/weavesql/weavedb/relationships_sql.js +32 -0
  29. package/dist/weavesql/weavedb/storage_sql.d.ts +33 -0
  30. package/dist/weavesql/weavedb/storage_sql.js +54 -0
  31. package/dist/weavesql/weavedb/synthesizer_sql.d.ts +28 -0
  32. package/dist/weavesql/weavedb/synthesizer_sql.js +42 -0
  33. package/package.json +4 -1
@@ -1,60 +1,116 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "weaveapi.modex.v1";
2
+ import { Architecture, Licensing, Safety, TechnicalSpecs, Training } from "./architecture.pb";
3
+ import { Capability } from "./capabilities.pb";
4
+ import { Pricing } from "./pricing.pb";
5
+ export declare const protobufPackage = "weaveapi.llmx.v1";
3
6
  export interface Model {
7
+ /** Unique internal identifier for this model record in our database */
4
8
  id: string;
9
+ /** Provider's unique identifier (e.g., "openai-123", "anthropic-456") */
5
10
  providerId: string;
11
+ /** URL-friendly provider identifier (e.g., "openai", "anthropic") */
6
12
  providerSlug: string;
13
+ /** Human-readable provider name (e.g., "OpenAI", "Anthropic") */
7
14
  providerName: string;
15
+ /** Provider's specific model identifier (e.g., "gpt-4", "claude-3-opus") */
8
16
  modelId: string;
9
- /** provider/model_id */
17
+ /** Combined provider/model identifier (e.g., "openai/gpt-4") */
10
18
  slug: string;
19
+ /** Model's technical name (e.g., "gpt-4-turbo-2024-04-09") */
11
20
  name: string;
21
+ /** User-friendly display name (e.g., "GPT-4 Turbo") */
12
22
  displayName: string;
23
+ /** Human-readable description of the model's purpose and capabilities */
13
24
  description: string;
25
+ /** Model version string (e.g., "2024-04-09", "v1.0") */
14
26
  version: string;
15
- /** Dates */
27
+ /**
28
+ * Dates
29
+ * When the model was publicly released
30
+ */
16
31
  releaseDate: Date | undefined;
32
+ /** Last date of data used in training (knowledge cutoff) */
17
33
  trainingDataCutoff: Date | undefined;
34
+ /** When the model will be/was deprecated (if applicable) */
18
35
  deprecationDate: Date | undefined;
19
- /** Capabilities */
20
- capabilities: ModelCapabilities | undefined;
21
- /** Classification */
36
+ /**
37
+ * Capabilities - now uses detailed capability configurations
38
+ * List of specific capabilities this model supports (e.g., function calling, vision)
39
+ */
40
+ capabilities: Capability[];
41
+ /**
42
+ * Classification
43
+ * Model type, architecture, and licensing information
44
+ */
22
45
  classification: ModelClassification | undefined;
23
- /** Performance */
46
+ /**
47
+ * Performance
48
+ * Benchmark scores and performance metrics
49
+ */
24
50
  performance: ModelPerformance | undefined;
25
- /** Tokens */
51
+ /**
52
+ * Tokens
53
+ * Token limits, processing speed, and tokenizer information
54
+ */
26
55
  tokens: TokenInfo | undefined;
27
- /** Pricing */
56
+ /**
57
+ * Pricing
58
+ * Cost per token for various operations (input, output, caching, etc.)
59
+ */
28
60
  pricing: Pricing | undefined;
29
- /** Configuration */
61
+ /**
62
+ * Configuration
63
+ * Supported parameter ranges (temperature, top_p, etc.)
64
+ */
30
65
  configuration: Configuration | undefined;
31
- /** API Details */
66
+ /**
67
+ * API Details
68
+ * Endpoint information and rate limits
69
+ */
32
70
  apiDetails: APIDetails | undefined;
33
- /** Availability */
71
+ /**
72
+ * Availability
73
+ * Available regions and platforms where model can be accessed
74
+ */
34
75
  availability: Availability | undefined;
35
- /** Metadata */
76
+ /**
77
+ * Architecture details
78
+ * Technical architecture information (transformer type, layers, etc.)
79
+ */
80
+ architecture: Architecture | undefined;
81
+ /**
82
+ * Training information
83
+ * Details about training data, methods, and compute used
84
+ */
85
+ training: Training | undefined;
86
+ /**
87
+ * Safety and moderation
88
+ * Built-in safety features and content filtering
89
+ */
90
+ safety: Safety | undefined;
91
+ /**
92
+ * Licensing information
93
+ * License type and usage restrictions
94
+ */
95
+ licensing: Licensing | undefined;
96
+ /**
97
+ * Technical specifications
98
+ * Hardware requirements and technical details
99
+ */
100
+ technicalSpecs: TechnicalSpecs | undefined;
101
+ /**
102
+ * Metadata
103
+ * When this model information was last updated in our system
104
+ */
36
105
  lastScrapedAt: Date | undefined;
106
+ /** Sources where this model information was collected from */
37
107
  dataSources: string[];
108
+ /** Whether the model is currently available for use */
38
109
  isActive: boolean;
110
+ /** Whether the model has been deprecated */
39
111
  isDeprecated: boolean;
112
+ /** If deprecated, the recommended replacement model's ID */
40
113
  replacementModelId: string;
41
- createdAt: Date | undefined;
42
- updatedAt: Date | undefined;
43
- }
44
- export interface ModelCapabilities {
45
- supportsChat: boolean;
46
- supportsCompletion: boolean;
47
- supportsEmbeddings: boolean;
48
- supportsVision: boolean;
49
- supportsAudio: boolean;
50
- supportsVideo: boolean;
51
- supportsToolCalls: boolean;
52
- supportsFunctionCalls: boolean;
53
- supportsJsonMode: boolean;
54
- supportsStreaming: boolean;
55
- supportsReasoning: boolean;
56
- inputModalities: string[];
57
- outputModalities: string[];
58
114
  }
59
115
  export interface ModelClassification {
60
116
  /** foundation, fine-tuned, instruct, chat, reasoning */
@@ -87,16 +143,6 @@ export interface TokenInfo {
87
143
  tokenizer: string;
88
144
  tokensPerSecond: number;
89
145
  }
90
- export interface Pricing {
91
- /** per 1M tokens */
92
- inputPrice: number;
93
- outputPrice: number;
94
- cacheReadPrice: number;
95
- cacheWritePrice: number;
96
- fineTuningPrice: number;
97
- /** USD */
98
- currency: string;
99
- }
100
146
  export interface Configuration {
101
147
  temperatureMin: number;
102
148
  temperatureMax: number;
@@ -117,12 +163,10 @@ export interface Availability {
117
163
  platforms: string[];
118
164
  }
119
165
  export declare const Model: MessageFns<Model>;
120
- export declare const ModelCapabilities: MessageFns<ModelCapabilities>;
121
166
  export declare const ModelClassification: MessageFns<ModelClassification>;
122
167
  export declare const ModelPerformance: MessageFns<ModelPerformance>;
123
168
  export declare const ModelPerformance_BenchmarkScoresEntry: MessageFns<ModelPerformance_BenchmarkScoresEntry>;
124
169
  export declare const TokenInfo: MessageFns<TokenInfo>;
125
- export declare const Pricing: MessageFns<Pricing>;
126
170
  export declare const Configuration: MessageFns<Configuration>;
127
171
  export declare const APIDetails: MessageFns<APIDetails>;
128
172
  export declare const Availability: MessageFns<Availability>;