concrete.context package

class concrete.context.ttypes.Context(contents=None)

Bases: object


A structure intended to convey context about a particular
Concrete communication.

Contexts are intended to be used to convey meta-communication
information to analytics via an RPC method. It is expected that
services consuming or producing Contexts are coupled,
delivering an agreed upon format that is capable of
being interpreted and processed between two particular services.

Currently, it is being used to transmit hypotheses alongside
concrete communications for AIDA.

Attributes:
- contents: The contents of the Context. Services should agree
upon what the expected format of the contents are
(e.g. JSON, RDF) between themselves.

read(iprot)
validate()
write(oprot)