{"schemaVersion":1,"id":"scenario","name":"Scenario","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/scenario/","officialUrl":"https://github.com/langwatch/scenario","isCatalog":false,"description":"An agent scenario testing framework with simulated conversations: it helps evaluate AI application behavior using reproducible cases.","tasks":["Test an AI agent through a simulated conversation","Run a simulated conversation with the agent and investigate scenario deviations"],"categoryIds":["quality"],"subcategoryIds":["quality.testing"],"tags":["Scenario","test","Development"],"aliases":["langwatch/scenario","scenario-testing","agentic-testing-framework"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under Apache-2.0.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"Apache-2.0 for the code; third-party components retain their own terms.","selectionGuide":{"purpose":"Test an AI agent through a simulated conversation","chooseWhen":["Test an AI agent through a simulated conversation","Run a simulated conversation with the agent and investigate scenario deviations"],"considerInstead":[],"requirements":["Implement AgentAdapter.call and install Scenario with pytest or vitest; the example specifies a simulator model."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: Apache-2.0 for the code; third-party components retain their own terms.","User simulation and judging are separate roles; a specific scenario result does not establish the quality of every agent conversation."],"faq":[{"question":"What can you use for free in Scenario?","answer":"Code and local use under Apache-2.0."},{"question":"What additional costs might arise with Scenario?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Scenario?","answer":"Apache-2.0 for the code; third-party components retain their own terms."},{"question":"How do you get started with Scenario?","answer":"Define the user situation, expected behavior, and evaluation criteria. Run a simulated conversation with the agent and investigate scenario deviations. Run the check locally and save the report in CI."},{"question":"Can I check a tool call midway through a conversation?","answer":"Yes. Script defines the order of user/agent steps and custom assertions. In the example, state.has_tool_call checks get_current_weather immediately after the agent response."},{"question":"Is a ready-made evaluation framework mandatory?","answer":"No. Scenario permits custom evaluations and other LLM evaluation frameworks. Agent connection centers on call(), and a model is selected for the simulator."}],"related":[],"sources":["https://github.com/langwatch/scenario","https://raw.githubusercontent.com/langwatch/scenario/HEAD/README.md","https://raw.githubusercontent.com/langwatch/scenario/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Test an AI agent through a simulated conversation.","inputs":["One important workflow and its expected result.","A test environment with controlled data."],"steps":["Define the user situation, expected behavior, and evaluation criteria.","Run a simulated conversation with the agent and investigate scenario deviations.","Run the check locally and save the report in CI."],"checks":["The check detects a deliberately broken workflow.","The result can be reproduced without depending on a personal session."]},"sources":["https://github.com/langwatch/scenario","https://raw.githubusercontent.com/langwatch/scenario/HEAD/README.md","https://raw.githubusercontent.com/langwatch/scenario/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Test automation","kind":"tool","pricingNote":"Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/langwatch/scenario","label":"Official source"},{"url":"https://raw.githubusercontent.com/langwatch/scenario/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/langwatch/scenario/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}