Show / Hide Table of Contents

Class Knowledge

Represents a piece of knowledge with its content and origin information.

Inheritance
object
Knowledge
Implements
IEquatable<Knowledge>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VulcanAI.Knowledge
Assembly: VulcanAI.dll
Syntax
public record Knowledge : IEquatable<Knowledge>
Remarks

This record type is immutable and represents a single piece of knowledge that can be stored and retrieved from the knowledge store. The content represents the actual knowledge, while the origin provides metadata about where this knowledge came from.

Constructors

| Edit this page View Source

Knowledge(string, string)

Initializes a new instance of the Knowledge record.

Declaration
public Knowledge(string content, string origin)
Parameters
Type Name Description
string content

The content of the knowledge.

string origin

The origin of the knowledge.

Exceptions
Type Condition
ArgumentNullException

Thrown when content or origin is null.

ArgumentException

Thrown when content or origin is empty or whitespace.

Properties

| Edit this page View Source

Content

Gets the content of the knowledge.

Declaration
public string Content { get; init; }
Property Value
Type Description
string

The textual content representing the knowledge.

| Edit this page View Source

CreatedAt

Gets the timestamp when this knowledge was created.

Declaration
public DateTimeOffset CreatedAt { get; init; }
Property Value
Type Description
DateTimeOffset

The creation timestamp in UTC.

| Edit this page View Source

Origin

Gets the origin of the knowledge.

Declaration
public string Origin { get; init; }
Property Value
Type Description
string

A string describing where this knowledge came from.

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX