extend • AI Agent SDK
extend: Append more replies to the script. Returns “self“ for chaining.
extend
Method
</div>
This is a method of the ScriptedModel class in the scripted module.
Append more replies to the script. Returns `self` for chaining.
Signature
def extend(script: Iterable[ScriptEntry]) -> 'ScriptedModel'Parameters
ParamField
Iterable[ScriptEntry]No description available.
Returns
ResponseField
'ScriptedModel'The result of the operation.
Exceptions
TypeError
If an entry cannot be used as a reply.
Source
View on GitHubpraisonaiagents/model_harness/scripted.py at line 345