|
| 1 | +########################################################################## |
| 2 | + |
| 3 | +### TO DO List ### |
| 4 | + |
| 5 | + |
| 6 | +# Last Release: |
| 7 | + |
| 8 | + - [Done] - Fix test for test_tools_and_functions |
| 9 | + - [Done] - Test yaml |
| 10 | + - [Done] Fix test_tools_and_functions |
| 11 | + - [Done] Change the structure of prompt just it with current setup |
| 12 | + - [Done] Add support for tools templating. |
| 13 | + - [Done] Prompts.json/Prompts.yaml structure validation. - Need to fix the structure |
| 14 | + - [Done] Changed tools structure fix that + Yaml verififcation. |
| 15 | + - [Done] Verification for anthropic only anthropic models can go cross-verify with provider |
| 16 | + - [Done] Fix the examples to show proper use case |
| 17 | + - [Done] Updates Tests accordingly |
| 18 | + - [Done] Improve README |
| 19 | + - [Done] Release |
| 20 | + |
| 21 | + |
| 22 | +# This Release: |
| 23 | + |
| 24 | + - [Done] Improve Promptix Studio |
| 25 | + - Update Tools Page in Playground and Remove logging in console |
| 26 | + - [Done] Add Examples + Readme: |
| 27 | + - get_prompt to be use not for templating just to fetch and manage static promtps |
| 28 | + - builder is used for dynamic templating |
| 29 | + - builder with api_config for model_config for the api |
| 30 | + - [Done] License Change ?? - Added a Common Clause |
| 31 | + |
| 32 | + |
| 33 | +# Next PR: |
| 34 | + |
| 35 | + - PR 1: [Done] - Improvements to functions and tools |
| 36 | + - PR 2: [In progress] - Improve DB Studio |
| 37 | + - PR 3: [Backlog] - Openai Interceptor Functionailty |
| 38 | + |
| 39 | + |
| 40 | +# Next Steps: |
| 41 | + |
| 42 | + - Imrpove docs + blogs + linkedin post. And Reach out to people. |
| 43 | + - Work on Backend to get a test API out. |
| 44 | + - API Integration in library. |
| 45 | + - Build out the very user-friendly UI for wasp app. |
| 46 | + - Deploy |
| 47 | + - Marketing |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +Go through the @README.md |
| 52 | +and I am thinking of structuring it in this format |
| 53 | + |
| 54 | + |
| 55 | +- get_prompt to be use not for templating just to fetch and manage static promtps |
| 56 | +- builder is used for dynamic templating |
| 57 | +- builder with api_config for model_config for the api |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +# Dynamic Tools |
| 64 | + |
| 65 | +{ |
| 66 | + "ServiceAgent": { |
| 67 | + "name": "ServiceAgent", |
| 68 | + "description": "A dynamic service agent prompt that adapts based on user type, communication channel, and required services", |
| 69 | + "versions": { |
| 70 | + "v1": { |
| 71 | + "is_live": true, |
| 72 | + "config": { |
| 73 | + "system_instruction": "You are a helpful service agent assisting customers with their needs.\n\n{% if new_user %}\nThis is a new user who may need additional guidance.\n{% else %}\nThis is a returning user who is familiar with our services.\n{% endif %}\n\n{% if communication_type == \"phone\" %}\nThis is a phone conversation. Use clear verbal communication.\n{% elif communication_type == \"sms\" %}\nThis is an SMS conversation. Keep responses concise.\n{% elif communication_type == \"chat\" %}\nThis is a live chat conversation. Balance tone and efficiency.\n{% endif %}\n\nService Requirements:\n{% if transportation_type %}\n- Verify pickup and destination\n- Check available transportation options\n{% endif %}\n\n{% if scheduling_required %}\n- Manage appointment scheduling\n- Send confirmation and reminders\n{% endif %}\n\n{{ tools_template }}", |
| 74 | + "temperature": 0.7, |
| 75 | + "max_tokens": 2000, |
| 76 | + "top_p": 1, |
| 77 | + "frequency_penalty": 0, |
| 78 | + "presence_penalty": 0, |
| 79 | + "tools": [] |
| 80 | + }, |
| 81 | + "metadata": { |
| 82 | + "created_at": "2024-03-19", |
| 83 | + "author": "system", |
| 84 | + "description": "Dynamic service agent template with conditional tool inclusion" |
| 85 | + }, |
| 86 | + "created_at": "2024-03-19T00:00:00.000000", |
| 87 | + "last_modified": "2024-03-19T00:00:00.000000", |
| 88 | + "schema": { |
| 89 | + "required": [ |
| 90 | + "communication_type" |
| 91 | + ], |
| 92 | + "optional": [ |
| 93 | + "new_user", |
| 94 | + "transportation_type", |
| 95 | + "scheduling_required", |
| 96 | + "vehicle_selection" |
| 97 | + ], |
| 98 | + "types": { |
| 99 | + "communication_type": [ |
| 100 | + "phone", |
| 101 | + "sms", |
| 102 | + "chat" |
| 103 | + ], |
| 104 | + "new_user": "boolean", |
| 105 | + "transportation_type": "boolean", |
| 106 | + "scheduling_required": "boolean", |
| 107 | + "vehicle_selection": "boolean" |
| 108 | + } |
| 109 | + } |
| 110 | + } |
| 111 | + }, |
| 112 | + "tools_config": { |
| 113 | + "tool_1": { |
| 114 | + "name": "VehicleTool", |
| 115 | + "description": "Tool for vehicle-based services", |
| 116 | + "parameters": { |
| 117 | + "vehicle_id": { |
| 118 | + "type": "string", |
| 119 | + "description": "Unique identifier for the vehicle" |
| 120 | + }, |
| 121 | + "status": { |
| 122 | + "type": "string", |
| 123 | + "description": "Current status of the vehicle" |
| 124 | + } |
| 125 | + } |
| 126 | + }, |
| 127 | + "tool_2": { |
| 128 | + "name": "StandardTool", |
| 129 | + "description": "Standard tool without vehicle-specific functionality", |
| 130 | + "parameters": { |
| 131 | + "user_id": { |
| 132 | + "type": "string", |
| 133 | + "description": "Unique identifier for the user" |
| 134 | + }, |
| 135 | + "session": { |
| 136 | + "type": "string", |
| 137 | + "description": "Session details" |
| 138 | + } |
| 139 | + } |
| 140 | + } |
| 141 | + }, |
| 142 | + "tools_template": "{% raw %}{% if vehicle_selection %}{% set selected_tool_names = ['default_tool'] %}{% else %}{% set selected_tool_names = ['no_vehicle_tool'] %}{% endif %}{% set combined_tools = [] %}{% for tool_name in selected_tool_names %}{% if tool_name in tools_config %}{% set combined_tools = combined_tools + [tools_config[tool_name]] %}{% endif %}{% endfor %}{% endraw %}{{ combined_tools | tojson }}" |
| 143 | + } |
| 144 | +} |
0 commit comments