-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add transformation copilot to ingestion (generated)
algolia/api-clients-automation#3479 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
- Loading branch information
1 parent
4dff21b
commit 9f093f2
Showing
3 changed files
with
240 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
algoliasearch/src/main/java/com/algolia/model/ingestion/Model.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.Objects; | ||
|
||
/** Model */ | ||
public class Model { | ||
|
||
@JsonProperty("fullname") | ||
private String fullname; | ||
|
||
@JsonProperty("modelName") | ||
private String modelName; | ||
|
||
@JsonProperty("systemPrompt") | ||
private String systemPrompt; | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("provider") | ||
private String provider; | ||
|
||
public Model setFullname(String fullname) { | ||
this.fullname = fullname; | ||
return this; | ||
} | ||
|
||
/** Get fullname */ | ||
@javax.annotation.Nonnull | ||
public String getFullname() { | ||
return fullname; | ||
} | ||
|
||
public Model setModelName(String modelName) { | ||
this.modelName = modelName; | ||
return this; | ||
} | ||
|
||
/** Get modelName */ | ||
@javax.annotation.Nonnull | ||
public String getModelName() { | ||
return modelName; | ||
} | ||
|
||
public Model setSystemPrompt(String systemPrompt) { | ||
this.systemPrompt = systemPrompt; | ||
return this; | ||
} | ||
|
||
/** Get systemPrompt */ | ||
@javax.annotation.Nonnull | ||
public String getSystemPrompt() { | ||
return systemPrompt; | ||
} | ||
|
||
public Model setId(String id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
/** Get id */ | ||
@javax.annotation.Nonnull | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
public Model setProvider(String provider) { | ||
this.provider = provider; | ||
return this; | ||
} | ||
|
||
/** Get provider */ | ||
@javax.annotation.Nonnull | ||
public String getProvider() { | ||
return provider; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Model model = (Model) o; | ||
return ( | ||
Objects.equals(this.fullname, model.fullname) && | ||
Objects.equals(this.modelName, model.modelName) && | ||
Objects.equals(this.systemPrompt, model.systemPrompt) && | ||
Objects.equals(this.id, model.id) && | ||
Objects.equals(this.provider, model.provider) | ||
); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(fullname, modelName, systemPrompt, id, provider); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class Model {\n"); | ||
sb.append(" fullname: ").append(toIndentedString(fullname)).append("\n"); | ||
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); | ||
sb.append(" systemPrompt: ").append(toIndentedString(systemPrompt)).append("\n"); | ||
sb.append(" id: ").append(toIndentedString(id)).append("\n"); | ||
sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationModels.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** List of available AI models for transformation purposes. */ | ||
public class TransformationModels { | ||
|
||
@JsonProperty("llms") | ||
private List<Model> llms = new ArrayList<>(); | ||
|
||
public TransformationModels setLlms(List<Model> llms) { | ||
this.llms = llms; | ||
return this; | ||
} | ||
|
||
public TransformationModels addLlms(Model llmsItem) { | ||
this.llms.add(llmsItem); | ||
return this; | ||
} | ||
|
||
/** Get llms */ | ||
@javax.annotation.Nonnull | ||
public List<Model> getLlms() { | ||
return llms; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
TransformationModels transformationModels = (TransformationModels) o; | ||
return Objects.equals(this.llms, transformationModels.llms); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(llms); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class TransformationModels {\n"); | ||
sb.append(" llms: ").append(toIndentedString(llms)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |