Scripted Model • AI Agent SDK

ScriptedModel: A model double that returns scripted replies in order and records requests.

ScriptedModel

Defined in the scripted module.

AI Agent

A model double that returns scripted replies in order and records requests.

Pass one to an agent in place of a model name::

model = ScriptedModel([“done”]) agent = Agent(instructions=”…”, llm=model)

Constructor

ParamField Iterable[ScriptEntry]

No description available.

Methods

Source

View on GitHub

praisonaiagents/model_harness/scripted.py at line 272