API Reference
Class
FluentThreadSession
Fluent wrapper for operations on a specific thread.
Inheritance
- Object
- FluentThreadSession
Usage
Explore 2 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 2
Methods
public Task InterruptAsync(String turnId, CancellationToken cancellationToken = default) #Returns:
TaskInterrupts a running turn.
Parameters
- turnId System.String
- Turn id.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public Task<ThreadInfo> RollbackAsync(Int32 turns, CancellationToken cancellationToken = default) #Returns:
Task<ThreadInfo>Rolls back the thread by a number of turns.
Parameters
- turns System.Int32
- Number of turns to roll back.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
SendAsync 2 overloads
public Task<TurnInfo> SendAsync(String text, CancellationToken cancellationToken = default) #Returns:
Task<TurnInfo>Sends a text-only turn.
Parameters
- text System.String
- Prompt text.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public Task<TurnInfo> SendAsync(String text, String? model, String? currentDirectory, String? approvalPolicy, SandboxPolicy? sandboxPolicy, CancellationToken cancellationToken = default) #Returns:
Task<TurnInfo>Sends a text-only turn with overrides.
Parameters
- text System.String
- Prompt text.
- model System.String?
- Optional model override.
- currentDirectory System.String?
- Optional working directory.
- approvalPolicy System.String?
- Optional approval policy.
- sandboxPolicy IntelligenceX.OpenAI.AppServer.SandboxPolicy?
- Optional sandbox policy.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?