class_docstr: Schema for the suggestions for the questions related to the record.
  
  Args:
      question_name: name of the question in the `FeedbackDataset`.
      type: type of the question. Defaults to None. Possible values are `model` or `human`.
      score: score of the suggestion. Defaults to None.
      value: value of the suggestion, which should match the type of the question.
      agent: agent that generated the suggestion. Defaults to None.
  
  Examples:
      >>> from argilla.client.feedback.schemas.records import SuggestionSchema
      >>> SuggestionSchema(
      ...     question_name="question-1",
      ...     type="model",
      ...     score=0.9,
      ...     value="This is the first suggestion",
      ...     agent="agent-1",
      ... )
class_docstr_tok: ["Schema","for","the","suggestions","for","the","questions","related","to","the","record",".","Args",":","question_name",":","name","of","the","question","in","the","`","FeedbackDataset","`",".","type",":","type","of","the","question",".","Defaults","to","None",".","Possible","values","are","`","model","`","or","`","human","`",".","score",":","score","of","the","suggestion",".","Defaults","to","None",".","value",":","value","of","the","suggestion",",","which","should","match","the","type","of","the","question",".","agent",":","agent","that","generated","the","suggestion",".","Defaults","to","None",".","Examples",":",">",">",">","from","argilla.client.feedback.schemas.records","import","SuggestionSchema",">",">",">","SuggestionSchema","(","...","question_name=","''","question-1","''",",","...","type=","''","model","''",",","...","score=0.9",",","...","value=","''","This","is","the","first","suggestion","''",",","...","agent=","''","agent-1","''",",","...",")"]
docstr: Method that will be used to create the payload that will be sent to Argilla
  to create a `SuggestionSchema` for a `FeedbackRecord`.
docstr_tok: ["Method","that","will","be","used","to","create","the","payload","that","will","be","sent","to","Argilla","to","create","a","`","SuggestionSchema","`","for","a","`","FeedbackRecord","`","."]
code: def to_server_payload(
      self, question_name_to_id: Dict[str, UUID]
  ) -> Dict[str, Any]:
      """Method that will be used to create the payload that will be sent to Argilla
      to create a `SuggestionSchema` for a `FeedbackRecord`."""
      payload = {}
      payload["question_id"] = str(
          question_name_to_id[self.question_name]
      )
      payload["value"] = self.value
      if self.type:
          payload["type"] = self.type
      if self.score:
          payload["score"] = self.score
      if self.agent:
          payload["agent"] = self.agent
      return payload
  
imports: import warnings
  from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple, Union
  from uuid import UUID
  from argilla.client.feedback.schemas.enums import RecordSortField, ResponseStatus, SortOrder
  from argilla.pydantic_v1 import BaseModel, Extra, Field, PrivateAttr, StrictInt, StrictStr, conint, validator
label_desc: Use image node_id 1 for calling the SuggestionSchema obj's underlying member method code with example usage: obj.to_server_payload(question_name_to_id) and returns: payload