跳到主要内容

agenthub.micro.agent

to_json

def to_json(obj, **kwargs)

Serialize an object to str format

MicroAgent Objects

class MicroAgent(Agent)

history_to_json

def history_to_json(history: ShortTermHistory, max_events: int = 20, **kwargs)

Serialize and simplify history to str format