Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for AI orchestration #112

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
567 changes: 567 additions & 0 deletions Conductor/Api/IIntegrationResourceApi.cs

Large diffs are not rendered by default.

200 changes: 200 additions & 0 deletions Conductor/Api/IPromptResourceApi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
using Conductor.Client;
using Conductor.Client.Models;
using System.Collections.Generic;

namespace conductor_csharp.Api
{
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IPromptResourceApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// Delete Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns></returns>
void DeleteMessageTemplate(string name);

/// <summary>
/// Delete a tag for Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body">The list of tags to be deleted.</param>
/// <param name="name">The name of the Prompt the tag should be deleted from.</param>
/// <returns></returns>
void DeleteTagForPromptTemplate(List<Tag> body, string name);

/// <summary>
/// Get Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns>MessageTemplate</returns>
MessageTemplate GetMessageTemplate(string name);

/// <summary>
/// Get Templates
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <returns>List<MessageTemplate></returns>
List<MessageTemplate> GetMessageTemplates();

/// <summary>
/// Get tags by Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns>List<Tag></returns>
List<Tag> GetTagsForPromptTemplate(string name);

/// <summary>
/// Put a tag to Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body">The list of tags to be updated.</param>
/// <param name="name">The name of the Prompt the tag should be updated with.</param>
/// <returns></returns>
void PutTagForPromptTemplate(List<Tag> body, string name);

/// <summary>
/// Create or Update Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="description"></param>
/// <param name="name"></param>
/// <param name="models"> (optional)</param>
/// <returns></returns>
void SaveMessageTemplate(string body, string description, string name, List<string> models = null);

/// <summary>
/// Test Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <returns>string</returns>
string TestMessageTemplate(PromptTemplateTestRequest body);

#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// Delete Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task DeleteMessageTemplateAsync(string name);

/// <summary>
/// Delete a tag for Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body">The list of tags to be deleted.</param>
/// <param name="name">The name of the Prompt the tag should be deleted from.</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task DeleteTagForPromptTemplateAsync(List<Tag> body, string name);

/// <summary>
/// Get Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns>Task of MessageTemplate</returns>
System.Threading.Tasks.Task<MessageTemplate> GetMessageTemplateAsync(string name);

/// <summary>
/// Get Templates
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <returns>Task of List<MessageTemplate></returns>
System.Threading.Tasks.Task<List<MessageTemplate>> GetMessageTemplatesAsync();

/// <summary>
/// Get tags by Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="name"></param>
/// <returns>Task of List<Tag></returns>
System.Threading.Tasks.Task<List<Tag>> GetTagsForPromptTemplateAsync(string name);

/// <summary>
/// Put a tag to Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body">The list of tags to be updated.</param>
/// <param name="name">The name of the Prompt the tag should be updated with.</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task PutTagForPromptTemplateAsync(List<Tag> body, string name);

/// <summary>
/// Create or Update Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <param name="description"></param>
/// <param name="name"></param>
/// <param name="models"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task SaveMessageTemplateAsync(string body, string description, string name, List<string> models = null);

/// <summary>
/// Test Prompt Template
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="body"></param>
/// <returns>Task of string</returns>
System.Threading.Tasks.Task<string> TestMessageTemplateAsync(PromptTemplateTestRequest body);
#endregion Asynchronous Operations
}
}
Loading