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

python
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 GitHub

praisonaiagents/model_harness/scripted.py at line 345