搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.2

wit_ai

一個簡單的 Flutter 和 Dart 客戶端,用於與您的 Wit.ai 應用程式通訊

近 30 天下載
17
喜歡數
6
Pub 分數
40

安裝套件

flutter pub add wit_ai

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個輕量級的 Flutter 和 Dart 客戶端,可實現與 Wit.ai 的無縫整合,讓應用程式能夠使用 Wit.ai 的自然語言處理功能。它簡化了將使用者輸入傳送至 Wit.ai 應用並接收結構化回應的過程,非常適合語音或文字互動式對話介面。該套件支援基本的 API 通訊,無需深入了解 HTTP 請求或驗證處理。專為希望以最少設定將智慧、AI 驅動的互動加入其 Flutter 應用程式的開發者設計。

適用情境

  • 語音命令處理
  • 應用中的自然語言理解
  • 聊天機器人整合
  • 用戶意圖識別
  • 即時對話分析
  • 智慧助理功能

主要特色

  • 簡單 API 包裝器
  • 無縫整合 Wit.ai
  • 支援文字和語音輸入
  • 最小配置要求
  • 即時回應解析
  • 乾淨、可讀的程式碼結構

適合對象

  • 開發聊天機器人
  • 使用 Wit.ai 進行自然語言理解的團隊
  • 需要語音互動的Flutter應用
  • 專注於對話式人工智慧的專案
  • 新創公司正在開發人工智慧功能的原型

使用建議

  • 需要一個 Wit.ai 應用和存取權杖
  • 僅限 Wit.ai 的特定 NLU 模型
  • 無離線支援
  • 依賴外部API的可用性
  • 可能需要額外的錯誤處理來應對網路問題
  • 不適用於超出自然語言理解的複雜AI工作流程

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

wit_ai

This is a simple client that makes API requests to your Wit.ai app.

Wit.ai is an NLP tool for developers. It makes it easy for developers to build applications and devices that you can talk or text to.

Currently this package supports the "message" feature of Wit.ai. If you would like more features, please open a ticket with the enhancement label.

Usage

Using this client is very simple. Start by importing the package into your class

import 'package:wit_ai/wit_ai.dart';

Next, create a Wit object with your access token:

final wit = Wit(accessToken: ACCESS_TOKEN_HERE);

NOTE: The access token can be found in the Settings tab on your wit.ai console. It should be titled Client Access Token.

message()

The message method takes a String input to send to your Wit app. It returns a dynamic object.

final wit = Wit(accessToken: ACCESS_TOKEN_HERE); // New Wit object

dynamic response = await wit.message("Hello");

The message method returns a JSON decoded response, so you can call a specific key directly without a hassle.

Example of a response from Wit:

{
    "msg_id" : "dd526480-5784-43fa-a0f9-a3587fadc95d",
    "_text" : "temperature",
    "stats" : {
      "total_time" : 185
    },
    "entities" : {
      "intent" : [ {
        "confidence" : 0.6081958281101719,
        "value" : "temperature_get"
      }, {
        "confidence" : 0.3918041718898281,
        "value" : "temperature_set"
      } ]
    }
  }

Getting entities from the response:

print(response['entities']);

Flutter

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。