swarmauri.core.prompts.IPromptMatrix module
- class swarmauri.core.prompts.IPromptMatrix.IPromptMatrix[source]
Bases:
ABC
- abstract add_prompt_sequence(sequence)[source]
Add a new prompt sequence to the matrix.
- Return type:
None
- abstract get_prompt_sequence(index)[source]
Get a prompt sequence from the matrix by index.
- Return type:
List
[Optional
[str
]]
- abstract remove_prompt_sequence(index)[source]
Remove a prompt sequence from the matrix by index.
- Return type:
None
- abstract property shape: Tuple[int, int]
Get the shape (number of agents, sequence length) of the prompt matrix.