v3.0.0
watson-github-bot
released this
30 Mar 00:27
·
613 commits
to master
since this release
3.0.0 (2019-03-30)
Conversation
Conversation is no longer supported, move to Assistant instead.
This release is generated using OAS3. Many functions have params reordered
ASSISTANTV1:
message
is reordered to :
def message(self,
workspace_id,
input=None,
intents=None,
entities=None,
alternate_intents=None,
context=None,
entities=None,
intents=None,
output=None,
nodes_visited_details=None,
**kwargs):
create_workspace
reordered to
def create_workspace(self,
name=None,
description=None,
language=None,
metadata=None,
learning_opt_out=None,
system_settings=None,
intents=None,
entities=None,
dialog_nodes=None,
counterexamples=None,
**kwargs):
update_workspace
reordered to:
def update_workspace(self,
workspace_id,
name=None,
description=None,
language=None,
metadata=None,
learning_opt_out=None,
system_settings=None,
intents=None,
entities=None,
dialog_nodes=None,
counterexamples=None,
append=None,
**kwargs):
create_enity
reordered to:
def create_entity(self,
workspace_id,
entity,
description=None,
metadata=None,
fuzzy_match=None,
values=None,
**kwargs):
create_value
reordered to:
def create_value(self,
workspace_id,
entity,
value,
metadata=None,
value_type=None,
synonyms=None,
patterns=None,
**kwargs):
update_value
reordered to:
def update_value(self,
workspace_id,
entity,
value,
new_value=None,
new_metadata=None,
new_value_type=None,
new_synonyms=None,
new_patterns=None,
**kwargs):
create_dialog_node
reordered to:
def create_dialog_node(self,
workspace_id,
dialog_node,
description=None,
conditions=None,
parent=None,
previous_sibling=None,
output=None,
context=None,
metadata=None,
next_step=None,
title=None,
node_type=None,
event_name=None,
variable=None,
actions=None,
digress_in=None,
digress_out=None,
digress_out_slots=None,
user_label=None,
**kwargs):
update_dialog_node
reordered to:
def update_dialog_node(self,
workspace_id,
dialog_node,
new_dialog_node=None,
new_description=None,
new_conditions=None,
new_parent=None,
new_previous_sibling=None,
new_output=None,
new_context=None,
new_metadata=None,
new_next_step=None,
new_title=None,
new_node_type=None,
new_event_name=None,
new_variable=None,
new_actions=None,
new_digress_in=None,
new_digress_out=None,
new_digress_out_slots=None,
new_user_label=None,
**kwargs):
Models:
InputData
renamed to MessageInput
COMPARE AND COMPLY V1:
convert_to_html
reordered to:
def convert_to_html(self,
file,
filename=None,
file_content_type=None,
model=None,
**kwargs):
classify_elements
doesn’t havefilename
def classify_elements(self,
file,
file_content_type=None,
model=None,
**kwargs):
extract_tables
reordered to:
def extract_tables(self, file, file_content_type=None, model=None, **kwargs):
compare_documents
reordered to:
def compare_documents(self,
file_1,
file_2,
file_1_content_type=None,
file_2_content_type=None,
file_1_label=None,
file_2_label=None,
model=None,
**kwargs):
delete_feedback
reordered to:
def delete_feedback(self, feedback_id, model=None, **kwargs):
get_feedback
reordered to:
def get_feedback(self, feedback_id, model=None, **kwargs):
create_batch
reordered to:
def create_batch(self,
function,
input_credentials_file,
input_bucket_location,
input_bucket_name,
output_credentials_file,
output_bucket_location,
output_bucket_name,
model=None,
**kwargs):
update_batch
reordered to:
def update_batch(self, batch_id, action, model=None, **kwargs):
DISCOVERY V1:
test_configuration_in_environment
reordered to:
def test_configuration_in_environment(self,
environment_id,
configuration=None,
file=None,
filename=None,
file_content_type=None,
metadata=None,
step=None,
configuration_i
add_document
reordered to:
def add_document(self,
environment_id,
collection_id,
file=None,
filename=None,
file_content_type=None,
metadata=None,
**kwargs):
update_document
reordered to:
def update_document(self,
environment_id,
collection_id,
document_id,
file=None,
filename=None,
file_content_type=None,
metadata=None,
**kwargs):
federated_query
reordered to:
def federated_query(self,
environment_id,
filter=None,
query=None,
natural_language_query=None,
passages=None,
aggregation=None,
count=None,
return_fields=None,
offset=None,
sort=None,
highlight=None,
passages_fields=None,
passages_count=None,
passages_characters=None,
deduplicate=None,
deduplicate_field=None,
collection_ids=None,
similar=None,
similar_document_ids=None,
similar_fields=None,
bias=None,
logging_opt_out=None,
**kwargs):
query
reordered to:
def query(self,
environment_id,
collection_id,
filter=None,
query=None,
natural_language_query=None,
passages=None,
aggregation=None,
count=None,
return_fields=None,
offset=None,
sort=None,
highlight=None,
passages_fields=None,
passages_count=None,
passages_characters=None,
deduplicate=None,
deduplicate_field=None,
collection_ids=None,
similar=None,
similar_document_ids=None,
similar_fields=None,
bias=None,
logging_opt_out=None,
**kwargs):
LANGUAGE TRANSLATOR V3:
create_model
reordered to:
def create_model(self,
base_model_id,
forced_glossary=None,
parallel_corpus=None,
name=None,
**kwargs):
NATURAL LANGUAGE CLASSIFIER:
create_classifier
reordered to:
def create_classifier(self, metadata, training_data, **kwargs):
PERSONALITY INSIGHTS:
- Profile has another required field,
accept
def profile(self,
content,
accept,
content_language=None,
accept_language=None,
raw_scores=None,
csv_headers=None,
consumption_preferences=None,
content_type=None,
**kwargs):
SPEECH TO TEXT:
recognize
reordered to:
def recognize(self,
audio,
model=None,
language_customization_id=None,
acoustic_customization_id=None,
base_model_version=None,
customization_weight=None,
inactivity_timeout=None,
keywords=None,
keywords_threshold=None,
max_alternatives=None,
word_alternatives_threshold=None,
word_confidence=None,
timestamps=None,
profanity_filter=None,
smart_formatting=None,
speaker_labels=None,
customization_id=None,
grammar_name=None,
redaction=None,
content_type=None,
**kwargs):
create_job
reordered to:
def create_job(self,
audio,
model=None,
callback_url=None,
events=None,
user_token=None,
results_ttl=None,
language_customization_id=None,
acoustic_customization_id=None,
base_model_version=None,
customization_weight=None,
inactivity_timeout=None,
keywords=None,
keywords_threshold=None,
max_alternatives=None,
word_alternatives_threshold=None,
word_confidence=None,
timestamps=None,
profanity_filter=None,
smart_formatting=None,
speaker_labels=None,
customization_id=None,
grammar_name=None,
redaction=None,
content_type=None,
**kwargs):
add_audio
reordered to:
def add_audio(self,
customization_id,
audio_name,
audio_resource,
contained_content_type=None,
allow_overwrite=None,
content_type=None,
**kwargs):
TEXT TO SPEECH:
synthesize
reordered to:
def synthesize(self,
text,
voice=None,
customization_id=None,
accept=None,
**kwargs):
TONE ANALYZER:
tone
reordered to:
def tone(self,
tone_input,
sentences=None,
tones=None,
content_language=None,
accept_language=None,
content_type=None,
**kwargs):
VISUAL RECOGNITION:
classify
reordered to:
def classify(self,
images_file=None,
images_filename=None,
images_file_content_type=None,
url=None,
threshold=None,
owners=None,
classifier_ids=None,
accept_language=None,
**kwargs):
detect_faces
reordered to:
def detect_faces(self,
images_file=None,
images_filename=None,
images_file_content_type=None,
url=None,
accept_language=None,
**kwargs):
create_classifier
takes a dictionary of positive examples
def create_classifier(self,
name,
positive_examples,
negative_examples=None,
negative_examples_filename=None,
**kwargs):
update_classifier
takes a dictionary of positive examples
def update_classifier(self,
classifier_id,
positive_examples={},
negative_examples=None,
negative_examples_filename=None,
**kwargs):
Features
- common: Move common to ibm_watson (90e3dd8)
BREAKING CHANGES
- This is a breaking change.