MCPcopy Create free account
hub / github.com/ChenWu98/agent-attack / encode

Method encode

agent_attack/util/interfaces.py:23–24  ·  view source on GitHub ↗
(self, inputs: str, add_special_tokens: bool = False)

Source from the content-addressed store, hash-verified

21 ...
22
23 def encode(self, inputs: str, add_special_tokens: bool = False) -> List[int]:
24 ...
25
26 def decode(self, output_ids: Union[torch.Tensor, Sequence[int]], **kwargs) -> str:
27 ...

Callers 2

__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected