パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.2

wit_ai

FlutterおよびDart用のシンプルなクライアント、Wit.aiアプリとやり取りするため

30日間ダウンロード
17
いいね数
6
Pub ポイント
40

パッケージをインストール

flutter pub add wit_ai

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Wit.ai とのシームレスな統合を可能にする軽量な Flutter および Dart クライアントです。これにより、アプリは Wit.ai の自然言語処理機能と連携できます。ユーザー入力を Wit.ai アプリに送信し、構造化された応答を受け取るプロセスを簡素化しており、音声またはテキストベースの対話インターフェースに最適です。HTTPリクエストや認証処理に関する深い知識が不要な基本的なAPI通信をサポートしています。FlutterアプリにインテリジェントでAI駆動のインタラクションを最小限のセットアップで追加したい開発者向けに設計されています。

用途

  • 音声コマンド処理
  • アプリにおける自然言語理解
  • チャットボット統合
  • ユーザー意図認識
  • リアルタイム会話分析
  • スマートアシスタント機能

主な機能

  • シンプルな API ラッパー
  • Wit.aiとのシームレスな統合
  • テキストおよび音声入力をサポートしています
  • 最小構成が必要
  • リアルタイム応答の解析
  • きれいな、読みやすいコード構造

適している対象

  • チャットボットを開発する開発者
  • NLUにWit.aiを使用するチーム
  • 音声インタラクションが必要なFlutterアプリ
  • 会話型AIに焦点を当てたプロジェクト
  • スタートアップがAI駆動機能のプロトタイプを開発中

注意事項

  • Wit.ai アプリとアクセス トークンが必要です
  • Wit.ai の特定の NLU モデルに限定
  • オフラインサポートなし
  • 外部APIの利用可能性に依存
  • ネットワークの問題に対する追加のエラーハンドリングが必要になる可能性があります
  • NLUを超える複雑な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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。