From 0fdebe46019547c21a90408f7e6b5571bcf91870 Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Mon, 20 Jan 2025 15:22:23 -0500 Subject: [PATCH] added back wxflow.toml for chat-app Signed-off-by: Guangya Liu --- examples/chat-app/README.md | 2 +- examples/chat-app/wxflows/wxflows.toml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 examples/chat-app/wxflows/wxflows.toml diff --git a/examples/chat-app/README.md b/examples/chat-app/README.md index 7c866bd..de6526e 100644 --- a/examples/chat-app/README.md +++ b/examples/chat-app/README.md @@ -42,7 +42,7 @@ cd wxflows There's already a wxflows project for you set up this repository with the following values: -- **Defines an endpoint** `api/chat-app-example` for the project. +- **Defines an endpoint** `api/examples-chat-app` for the project. - **Imports `google_books` tool** with a description for searching books and specifying fields `books|book`. - **Imports `wikipedia` tool** with a description for Wikipedia searches and specifying fields `search|page`. diff --git a/examples/chat-app/wxflows/wxflows.toml b/examples/chat-app/wxflows/wxflows.toml new file mode 100644 index 0000000..e150114 --- /dev/null +++ b/examples/chat-app/wxflows/wxflows.toml @@ -0,0 +1,22 @@ +[wxflows.deployment] +endpoint_name = "api/examples-chat-app" +# Example flows. +flows=" // You should add your flows here " +ai_engine = "WATSONX" +# Endpoint imports provide customized extensions for your flows +[[wxflows.deployment.endpoint.imports]] +# import 1 +name = "google_books" +package = "https://raw.githubusercontent.com/IBM/wxflows/refs/heads/main/tools/google_books.zip" +[[wxflows.deployment.endpoint.imports.tools]] # import 1: tool description 1 +name = "google_books" +description = """Retrieve information from Google Books. Find books by search string, for example to search for Daniel Keyes 'Flowers for Algernon' use q: 'intitle:flowers+inauthor:keyes'""" +fields = "books|book" +[[wxflows.deployment.endpoint.imports]] +# import 2 +name = "wikipedia" +package = "https://raw.githubusercontent.com/IBM/wxflows/refs/heads/main/tools/wikipedia.zip" +[[wxflows.deployment.endpoint.imports.tools]] # import 2: tool description 1 +name = "wikipedia" +description = """Retrieve information from Wikipedia.""" +fields = "search|page"