ccobra.encoders

Encoder handlers for tasks and responses.

Classes

class ccobra.encoders.IdentityResponseEncoder[source]

Identity encoder. Returns the response without further encoding

static encode_response(response, task)[source]

Encodes a response to its syllogistic encoding.

Parameters
  • response (list(str)) – Any response that should be returned

  • task (list(list(str))) – Unused

Returns

The response

Return type

str