number_of_primers is the total number of system instruction and context fed to the model.
# number_of_primers = len(msgs) # From here!
if self.tools is not None:
tools_metadata = []
for tool in self.tools:
tools_metadata.append(tool.info)
msgs.append(
MessageBlock(role=CreatorRole.SYSTEM.value, content=TOOL_PROMPT)
)
else:
tools_metadata = None
number_of_primers = len(msgs) # To here!
number_of_primers
is the total number of system instruction and context fed to the model.