Skip to content

FakeModelRequest

Namespace AgentPrism.Testing · Assembly AgentPrism.Testing.dll

A single request that reached the fake provider.

public sealed record FakeModelRequest : IEquatable<FakeModelRequest>

objectFakeModelRequest

IEquatable<FakeModelRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public FakeModelRequest()

Whether this was a streaming call.

public bool IsStreaming { get; init; }

bool

Message history in the request.

public required IReadOnlyList<ChatMessage> Messages { get; init; }

IReadOnlyList<ChatMessage>

Options that came with the request. Also carries tool definitions.

public ChatOptions? Options { get; init; }

ChatOptions?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(FakeModelRequest? other)

other FakeModelRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(FakeModelRequest?, FakeModelRequest?)

Section titled “ operator ==(FakeModelRequest?, FakeModelRequest?)”
public static bool operator ==(FakeModelRequest? left, FakeModelRequest? right)

left FakeModelRequest?

right FakeModelRequest?

bool

operator !=(FakeModelRequest?, FakeModelRequest?)

Section titled “ operator !=(FakeModelRequest?, FakeModelRequest?)”
public static bool operator !=(FakeModelRequest? left, FakeModelRequest? right)

left FakeModelRequest?

right FakeModelRequest?

bool