content: /**
   * Copyright (C) 2024 AIDC-AI
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package com.alibaba.langengine.jina.sdk.request;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  
  /**
   * Request object for segmenter API
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  public class SegmenterRequest {
  
  	/**
  	 * Content to segment
  	 */
  	@JsonProperty("content")
  	private String content;
  
  	/**
  	 * Tokenizer to use
  	 */
  	@JsonProperty("tokenizer")
  	private String tokenizer;
  
  	/**
  	 * Whether to return tokens
  	 */
  	@JsonProperty("return_tokens")
  	private Boolean returnTokens;
  
  	/**
  	 * Whether to return chunks
  	 */
  	@JsonProperty("return_chunks")
  	private Boolean returnChunks;
  
  	/**
  	 * Maximum chunk length
  	 */
  	@JsonProperty("max_chunk_length")
  	private Integer maxChunkLength;
  
  	/**
  	 * Number of tokens from head
  	 */
  	@JsonProperty("head")
  	private Integer head;
  
  	/**
  	 * Number of tokens from tail
  	 */
  	@JsonProperty("tail")
  	private Integer tail;
  
  	// Getters and setters
  	public String getContent() {
  		return content;
  	}
  
  	public void setContent(String content) {
  		this.content = content;
  	}
  
  	public String getTokenizer() {
  		return tokenizer;
  	}
  
  	public void setTokenizer(String tokenizer) {
  		this.tokenizer = tokenizer;
  	}
  
  	public Boolean getReturnTokens() {
  		return returnTokens;
  	}
  
  	public void setReturnTokens(Boolean returnTokens) {
  		this.returnTokens = returnTokens;
  	}
  
  	public Boolean getReturnChunks() {
  		return returnChunks;
  	}
  
  	public void setReturnChunks(Boolean returnChunks) {
  		this.returnChunks = returnChunks;
  	}
  
  	public Integer getMaxChunkLength() {
  		return maxChunkLength;
  	}
  
  	public void setMaxChunkLength(Integer maxChunkLength) {
  		this.maxChunkLength = maxChunkLength;
  	}
  
  	public Integer getHead() {
  		return head;
  	}
  
  	public void setHead(Integer head) {
  		this.head = head;
  	}
  
  	public Integer getTail() {
  		return tail;
  	}
  
  	public void setTail(Integer tail) {
  		this.tail = tail;
  	}
  
  }
  