concrete.context package¶
-
class
concrete.context.ttypes.
Context
(contents=None)¶ Bases:
object
A structure intended to convey context about a particularConcrete communication.Contexts are intended to be used to convey meta-communicationinformation to analytics via an RPC method. It is expected thatservices consuming or producing Contexts are coupled,delivering an agreed upon format that is capable ofbeing interpreted and processed between two particular services.Currently, it is being used to transmit hypotheses alongsideconcrete communications for AIDA.Attributes:- contents: The contents of the Context. Services should agreeupon what the expected format of the contents are(e.g. JSON, RDF) between themselves.-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-