limitinteger30كم عدد الذين سيرجعون
const sessions = await api.agents.list({ limit: 50 });
for (const session of sessions) {
console.log(session.title);
}sessions = api.agents.list(limit=50)
for session in sessions:
print(session.get("title"))ما تحمله هنا دورة
The identifier, the title taken from its first message, the model, when it was last active, and its usage. Enough for a sidebar; the conversation itself comes from get() and getHistory().
فقط العوامل مع الذاكرة موجودة فيها
"مُرّة بدون ذاكرة: الحقيقة لا تترك شيئاً وراء
فهو ليس مسجلا، وبالتالي لا يمكن إدراجه أو إعادة فتحه أو التذكير به، وهذا هو الشكل الطبيعي لمهمة واحدة - والسبب في أن الحساب يمكن أن ينظر إلى الحساب فارغا بعد الكثير من العمل.
قائمة بالمحادثة
const sessions = await api.agents.list();
// Open the most recent one
const [latest] = sessions;
const agent = api.agents.get(latest.id, { machine: pc });
const messages = await agent.getHistory();sessions = api.agents.list()
# Open the most recent one
latest = sessions[0]
agent = api.agents.get(latest["id"], machine=pc)
messages = agent.get_history()نبذ واحد
agent.destroy() ويُرفع رفض الحساب بدلا من أن يُبتلع، وبالتالي لا يُبلغ عن انتهاء جلسة ما زالت قائمة.