pipecat.record module

Functions for manipulating data records.

pipecat.record.add_field(record, key, value)

Add a key-value pair to a record.

Parameters:
  • record (dict, required) – Dictionary of key-value pairs that constitute a record.
  • key (Record key, required) – Record key to be overwritten.
  • value (object) – New record value.
pipecat.record.dump(record, fobj=<open file '<stdout>', mode 'w'>)

Dump a human-readable text representation of a record to a file-like object.

Parameters:
  • record (dict, required) – Dictionary of key-value pairs to be written-out.
  • fobj (file-like object, optional)