1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 微软人工智能和对话平台--知识商城体验

微软人工智能和对话平台--知识商城体验

时间:2020-11-05 13:55:27

相关推荐

微软人工智能和对话平台--知识商城体验

前言

微软最新发布 知识商城了!这是一个人工智能和对话平台应用的场景。他可以让开发者带着想法 出做天马行空的创造性工作!

你只需要稍微动动手,如:拖拽板块,就可以做到极致对答、代码自动生成!

想象一下,人工智能帮你写程序!code review 一下,你的机器人就可以增加新技能!太酷了!我们程序员是不是就要失业了!

实测

1、输入网址:knowledge.store,进入为微软登录界面进行登录

2、登录完成,进入主页面,选择画圈圈地方进入

3、进入程序控制面板

4、新建组织

5、选择创建一个新的botlet

6、填写相关信息,选择done

7、选择新创建QA,在面板中敲入如下代码,并保存

# =================================================================

# 2. Communicating with the User

# =================================================================

# Welcome to the Semantic Composition Language (SCL) Editor. The next

# few lessons will provide an overview of the various commands

# available, how to use them, and what they do.

# =================================================================

# SAY

#

# Use the SAY command to show text to the user. It behaves the same

# as the print statement in python

#

# Syntax :

# SAY <text> [, ssml = <SSML Markup>]

# =================================================================

SAY "This is a message"

# =================================================================

# IMAGE

#

# Use the IMAGE command to show an image to the user.

#

# Syntax:

# IMAGE <URL> [, alt = <alternate image text>]

# =================================================================

IMAGE "https://hydra-//thumb/e/ec/Dorado-streets2.jpg/350px-Dorado-streets2.jpg"

# =================================================================

# GET_INPUT, USER_INPUT

#

# Use the GET_INPUT command to solicit a text input from the user.

# This is a blocking command, meaning that the system will NOT

# execute other commands until the user has responded with text

#

# The response is placed in a system variable called USER_INPUT

#

# Syntax:

# GET_INPUT [STORE <variable>]

# USER_INPUT

# =================================================================

SAY "Waiting for input"

GET_INPUT

SAY "The user returned ${USER_INPUT}"

# =================================================================

# CHOICES, USER_INPUT

#

# Use the CHOICES command to show the user an interactive menu.

#

#

# The response is placed in a system variable called USER_INPUT

#

# Syntax:

# CHOICES [title=<title>] [, image=<image_url>]

# [text=<button text>] [, icon=<button icon>] [, id=<button id>]

# USER_INPUT

# =================================================================

CHOICES title = "Title", image = "https://hydra-//thumb/e/ec/Dorado-streets2.jpg/350px-Dorado-streets2.jpg"

id = "choice_1", text = "Option 1", icon = "/icons/graphicloads/100-flat/256/home-icon.png"

id = "choice_2", text = "Option 2"

id = "choice_3", text = "Option 3"

SAY "The user returned ${USER_INPUT}"

# =================================================================

# To get a location from the user, use the following code. It uses

# commands that will be discussed in later lessons

# =================================================================

CALL "system.utility.get_user_location", "resolve", prompt = "Please provide your location for Tutorial 2"

SAY CALL_RESULT.result

原文:/linbin524/p/8040052.html

.NET社区新闻,深度好文,欢迎访问公众号文章汇总

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。