Job.GetAllAssistantBuddyJobsAsync
Description
Gets the list of all Assistant Buddy JobsList information from the connected AI Command Center.
Signature [C#]
Task<JobsList> GetAllAssistantBuddyJobsAsync();
Properties
Output
| Property | Description |
|---|---|
| Task<JobsList> | Returns all available Assistant Buddy jobs information from the AI Command Center. |
Remarks
Use GetAllAssistantBuddyJobsAsync API to return information about the list of all AssistantBuddy jobs from the connected AI Command Center.
Example
C#
public async Task GetAllAssistantBuddyJobs()
{
IControlRoomContext context = LoginControlRoom();
try
{
JobsList jobs = await context.Jobs.GetAllAssistantBuddyJobsAsync();
Console.WriteLine("JobId: " + jobs.JobId + ", Job execution status: " + jobs.ExecStatus);
}
finally
{
context.Close();
}
}
Connection helper
public IControlRoomContext LoginControlRoom()
{
string RequiredSetting(string name) => Environment.GetEnvironmentVariable(name) ?? throw new InvalidOperationException($"Set {name} before running this example.");
string serverUrl = RequiredSetting("INTELLIBUDDIES_SERVER_URL");
string userName = RequiredSetting("INTELLIBUDDIES_USERNAME");
string password = RequiredSetting("INTELLIBUDDIES_PASSWORD");
string connectionString = $"ServerUrl={serverUrl};UserName={userName};Password={password}";
IControlRoomContext context = new ControlRoomContext(connectionString);
context.Open();
return context;
}
See Get started for namespaces, configuration, and context cleanup, and SDK usage for error handling.