Skip to content

Commit

Permalink
Add orchestration
Browse files Browse the repository at this point in the history
  • Loading branch information
newtork committed Aug 26, 2024
1 parent 1e136ef commit c153aeb
Show file tree
Hide file tree
Showing 27 changed files with 951 additions and 951 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ public class AzureContentSafety
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
protected AzureContentSafety() { }

/**
* Set the hate of this {@link AzureContentSafety} instance and return the same instance.
*
* @param hate The hate of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety hate(@Nonnull final AzureThreshold hate) {
/**
* Set the hate of this {@link AzureContentSafety} instance and return the same instance.
*
* @param hate The hate of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety hate( @Nullable final AzureThreshold hate) {
this.hate = hate;
return this;
}

/**
* Get hate
* @return hate The hate of this {@link AzureContentSafety} instance.
*/
/**
* Get hate
* @return hate The hate of this {@link AzureContentSafety} instance.
*/
@Nonnull public AzureThreshold getHate() {
return hate;
}
Expand All @@ -84,25 +84,25 @@ protected AzureContentSafety() { }
*
* @param hate The hate of this {@link AzureContentSafety}
*/
public void setHate( @Nonnull final AzureThreshold hate) {
public void setHate( @Nullable final AzureThreshold hate) {
this.hate = hate;
}

/**
* Set the selfHarm of this {@link AzureContentSafety} instance and return the same instance.
*
* @param selfHarm The selfHarm of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety selfHarm(@Nonnull final AzureThreshold selfHarm) {
/**
* Set the selfHarm of this {@link AzureContentSafety} instance and return the same instance.
*
* @param selfHarm The selfHarm of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety selfHarm( @Nullable final AzureThreshold selfHarm) {
this.selfHarm = selfHarm;
return this;
}

/**
* Get selfHarm
* @return selfHarm The selfHarm of this {@link AzureContentSafety} instance.
*/
/**
* Get selfHarm
* @return selfHarm The selfHarm of this {@link AzureContentSafety} instance.
*/
@Nonnull public AzureThreshold getSelfHarm() {
return selfHarm;
}
Expand All @@ -112,25 +112,25 @@ public void setHate( @Nonnull final AzureThreshold hate) {
*
* @param selfHarm The selfHarm of this {@link AzureContentSafety}
*/
public void setSelfHarm( @Nonnull final AzureThreshold selfHarm) {
public void setSelfHarm( @Nullable final AzureThreshold selfHarm) {
this.selfHarm = selfHarm;
}

/**
* Set the sexual of this {@link AzureContentSafety} instance and return the same instance.
*
* @param sexual The sexual of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety sexual(@Nonnull final AzureThreshold sexual) {
/**
* Set the sexual of this {@link AzureContentSafety} instance and return the same instance.
*
* @param sexual The sexual of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety sexual( @Nullable final AzureThreshold sexual) {
this.sexual = sexual;
return this;
}

/**
* Get sexual
* @return sexual The sexual of this {@link AzureContentSafety} instance.
*/
/**
* Get sexual
* @return sexual The sexual of this {@link AzureContentSafety} instance.
*/
@Nonnull public AzureThreshold getSexual() {
return sexual;
}
Expand All @@ -140,25 +140,25 @@ public void setSelfHarm( @Nonnull final AzureThreshold selfHarm) {
*
* @param sexual The sexual of this {@link AzureContentSafety}
*/
public void setSexual( @Nonnull final AzureThreshold sexual) {
public void setSexual( @Nullable final AzureThreshold sexual) {
this.sexual = sexual;
}

/**
* Set the violence of this {@link AzureContentSafety} instance and return the same instance.
*
* @param violence The violence of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety violence(@Nonnull final AzureThreshold violence) {
/**
* Set the violence of this {@link AzureContentSafety} instance and return the same instance.
*
* @param violence The violence of this {@link AzureContentSafety}
* @return The same instance of this {@link AzureContentSafety} class
*/
@Nonnull public AzureContentSafety violence( @Nullable final AzureThreshold violence) {
this.violence = violence;
return this;
}

/**
* Get violence
* @return violence The violence of this {@link AzureContentSafety} instance.
*/
/**
* Get violence
* @return violence The violence of this {@link AzureContentSafety} instance.
*/
@Nonnull public AzureThreshold getViolence() {
return violence;
}
Expand All @@ -168,7 +168,7 @@ public void setSexual( @Nonnull final AzureThreshold sexual) {
*
* @param violence The violence of this {@link AzureContentSafety}
*/
public void setViolence( @Nonnull final AzureThreshold violence) {
public void setViolence( @Nullable final AzureThreshold violence) {
this.violence = violence;
}

Expand All @@ -189,7 +189,7 @@ public Set<String> getCustomFieldNames() {
* @throws NoSuchElementException If no property with the given name could be found.
*/
@Nullable
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
public Object getCustomField( @Nonnull final String name ) throws NoSuchElementException {
if( !cloudSdkCustomFields.containsKey(name) ) {
throw new NoSuchElementException("AzureContentSafety has no field with name '" + name + "'.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ public class ChatMessage
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
protected ChatMessage() { }

/**
* Set the role of this {@link ChatMessage} instance and return the same instance.
*
* @param role The role of this {@link ChatMessage}
* @return The same instance of this {@link ChatMessage} class
*/
@Nonnull public ChatMessage role(@Nonnull final String role) {
/**
* Set the role of this {@link ChatMessage} instance and return the same instance.
*
* @param role The role of this {@link ChatMessage}
* @return The same instance of this {@link ChatMessage} class
*/
@Nonnull public ChatMessage role( @Nonnull final String role) {
this.role = role;
return this;
}

/**
* Get role
* @return role The role of this {@link ChatMessage} instance.
*/
/**
* Get role
* @return role The role of this {@link ChatMessage} instance.
*/
@Nonnull public String getRole() {
return role;
}
Expand All @@ -81,21 +81,21 @@ public void setRole( @Nonnull final String role) {
this.role = role;
}

/**
* Set the content of this {@link ChatMessage} instance and return the same instance.
*
* @param content The content of this {@link ChatMessage}
* @return The same instance of this {@link ChatMessage} class
*/
@Nonnull public ChatMessage content(@Nonnull final String content) {
/**
* Set the content of this {@link ChatMessage} instance and return the same instance.
*
* @param content The content of this {@link ChatMessage}
* @return The same instance of this {@link ChatMessage} class
*/
@Nonnull public ChatMessage content( @Nonnull final String content) {
this.content = content;
return this;
}

/**
* Get content
* @return content The content of this {@link ChatMessage} instance.
*/
/**
* Get content
* @return content The content of this {@link ChatMessage} instance.
*/
@Nonnull public String getContent() {
return content;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ public Set<String> getCustomFieldNames() {
* @throws NoSuchElementException If no property with the given name could be found.
*/
@Nullable
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
public Object getCustomField( @Nonnull final String name ) throws NoSuchElementException {
if( !cloudSdkCustomFields.containsKey(name) ) {
throw new NoSuchElementException("ChatMessage has no field with name '" + name + "'.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ public class CompletionPostRequest
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
protected CompletionPostRequest() { }

/**
* Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest orchestrationConfig(@Nonnull final OrchestrationConfig orchestrationConfig) {
/**
* Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest orchestrationConfig( @Nonnull final OrchestrationConfig orchestrationConfig) {
this.orchestrationConfig = orchestrationConfig;
return this;
}

/**
* Get orchestrationConfig
* @return orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} instance.
*/
/**
* Get orchestrationConfig
* @return orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} instance.
*/
@Nonnull public OrchestrationConfig getOrchestrationConfig() {
return orchestrationConfig;
}
Expand All @@ -91,33 +91,33 @@ public void setOrchestrationConfig( @Nonnull final OrchestrationConfig orchestra
this.orchestrationConfig = orchestrationConfig;
}

/**
* Set the inputParams of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param inputParams The inputParams of this {@link CompletionPostRequest}
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest inputParams(@Nonnull final Map<String, String> inputParams) {
/**
* Set the inputParams of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param inputParams The inputParams of this {@link CompletionPostRequest}
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest inputParams( @Nonnull final Map<String, String> inputParams) {
this.inputParams = inputParams;
return this;
}

/**
* Put one inputParams instance to this {@link CompletionPostRequest} instance.
* @param key The String key of this inputParams instance
* @param inputParamsItem The inputParams that should be added under the given key
* @return The same instance of type {@link CompletionPostRequest}
*/
@Nonnull public CompletionPostRequest putinputParamsItem(@Nonnull final String key, @Nonnull final String inputParamsItem) {
this.inputParams = new HashMap<>();
/**
* Put one inputParams instance to this {@link CompletionPostRequest} instance.
* @param key The String key of this inputParams instance
* @param inputParamsItem The inputParams that should be added under the given key
* @return The same instance of type {@link CompletionPostRequest}
*/
@Nonnull public CompletionPostRequest putinputParamsItem( @Nonnull final String key, @Nonnull final String inputParamsItem) {
this.inputParams = new HashMap<>();
this.inputParams.put(key, inputParamsItem);
return this;
}

/**
* Get inputParams
* @return inputParams The inputParams of this {@link CompletionPostRequest} instance.
*/
/**
* Get inputParams
* @return inputParams The inputParams of this {@link CompletionPostRequest} instance.
*/
@Nonnull public Map<String, String> getInputParams() {
return inputParams;
}
Expand All @@ -131,13 +131,13 @@ public void setInputParams( @Nonnull final Map<String, String> inputParams) {
this.inputParams = inputParams;
}

/**
* Set the messagesHistory of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param messagesHistory History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest messagesHistory(@Nonnull final List<ChatMessage> messagesHistory) {
/**
* Set the messagesHistory of this {@link CompletionPostRequest} instance and return the same instance.
*
* @param messagesHistory History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
* @return The same instance of this {@link CompletionPostRequest} class
*/
@Nonnull public CompletionPostRequest messagesHistory( @Nullable final List<ChatMessage> messagesHistory) {
this.messagesHistory = messagesHistory;
return this;
}
Expand All @@ -154,10 +154,10 @@ public void setInputParams( @Nonnull final Map<String, String> inputParams) {
return this;
}

/**
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
* @return messagesHistory The messagesHistory of this {@link CompletionPostRequest} instance.
*/
/**
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
* @return messagesHistory The messagesHistory of this {@link CompletionPostRequest} instance.
*/
@Nonnull public List<ChatMessage> getMessagesHistory() {
return messagesHistory;
}
Expand All @@ -167,7 +167,7 @@ public void setInputParams( @Nonnull final Map<String, String> inputParams) {
*
* @param messagesHistory History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
*/
public void setMessagesHistory( @Nonnull final List<ChatMessage> messagesHistory) {
public void setMessagesHistory( @Nullable final List<ChatMessage> messagesHistory) {
this.messagesHistory = messagesHistory;
}

Expand All @@ -188,7 +188,7 @@ public Set<String> getCustomFieldNames() {
* @throws NoSuchElementException If no property with the given name could be found.
*/
@Nullable
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
public Object getCustomField( @Nonnull final String name ) throws NoSuchElementException {
if( !cloudSdkCustomFields.containsKey(name) ) {
throw new NoSuchElementException("CompletionPostRequest has no field with name '" + name + "'.");
}
Expand Down
Loading

0 comments on commit c153aeb

Please sign in to comment.