001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.juneau.bean.mcp.v20260728;
018
019import org.apache.juneau.marshall.*;
020
021/**
022 * Parameters for {@value McpMethods#COMPLETION_COMPLETE}.
023 */
024@Marshalled
025public class CompleteRequest extends RequestParams<CompleteRequest> {
026
027   private CompletionReference ref;
028   private CompletionArgument argument;
029   private CompletionContext context;
030
031   /**
032    * Completion target (prompt or resource template).
033    *
034    * @return The reference, or {@code null} if not set.
035    */
036   public CompletionReference getRef() {
037      return ref;
038   }
039
040   /**
041    * Sets the completion target.
042    *
043    * @param value The new value.  Can be <jk>null</jk> to unset the property.
044    * @return This object (for method chaining).
045    */
046   public CompleteRequest setRef(CompletionReference value) {
047      ref = value;
048      return this;
049   }
050
051   /**
052    * Argument being completed.
053    *
054    * @return The argument, or {@code null} if not set.
055    */
056   public CompletionArgument getArgument() {
057      return argument;
058   }
059
060   /**
061    * Sets the argument being completed.
062    *
063    * @param value The new value.  Can be <jk>null</jk> to unset the property.
064    * @return This object (for method chaining).
065    */
066   public CompleteRequest setArgument(CompletionArgument value) {
067      argument = value;
068      return this;
069   }
070
071   /**
072    * Optional already-resolved argument values.
073    *
074    * @return The context, or {@code null} if not set.
075    */
076   public CompletionContext getContext() {
077      return context;
078   }
079
080   /**
081    * Sets the optional context.
082    *
083    * @param value The new value.  Can be <jk>null</jk> to unset the property.
084    * @return This object (for method chaining).
085    */
086   public CompleteRequest setContext(CompletionContext value) {
087      context = value;
088      return this;
089   }
090}