@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
description
description:
string|null
iri
iri:
string
label
label:
string
properties
properties:
CachedMemorySchemaProperty[]
CachedMemorySchemaProperty
CachedMemorySchemaProperty =
object
Properties
allowedValues
allowedValues:
string[]
dataType
dataType:
string
inferred
inferred:
boolean
keyProperty
keyProperty:
boolean
label
label:
string
path
path:
string
required
required:
boolean
ChatContext
ChatContext = {
kind:RuleEdit;ruleIri:IRI; } | {draftIri:IRI;kind:RuleCreate; } | {kind:Plan;planGraphIri:IRI; }
ChatState
ChatState =
object
Properties
chatIRI
chatIRI:
IRI
context?
optionalcontext?:ChatContext
contextTokens
contextTokens:
number
SendAgentMessage
SendAgentMessage = (
message) =>Promise<void>
Parameters
message
Returns
Promise<void>
Functions
isDraftChatContext()
isDraftChatContext(
context):boolean
Parameters
context
ChatContext | undefined
Returns
boolean
isRuleScopedChatContext()
isRuleScopedChatContext(
context):boolean
Parameters
context
ChatContext | undefined
Returns
boolean