asyncfunctionbuildInstruction(readonlyContext: ReadonlyContext): Promise<string> { returnawaitinjectSessionState( 'You can inject a state variable like {var_name} or an artifact ' + '{artifact.file_name} into the instruction template.', readonlyContext ); }
Injects session state values into an instruction template.
This method is intended to be used in InstructionProvider based instruction and global_instruction which are called with readonly_context.
Example: