Skip to content

Commit

Permalink
added back wxflow.toml for chat-app
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 committed Jan 20, 2025
1 parent c98055a commit 90cb55d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
22 changes: 22 additions & 0 deletions examples/chat-app/wxflows/wxflows.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 90cb55d

Please sign in to comment.