Manta Developers
GitHub
Menu

@manta-eu/client/shared/agent-types

Reference for @manta-eu/client/shared/agent-types as it is on main.

Enumerations

ChatContextKind

Enumeration Members

Plan

Plan: "PLAN"

RuleCreate

RuleCreate: "RULE_CREATE"

RuleEdit

RuleEdit: "RULE_EDIT"

Type Aliases

CachedMemorySchema

CachedMemorySchema = object

Properties

defaultImportance

defaultImportance: number | null

defaultMemoryKind

defaultMemoryKind: string | null

defaultVolatility

defaultVolatility: string | null

description

description: string | null

extractionEnabled

extractionEnabled: boolean

extractionGuidance

extractionGuidance: string | null

iri

iri: string

label

label: string

properties

properties: CachedMemorySchemaProperty[]

status

status: "active" | "archived"


CachedMemorySchemaOption

CachedMemorySchemaOption = object

Properties

label

label: string | null

value

value: string


CachedMemorySchemaProperty

CachedMemorySchemaProperty = object

Properties

allowedValues

allowedValues: string[]

dataType

dataType: string

description

description: string | null

inferred

inferred: boolean

keyProperty

keyProperty: boolean

label

label: string

multiValued

multiValued: boolean

options

options: CachedMemorySchemaOption[]

path

path: string

required

required: boolean

unit

unit: string | null

valueType

valueType: string


ChatContext

ChatContext = { kind: RuleEdit; ruleIri: IRI; } | { draftIri: IRI; kind: RuleCreate; } | { kind: Plan; planGraphIri: IRI; }


ChatState

ChatState = object

Properties

chatIRI

chatIRI: IRI

context?

optional context?: ChatContext

contextTokens

contextTokens: number


SendAgentMessage

SendAgentMessage = (message) => Promise<void>

Parameters

message

ChatUIMessage

Returns

Promise<void>

Functions

isDraftChatContext()

isDraftChatContext(context): boolean

Parameters

context

ChatContext | undefined

Returns

boolean


isRuleScopedChatContext()

isRuleScopedChatContext(context): boolean

Parameters

context

ChatContext | undefined

Returns

boolean