Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.1"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 18
openapi_spec_hash: 153617b7252b1b12f21043b2a1246f8b
config_hash: ce1d7a667e6198e82ef498fdba50ebfe
openapi_spec_hash: 539798fac79a1eeebf9ac4faa0492455
config_hash: 6dcf08c4324405f152d1da9fc11ab04a
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.2.0 (2025-11-19)

Full Changelog: [v0.1.1...v0.2.0](https://github.com/openlayer-ai/openlayer-go/compare/v0.1.1...v0.2.0)

### Features

* **api:** api update ([c4a4bd2](https://github.com/openlayer-ai/openlayer-go/commit/c4a4bd2460cad43f8a78de5c5c4e14b351746bcc))
* **api:** api update ([e8f5ac9](https://github.com/openlayer-ai/openlayer-go/commit/e8f5ac904eb179b5d5bfdc19ffe427b55a957efc))


### Bug Fixes

* **client:** correctly specify Accept header with */* instead of empty ([7ba0a42](https://github.com/openlayer-ai/openlayer-go/commit/7ba0a42cfbe23939bd1eff8526f63997cd22d5a0))

## 0.1.1 (2025-09-29)

Full Changelog: [v0.1.0...v0.1.1](https://github.com/openlayer-ai/openlayer-go/compare/v0.1.0...v0.1.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/openlayer-ai/openlayer-go@v0.1.1'
go get -u 'github.com/openlayer-ai/openlayer-go@v0.2.0'
```

<!-- x-release-please-end -->
Expand Down
560 changes: 553 additions & 7 deletions inferencepipeline.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.1.1" // x-release-please-version
const PackageVersion = "0.2.0" // x-release-please-version
715 changes: 706 additions & 9 deletions projectinferencepipeline.go

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions projectinferencepipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ func TestProjectInferencePipelineNewWithOptionalParams(t *testing.T) {
openlayer.ProjectInferencePipelineNewParams{
Description: openlayer.F("This pipeline is used for production."),
Name: openlayer.F("production"),
DataBackend: openlayer.F[openlayer.ProjectInferencePipelineNewParamsDataBackendUnion](openlayer.ProjectInferencePipelineNewParamsDataBackendObject{
BackendType: openlayer.F(openlayer.ProjectInferencePipelineNewParamsDataBackendObjectBackendTypeBigquery),
BigqueryConnectionID: openlayer.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
Config: openlayer.F(openlayer.ProjectInferencePipelineNewParamsDataBackendObjectConfig{
GroundTruthColumnName: openlayer.F("ground_truth"),
HumanFeedbackColumnName: openlayer.F("human_feedback"),
InferenceIDColumnName: openlayer.F("id"),
LatencyColumnName: openlayer.F("latency"),
TimestampColumnName: openlayer.F("timestamp"),
}),
DatasetID: openlayer.F("my-dataset"),
ProjectID: openlayer.F("my-project"),
TableID: openlayer.F("my-table"),
PartitionType: openlayer.F(openlayer.ProjectInferencePipelineNewParamsDataBackendObjectPartitionTypeDay),
}),
Project: openlayer.F(openlayer.ProjectInferencePipelineNewParamsProject{
Name: openlayer.F("My Project"),
TaskType: openlayer.F(openlayer.ProjectInferencePipelineNewParamsProjectTaskTypeLlmBase),
Expand Down
44 changes: 44 additions & 0 deletions projecttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,23 @@ type ProjectTestNewResponse struct {
Type ProjectTestNewResponseType `json:"type,required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines bool `json:"defaultToAllPipelines,nullable"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow,nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow,nullable"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines []string `json:"excludePipelines,nullable" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData bool `json:"includeHistoricalData,nullable"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines []string `json:"includePipelines,nullable" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
Expand Down Expand Up @@ -142,8 +154,12 @@ type projectTestNewResponseJSON struct {
Thresholds apijson.Field
Type apijson.Field
Archived apijson.Field
DefaultToAllPipelines apijson.Field
DelayWindow apijson.Field
EvaluationWindow apijson.Field
ExcludePipelines apijson.Field
IncludeHistoricalData apijson.Field
IncludePipelines apijson.Field
UsesMlModel apijson.Field
UsesProductionData apijson.Field
UsesReferenceDataset apijson.Field
Expand Down Expand Up @@ -494,11 +510,23 @@ type ProjectTestListResponseItem struct {
Type ProjectTestListResponseItemsType `json:"type,required"`
// Whether the test is archived.
Archived bool `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines bool `json:"defaultToAllPipelines,nullable"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow float64 `json:"delayWindow,nullable"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow float64 `json:"evaluationWindow,nullable"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines []string `json:"excludePipelines,nullable" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData bool `json:"includeHistoricalData,nullable"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines []string `json:"includePipelines,nullable" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel bool `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
Expand Down Expand Up @@ -530,8 +558,12 @@ type projectTestListResponseItemJSON struct {
Thresholds apijson.Field
Type apijson.Field
Archived apijson.Field
DefaultToAllPipelines apijson.Field
DelayWindow apijson.Field
EvaluationWindow apijson.Field
ExcludePipelines apijson.Field
IncludeHistoricalData apijson.Field
IncludePipelines apijson.Field
UsesMlModel apijson.Field
UsesProductionData apijson.Field
UsesReferenceDataset apijson.Field
Expand Down Expand Up @@ -820,11 +852,23 @@ type ProjectTestNewParams struct {
Type param.Field[ProjectTestNewParamsType] `json:"type,required"`
// Whether the test is archived.
Archived param.Field[bool] `json:"archived"`
// Whether to apply the test to all pipelines (data sources) or to a specific set
// of pipelines. Only applies to tests that use production data.
DefaultToAllPipelines param.Field[bool] `json:"defaultToAllPipelines"`
// The delay window in seconds. Only applies to tests that use production data.
DelayWindow param.Field[float64] `json:"delayWindow"`
// The evaluation window in seconds. Only applies to tests that use production
// data.
EvaluationWindow param.Field[float64] `json:"evaluationWindow"`
// Array of pipelines (data sources) to which the test should not be applied. Only
// applies to tests that use production data.
ExcludePipelines param.Field[[]string] `json:"excludePipelines" format:"uuid"`
// Whether to include historical data in the test result. Only applies to tests
// that use production data.
IncludeHistoricalData param.Field[bool] `json:"includeHistoricalData"`
// Array of pipelines (data sources) to which the test should be applied. Only
// applies to tests that use production data.
IncludePipelines param.Field[[]string] `json:"includePipelines" format:"uuid"`
// Whether the test uses an ML model.
UsesMlModel param.Field[bool] `json:"usesMlModel"`
// Whether the test uses production data (monitoring mode only).
Expand Down
4 changes: 4 additions & 0 deletions projecttest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ func TestProjectTestNewWithOptionalParams(t *testing.T) {
}}),
Type: openlayer.F(openlayer.ProjectTestNewParamsTypeIntegrity),
Archived: openlayer.F(false),
DefaultToAllPipelines: openlayer.F(true),
DelayWindow: openlayer.F(0.000000),
EvaluationWindow: openlayer.F(3600.000000),
ExcludePipelines: openlayer.F([]string{"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}),
IncludeHistoricalData: openlayer.F(true),
IncludePipelines: openlayer.F([]string{"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}),
UsesMlModel: openlayer.F(false),
UsesProductionData: openlayer.F(false),
UsesReferenceDataset: openlayer.F(false),
Expand Down