Skip to main content

agenthub.micro.agent

my_encoder

def my_encoder(obj)

Encodes objects as dictionaries

Arguments:

  • obj (Object): An object that will be converted

Returns:

  • dict: If the object can be converted it is returned in dict format

to_json

def to_json(obj, **kwargs)

Serialize an object to str format