A Toolkit to work with components in rasa
Installation (We recommend using a virtualenv):
pip install coco-rasa
Setup:
Setting up CoCo actions
in actions.py
from coco_rasa import GenericCoCoAction
class OneLiners(GenericCoCoAction):
# component name is the component_id from CoCo marketplace
component_name = "generic_oneliners_vp3"
class Namer(GenericCoCoAction):
component_name = "namer_vp3"
in domain.yml
actions:
- generic_oneliners_vp3
- namer_vp3
to enable multi-turn capabilities for CoCo actions
in your rasa bot config.yml
policy:
- name: "coco_rasa.CoCoContextPolicy"
triggering actions (and CoCo actions)
- MappingPolicy
# config.yml:
policies:
- name: MappingPolicy
# domain.yml
intents:
- greet:
triggers: namer_vp3
- someotherintent
- Fallback policy
# config.yaml
policies:
- name: "FallbackPolicy"
nlu_threshold: 0.4
core_threshold: 0.3
fallback_action_name: "generic_oneliners_vp3"
using context transfer
in domain.yml declare the keys you want the use(from CoCo context transfer protocol). data will be transferred automatically between components.
slots:
user.firstName:
type: text
user.lastName:
type: text
Metadata
Release files for coco-rasa 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coco-rasa-0.0.3.tar.gz | 4.6 kB | Without provenance | Details for coco-rasa-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coco_rasa-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for coco_rasa-0.0.3-py3-none-any.whl |
Total release size: 9.5 kB
Release files / coco-rasa-0.0.3.tar.gz
| Download URL | coco-rasa-0.0.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcf6e552a695fa93dce8c5b8369a9ef3797a521cef424d4619d513c05f1ad359
|
|
BLAKE2b-256 checksum How to use checksums |
2a5d63534055552738a93d9e74b7d71221400d959a2e82eb4e1464e4007db37f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2
|
Release files / coco_rasa-0.0.3-py3-none-any.whl
| Download URL | coco_rasa-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
618c61298e20ea0c807a926d265b57416674ed0001e1e927a500edf5d4bb154c
|
|
BLAKE2b-256 checksum How to use checksums |
e019efbfd978bb5e9d7b813231fc71454b99d02d8c9dd6877fb168845f5539c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2
|
Security for coco-rasa 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.