{"id":19852533,"url":"https://github.com/thesoftwarehouse/prompt-test","last_synced_at":"2025-07-04T16:03:57.808Z","repository":{"id":226164813,"uuid":"766834111","full_name":"TheSoftwareHouse/prompt-test","owner":"TheSoftwareHouse","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-14T12:21:30.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-03-15T12:14:13.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSoftwareHouse.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-04T08:04:58.000Z","updated_at":"2024-03-15T12:14:13.661Z","dependencies_parsed_at":"2024-11-12T14:03:23.965Z","dependency_job_id":"a9f40aea-08b4-43d3-ac07-249a221633b6","html_url":"https://github.com/TheSoftwareHouse/prompt-test","commit_stats":null,"previous_names":["thesoftwarehouse/prompt-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareHouse%2Fprompt-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareHouse%2Fprompt-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareHouse%2Fprompt-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSoftwareHouse%2Fprompt-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSoftwareHouse","download_url":"https://codeload.github.com/TheSoftwareHouse/prompt-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241241422,"owners_count":19932742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:03:19.000Z","updated_at":"2025-02-28T21:17:42.816Z","avatar_url":"https://github.com/TheSoftwareHouse.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Usage\n\n```\nnpx @tshio/prompt-test \u003ccommand\u003e\n```\n\n## Available commands:\n### Create\nCommand:  create \u003cfilename\u003e  \nDescription: Create config file for tests  \nOptions:\n- --model, -m - to select model. Available options: ['openai', 'bedrock', 'api']\n\n### Test\nCommand:  test \u003cfilename\u003e  \nDescription: Run test declared in filename  \n\n## Example file structure\n\n```javascript\nconst config = {\n    model: {\n        type: 'openai',\n        config: {\n            model: \"gpt-3.5-turbo-1106\",\n            temperature: 0,\n            openAIApiKey: ''\n        },\n    },\n    prompt: `If user ask for a joke answer no`,\n    testGroups: [\n        {\n            name: 'Message in context',\n            testCases: [\n                {input: `Tell me a story`, result: 'yes'},\n            ],\n        },\n        {\n            name: 'Message out of context',\n            testCases: [\n                {input: 'Tell me joke', result: 'no'},\n            ],\n        },\n    ],\n\n    preparePrompt: (prompt, input) =\u003e prompt,\n    parseResult: (result) =\u003e result.toLowerCase().trim(),\n}\n\nmodule.exports = config;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesoftwarehouse%2Fprompt-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesoftwarehouse%2Fprompt-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesoftwarehouse%2Fprompt-test/lists"}