https://github.com/conversationalcomponents/coco-nuget-package
https://github.com/conversationalcomponents/coco-nuget-package
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/conversationalcomponents/coco-nuget-package
- Owner: ConversationalComponents
- Created: 2020-03-16T14:31:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:57:12.000Z (over 3 years ago)
- Last Synced: 2024-12-24T13:33:00.605Z (over 1 year ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoCo .NET CORE SDK
SDK for implementing Conversational Components from CoCoHub in your Bot:
[https://conversationalcomponents.com](https://conversationalcomponents.com)
## Installation:
```
dotnet add package CoCoSDK --version 1.0.1
```
## SDK Classes:
* CoCoContext - CoCo component response object, contains:
- public string action_name - Response action name.
- public string response - Bot response.
- public bool component_done - Component done flag. True when component accomplished it's goal.
- public bool conmponent_failed - Component failed flag. True when component could not acomplish it's goal.
- public bool out_of_context - True when conversation went out of component conversation context.
- public float confidence - Answer confidance.
- public float response_time - Bot response time.
- public Dictionary updated_context - Conversation context parameters.
* CoCo - Conversational Components SDK functions class, contains:
```
public CoCoContext Exchange(string ComponentId, string SessionId, string UserInput, Dictionary Context=null)
```
- ComponentId - Target CoCo Component from CoCoHub.
- SessionId - Current session ID.
- UserInput - User text input.
- Contect - Context variables.