You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: abacusai/api_class/model.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -450,7 +450,7 @@ def __post_init__(self):
450
450
@dataclasses.dataclass
451
451
classSystemConnectorTool(ApiClass):
452
452
"""
453
-
System connector tool
453
+
System connector tool used to integrate chatbots with external services.
454
454
455
455
Args:
456
456
value (str): The name of the tool.
@@ -501,6 +501,7 @@ class ChatLLMTrainingConfig(TrainingConfig):
501
501
json_response_schema (str): Specifies the JSON schema that the model should adhere to if `response_format` is set to "JSON". This should be a json-formatted string where each field of the expected schema is mapped to a dictionary containing the fields 'type', 'required' and 'description'. For example - '{"sample_field": {"type": "integer", "required": true, "description": "Sample Field"}}'
502
502
mask_pii (bool): Mask PII in the prompts and uploaded documents before sending it to the LLM.
503
503
builtin_tools (List[SystemConnectorTool]): List of builtin system connector tools to use in the ChatLLM. Using builtin tools does not require enabling tool bar (enable_tool_bar flag).
504
+
mcp_server_configs (str): JSON string of MCP servers configs to use in the ChatLLM model. This should not be used with document_retrievers.
"""Get the authentication details for a given connector. For user level connectors, the service is required. For org level connectors, the application_connector_id is required.
deployment_id, deployment_token) if deployment_token else None
7551
7552
return self._call_api('getChatResponseWithBinaryData', 'POST', query_params={'deploymentToken': deployment_token, 'deploymentId': deployment_id}, data={'messages': json.dumps(messages) if (messages is not None and not isinstance(messages, str)) else messages, 'llmName': json.dumps(llm_name) if (llm_name is not None and not isinstance(llm_name, str)) else llm_name, 'numCompletionTokens': json.dumps(num_completion_tokens) if (num_completion_tokens is not None and not isinstance(num_completion_tokens, str)) else num_completion_tokens, 'systemMessage': json.dumps(system_message) if (system_message is not None and not isinstance(system_message, str)) else system_message, 'temperature': json.dumps(temperature) if (temperature is not None and not isinstance(temperature, str)) else temperature, 'filterKeyValues': json.dumps(filter_key_values) if (filter_key_values is not None and not isinstance(filter_key_values, str)) else filter_key_values, 'searchScoreCutoff': json.dumps(search_score_cutoff) if (search_score_cutoff is not None and not isinstance(search_score_cutoff, str)) else search_score_cutoff, 'chatConfig': json.dumps(chat_config) if (chat_config is not None and not isinstance(chat_config, str)) else chat_config}, files=attachments, server_override=prediction_url)
filter_key_values (dict): A dictionary mapping column names to a list of values to restrict the retrived search results.
7567
7568
search_score_cutoff (float): Cutoff for the document retriever score. Matching search results below this score will be ignored.
7568
7569
chat_config (dict): A dictionary specifiying the query chat config override.
7569
-
doc_infos (list): An optional list of documents use for the conversation. A keyword 'doc_id' is expected to be present in each document for retrieving contents from docstore."""
7570
+
doc_infos (list): An optional list of documents use for the conversation. A keyword 'doc_id' is expected to be present in each document for retrieving contents from docstore.
7571
+
execute_usercode_tool (bool): If True, will return the tool output in the response."""
7570
7572
prediction_url = self._get_prediction_endpoint(
7571
7573
deployment_id, deployment_token) if deployment_token else None
search_score_cutoff (float): Cutoff for the document retriever score. Matching search results below this score will be ignored.
363
363
chat_config (dict): A dictionary specifiying the query chat config override.
364
364
doc_infos (list): An optional list of documents use for the conversation. A keyword 'doc_id' is expected to be present in each document for retrieving contents from docstore.
365
+
execute_usercode_tool (bool): If True, will return the tool output in the response.
0 commit comments