Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Added text to beckn request translatiion function #33

Merged
merged 5 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions config/openai.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
{
"SUPPORTED_ACTIONS": [
{ "key": "search", "description": "Perform a search" },
{ "key": "select", "description": "the instruction declares the customer's cart (or equivalent) created by selecting objects from the catalog. This is equivalent of adding items to cart (or equivalent) by selecting them." },
{ "key": "init", "description": "Initialize a process" },
{ "key": "select", "description": "The instruction declares the customer's cart (or equivalent) created by selecting objects from the catalog. This is equivalent of adding items to cart (or equivalent) by selecting them." },
{ "key": "init", "description": "Initialize an order by providing billing and/or shipping details." },
{ "key": "confirm", "description": "Confirm an action" },
{ "key": "status", "description": "Get the status of an action" },
{ "key": "track", "description": "Track an action" },
{ "key": "cancel", "description": "Cancel an action" },
{ "key": "update", "description": "Update an action" },
{ "key": "rating", "description": "Provide a rating" },
{ "key": "support", "description": "Get support" }
]
],
"SUPPORTED_DOMAINS": [
{"key": "uei:charging", "description": "Used for energy transactions"}
],
"SCHEMA_TRANSLATION_CONTEXT": [
{ "role": "system", "content": "Your job is to identify the endpoint, method and request body from the given schema, based on the last user input and return the extracted details in the following JSON structure : \n\n {'url':'', 'method':'', 'body':''}'"},
{ "role": "system", "content": "A typical order flow should be search > select > init > confirm."},
{ "role": "system", "content": "Auto-generate uuid wherever required and should be a valid uuid such as ."},
{ "role": "system", "content": "Use the context to identify the transaction id returned in search api response and use it in subsequent api calls."},
{ "role": "system", "content": "Use the response of search request from assistant for filling transaction_id, bpp_id, bpp_uri in the context of all calls except `search`."},
{ "role": "system", "content": "Use the response from assistant to select items from the list of items provided by the assistant."}

],
"PRESETS" : {
"bap_id": "mit-ps-bap.becknprotocol.io",
"bap_uri": "https://mit-ps-bap.becknprotocol.io",
"version": "1.1.0",
"base_url": "https://mit-ps-bap-client.becknprotocol.io"
}
}
Loading
Loading