#22 - Add Automated Docs #24

Merged
logan merged 16 commits from automated-docs-#22 into main 2024-08-17 19:48:47 -04:00
2 changed files with 7 additions and 8 deletions
Showing only changes of commit ebf48c7618 - Show all commits

View File

@@ -197,12 +197,11 @@ let eventHandler;
async submitToolOutputs(toolOutputs, runId, threadId) { async submitToolOutputs(toolOutputs, runId, threadId) {
try { try {
const stream = const stream = this.client.beta.threads.runs.submitToolOutputsStream(
this.client.beta.threads.runs.submitToolOutputsStream( threadId,
threadId, runId,
runId, { tool_outputs: toolOutputs },
{ tool_outputs: toolOutputs }, );
);
for await (const event of stream) { for await (const event of stream) {
this.emit("event", event); this.emit("event", event);
} }

View File

@@ -2,9 +2,9 @@ import {
getConfig, getConfig,
setConfig, setConfig,
} from "../../modules/mongo-wrappers/mongoConfigWrappers.mjs"; } from "../../modules/mongo-wrappers/mongoConfigWrappers.mjs";
import { ActivityType, PresenceUpdateStatus, Client } from "discord.js"; import { ActivityType, PresenceUpdateStatus } from "discord.js";
/** /**
* Control the presence or activity of the discord bot. * Control the presence or activity of the discord bot.
*/ */
class PresenceManager { class PresenceManager {