Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Creat

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-session-token", @"Create session token
var command = new Command(commandName ?? @"create-session-token", @"Create session token
Creates a temporary session token for client-side use. The session token is valid for 1 hour.");
command.Options.Add(ClientLabel);
command.Options.Add(PersonaConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-avatar", @"Create avatar
var command = new Command(commandName ?? @"create-avatar", @"Create avatar
Create a new custom avatar from an image.");
command.Options.Add(DisplayName);
command.Options.Add(ImageFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class AvatarsDeleteAvatarCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-avatar", @"Delete avatar
var command = new Command(commandName ?? @"delete-avatar", @"Delete avatar
Delete an avatar by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-avatar", @"Get avatar
var command = new Command(commandName ?? @"get-avatar", @"Get avatar
Returns an avatar by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListA

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-avatars", @"List avatars
var command = new Command(commandName ?? @"list-avatars", @"List avatars
Returns a paginated list of all avatars.");
command.Options.Add(Page);
command.Options.Add(PerPage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Avata

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-avatar", @"Update avatar
var command = new Command(commandName ?? @"update-avatar", @"Update avatar
Update an avatar by ID (only display name can be updated).");
command.Arguments.Add(Id);
command.Options.Add(DisplayName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-knowledge-group", @"Create knowledge group
var command = new Command(commandName ?? @"create-knowledge-group", @"Create knowledge group
Create a new knowledge group for RAG.");
command.Arguments.Add(NameOption);
command.Options.Add(DescriptionOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class KnowledgeDeleteKnowledgeDocumentCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-knowledge-document", @"Delete knowledge document
var command = new Command(commandName ?? @"delete-knowledge-document", @"Delete knowledge document
Delete a document from a knowledge group.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class KnowledgeDeleteKnowledgeGroupCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-knowledge-group", @"Delete knowledge group
var command = new Command(commandName ?? @"delete-knowledge-group", @"Delete knowledge group
Delete a knowledge group.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-knowledge-document", @"Get knowledge document
var command = new Command(commandName ?? @"get-knowledge-document", @"Get knowledge document
Get a single document by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.GetKn

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-knowledge-document-download", @"Get knowledge document download
var command = new Command(commandName ?? @"get-knowledge-document-download", @"Get knowledge document download
Get a presigned download URL for a knowledge document.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-knowledge-group", @"Get knowledge group
var command = new Command(commandName ?? @"get-knowledge-group", @"Get knowledge group
Get a single knowledge group by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-knowledge-group-documents", @"List knowledge group documents
var command = new Command(commandName ?? @"list-knowledge-group-documents", @"List knowledge group documents
Get all documents in a knowledge group.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListK

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-knowledge-groups", @"List knowledge groups
var command = new Command(commandName ?? @"list-knowledge-groups", @"List knowledge groups
Returns a list of all knowledge groups for the organization.");


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Searc

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"search-knowledge-group", @"Search knowledge group
var command = new Command(commandName ?? @"search-knowledge-group", @"Search knowledge group
Search for similar content in a knowledge group using vector similarity.");
command.Arguments.Add(Id);
command.Options.Add(Query);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-knowledge-document", @"Update knowledge document
var command = new Command(commandName ?? @"update-knowledge-document", @"Update knowledge document
Update a document (rename).");
command.Arguments.Add(Id);
command.Options.Add(Filename);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-knowledge-group", @"Update knowledge group
var command = new Command(commandName ?? @"update-knowledge-group", @"Update knowledge group
Update a knowledge group.");
command.Arguments.Add(Id);
command.Options.Add(NameOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Knowl

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"upload-knowledge-group-document", @"Upload knowledge group document
var command = new Command(commandName ?? @"upload-knowledge-group-document", @"Upload knowledge group document
Upload a document to a knowledge group (PDF, TXT, MD, DOCX, CSV up to 50MB).");
command.Arguments.Add(Id);
command.Options.Add(File);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/Anam.CLI/Commands/LLMsCreateLlmCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-llm", @"Create LLM
var command = new Command(commandName ?? @"create-llm", @"Create LLM
Create a new LLM configuration.");
command.Options.Add(DisplayName);
command.Options.Add(DescriptionOption);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/Anam.CLI/Commands/LLMsDeleteLlmCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class LLMsDeleteLlmCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-llm", @"Delete LLM
var command = new Command(commandName ?? @"delete-llm", @"Delete LLM
Delete an LLM configuration.");
command.Arguments.Add(Id);

Expand Down
4 changes: 2 additions & 2 deletions src/cli/Anam.CLI/Commands/LLMsGetLlmCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-llm", @"Get LLM
var command = new Command(commandName ?? @"get-llm", @"Get LLM
Get a specific LLM by ID.");
command.Arguments.Add(Id);

Expand Down
4 changes: 2 additions & 2 deletions src/cli/Anam.CLI/Commands/LLMsListLlmsCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListL

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-llms", @"List LLMs
var command = new Command(commandName ?? @"list-llms", @"List LLMs
Returns a list of all LLMs available to the organization.");
command.Options.Add(Page);
command.Options.Add(PerPage);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/Anam.CLI/Commands/LLMsUpdateLlmCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Llm v

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-llm", @"Update LLM
var command = new Command(commandName ?? @"update-llm", @"Update LLM
Update an LLM configuration.");
command.Arguments.Add(Id);
command.Options.Add(DisplayName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-persona", @"Create persona
var command = new Command(commandName ?? @"create-persona", @"Create persona
Create a new persona with avatar, voice, LLM, and system prompt configuration.");
command.Options.Add(PersonaConfigOptionSetOptions.Id);
command.Options.Add(PersonaConfigOptionSetOptions.NameOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class PersonasDeletePersonaCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"delete-persona", @"Delete persona
var command = new Command(commandName ?? @"delete-persona", @"Delete persona
Delete a persona by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-persona", @"Get persona
var command = new Command(commandName ?? @"get-persona", @"Get persona
Returns a persona by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListP

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-personas", @"List personas
var command = new Command(commandName ?? @"list-personas", @"List personas
Returns a paginated list of all personas.");
command.Options.Add(Page);
command.Options.Add(PerPage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Perso

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"update-persona", @"Update persona
var command = new Command(commandName ?? @"update-persona", @"Update persona
Update a persona by ID.");
command.Arguments.Add(Id); command.Options.Add(PersonaConfigOptionSetOptions.Id);
command.Options.Add(PersonaConfigOptionSetOptions.NameOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Sessi

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-session", @"Get session
var command = new Command(commandName ?? @"get-session", @"Get session
Returns a session by ID.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.GetSe

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-session-recording", @"Get session recording
var command = new Command(commandName ?? @"get-session-recording", @"Get session recording
Returns a presigned URL to download the session recording.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Sessi

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-session-transcript", @"Get session transcript
var command = new Command(commandName ?? @"get-session-transcript", @"Get session transcript
Returns the conversation transcript for a session.");
command.Arguments.Add(Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.ListS

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"list-sessions", @"List sessions
var command = new Command(commandName ?? @"list-sessions", @"List sessions
Returns a paginated list of all sessions for the organization.");
command.Options.Add(Page);
command.Options.Add(PerPage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::Anam.Share

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-share-link", @"Create share link
var command = new Command(commandName ?? @"create-share-link", @"Create share link
Create a new share link.");
command.Options.Add(PersonaId);
command.Options.Add(ExpiresInHours);
Expand Down
Loading
Loading