Skip to content

Latest commit

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Introduction

{% hint style="danger" %} Heads up: Version 0.1 will soon be deprecated in favor of v0.2. Please review the new product documentation so you can plan your migration to it as soon it's generally available. {% endhint %}

NLU for humans.

Whitehead is a simple and elegant API for common natural language tasks. You can use them to build games, chatbots, and novel conversational interfaces. Features include:

  • Freeform chit-chat with users
  • Generating natural-sounding speech
  • Understanding user intent and extracting information
  • Among many others...

Wonderfully simple and tasteful libraries

Whitehead libraries have been designed for human beings. They are simple and high-level so you can focus on the design and "feel" of your applications rather than the technical details. You can see for yourself in these examples!

{% tabs %} {% tab title="node.js" %} {% code title="hello.js" %}

/* Assuming you already have a `client` instance ready. *//* Example 1: Get a response to a chitchat message */// > See API reference for a list of all of our APIsconstinput="It is a good day today";consthistory=[{agent: "user",said: "Hello"},{agent: "bot",said: "Hi there!"}];constresult=awaitclient.api.chitchat({ input, history });/* {reply: "It's been nice for a few days now."}*/// --------------------------------------------

{% endcode %} {% endtab %}

{% tab title="python" %} {% code title="hello.py" %}

# Assuming you already have a `client` instance ready.fromwhitehead_sdk.api.input.turnimportTurn, Agent# Example 1: Get a response to a chitchat message# > See API reference for a list of all APIsresult=client.chitchat.execute( input="It is a good day today", history=[
Turn(agent=Agent.USER, said="Hello"),
Turn(agent=Agent.BOT, said="Hi there")
]
)
# {# "reply": "It's been beautiful for a few days now."# }# ----------------------------------------------------

{% endcode %} {% endtab %} {% endtabs %}

About

Documentation for the Whitehead AI platform

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors