API Reference
Class
FluentSession
Fluent wrapper around AppServerClient.
Inheritance
- Object
- FluentSession
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 6
- Method AppServerFluent.StartAsync
- Method FluentLoginSession.WaitAsync
- Property FluentLoginSession.Session
- Method FluentSession.InitializeAsync
- Method FluentSession.LoginApiKeyAsync
- Property FluentThreadSession.Session
Methods
public Task<AccountInfo> GetAccountAsync(CancellationToken cancellationToken = default) #Returns:
Task<AccountInfo>Retrieves account information.
Parameters
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<FluentSession> InitializeAsync(ClientInfo clientInfo, CancellationToken cancellationToken = default) #Returns:
Task<FluentSession>Initializes the session with client metadata.
Parameters
- clientInfo IntelligenceX.OpenAI.AppServer.ClientInfo
- Client identity information.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public Task<ThreadListResult> ListThreadsAsync(String? cursor = null, Int32? limit = null, String? sortKey = null, IReadOnlyList<String>? modelProviders = null, CancellationToken cancellationToken = default) #Returns:
Task<ThreadListResult>Lists threads with optional filters.
Parameters
- cursor System.String? = null
- Pagination cursor.
- limit System.Int32? = null
- Maximum number of items.
- sortKey System.String? = null
- Sort key.
- modelProviders System.Collections.Generic.IReadOnlyList<System.String>? = null
- Optional model provider filter.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<FluentSession> LoginApiKeyAsync(String apiKey, CancellationToken cancellationToken = default) #Returns:
Task<FluentSession>Logs in using an API key.
Parameters
- apiKey System.String
- API key.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<FluentLoginSession> LoginChatGptAsync(CancellationToken cancellationToken = default) #Returns:
Task<FluentLoginSession>Starts a ChatGPT login flow.
Parameters
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public Task LogoutAsync(CancellationToken cancellationToken = default) #Returns:
TaskLogs out of the current session.
Parameters
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<FluentThreadSession> ResumeThreadAsync(String threadId, CancellationToken cancellationToken = default) #Returns:
Task<FluentThreadSession>Resumes an existing thread.
Parameters
- threadId System.String
- Thread id.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<FluentThreadSession> StartThreadAsync(String model, String? currentDirectory = null, String? approvalPolicy = null, String? sandbox = null, CancellationToken cancellationToken = default) #Returns:
Task<FluentThreadSession>Starts a new thread and returns a fluent thread session.
Parameters
- model System.String
- Model name.
- currentDirectory System.String? = null
- Optional working directory.
- approvalPolicy System.String? = null
- Optional approval policy.
- sandbox System.String? = null
- Optional sandbox mode.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?