# Scenario

[BASE product page](<https://base.akulich.dev/en/library/scenario/>) · [Resource](<https://github.com/langwatch/scenario>)

ID: scenario · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

An agent scenario testing framework with simulated conversations: it helps evaluate AI application behavior using reproducible cases\.

## Type

Test automation

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/scenario/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/scenario/#resource-access>)

Code and local use under Apache\-2\.0\.

## [Paid features and costs](<https://base.akulich.dev/en/library/scenario/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/scenario/#resource-access>)

Code and local use under Apache\-2\.0\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/scenario/#resource-tasks>)

- Test an AI agent through a simulated conversation
- Run a simulated conversation with the agent and investigate scenario deviations

## Category IDs

- quality

## Subcategory IDs

- quality\.testing

## Tags

- Scenario
- test
- Development

## Also known as

- langwatch/scenario
- scenario\-testing
- agentic\-testing\-framework

## [Selection purpose](<https://base.akulich.dev/en/library/scenario/#resource-selection>)

Test an AI agent through a simulated conversation

## [Choose this when](<https://base.akulich.dev/en/library/scenario/#resource-selection>)

- Test an AI agent through a simulated conversation
- Run a simulated conversation with the agent and investigate scenario deviations

## [Requirements](<https://base.akulich.dev/en/library/scenario/#resource-selection>)

- Implement AgentAdapter\.call and install Scenario with pytest or vitest; the example specifies a simulator model\.

## [Limitations](<https://base.akulich.dev/en/library/scenario/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/scenario/#resource-faq>)

### What can you use for free in Scenario?

Code and local use under Apache\-2\.0\.

### What additional costs might arise with Scenario?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for Scenario?

Apache\-2\.0 for the code; third\-party components retain their own terms\.

### How do you get started with Scenario?

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\.

### Can I check a tool call midway through a conversation?

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\.

### Is a ready\-made evaluation framework mandatory?

No\. Scenario permits custom evaluations and other LLM evaluation frameworks\. Agent connection centers on call\(\), and a model is selected for the simulator\.

## Sources for the selection guide

- [https://github\.com/langwatch/scenario](<https://github.com/langwatch/scenario>)
- [https://raw\.githubusercontent\.com/langwatch/scenario/HEAD/README\.md](<https://raw.githubusercontent.com/langwatch/scenario/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/langwatch/scenario/HEAD/LICENSE](<https://raw.githubusercontent.com/langwatch/scenario/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/scenario/#resource-scenario>)

Test an AI agent through a simulated conversation\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- One important workflow and its expected result\.
- A test environment with controlled data\.

## Steps

1. Define the user situation, expected behavior, and evaluation criteria\.
2. Run a simulated conversation with the agent and investigate scenario deviations\.
3. Run the check locally and save the report in CI\.

## Check your result

- The check detects a deliberately broken workflow\.
- The result can be reproduced without depending on a personal session\.

## [License](<https://base.akulich.dev/en/library/scenario/#resource-license>)

Apache\-2\.0 for the code; third\-party components retain their own terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

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\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## [Sources](<https://base.akulich.dev/en/library/scenario/#resource-sources>)

- [Official source](<https://github.com/langwatch/scenario>)
- [Official source](<https://raw.githubusercontent.com/langwatch/scenario/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/langwatch/scenario/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

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\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
