@lenml/char-card-reader - v1.0.6
Preparing search index...
CharacterBook
Class CharacterBook
Implements
Lorebook
Index
Constructors
constructor
Properties
description
entries
extensions
name
recursive_
scanning
scan_
depth?
token_
budget?
Methods
_
keys_
fix
scan
from_
json
Constructors
constructor
new
CharacterBook
(
entries
?:
{
case_sensitive
?:
boolean
;
comment
?:
string
;
constant
?:
boolean
;
content
:
string
;
enabled
:
boolean
;
extensions
:
Record
<
string
,
any
>
;
id
?:
string
|
number
;
insertion_order
:
number
;
keys
:
string
[]
;
name
?:
string
;
position
?:
"before_char"
|
"after_char"
;
priority
?:
number
;
secondary_keys
?:
string
[]
;
selective
?:
boolean
;
use_regex
:
boolean
;
}
[]
,
)
:
CharacterBook
Parameters
entries
:
{
case_sensitive
?:
boolean
;
comment
?:
string
;
constant
?:
boolean
;
content
:
string
;
enabled
:
boolean
;
extensions
:
Record
<
string
,
any
>
;
id
?:
string
|
number
;
insertion_order
:
number
;
keys
:
string
[]
;
name
?:
string
;
position
?:
"before_char"
|
"after_char"
;
priority
?:
number
;
secondary_keys
?:
string
[]
;
selective
?:
boolean
;
use_regex
:
boolean
;
}
[]
= []
Returns
CharacterBook
Properties
description
description
:
string
= ""
entries
entries
:
{
case_sensitive
?:
boolean
;
comment
?:
string
;
constant
?:
boolean
;
content
:
string
;
enabled
:
boolean
;
extensions
:
Record
<
string
,
any
>
;
id
?:
string
|
number
;
insertion_order
:
number
;
keys
:
string
[]
;
name
?:
string
;
position
?:
"before_char"
|
"after_char"
;
priority
?:
number
;
secondary_keys
?:
string
[]
;
selective
?:
boolean
;
use_regex
:
boolean
;
}
[]
= []
extensions
extensions
:
Record
<
string
,
any
>
= {}
name
name
:
string
= "unknown"
recursive_
scanning
recursive_scanning
:
boolean
= true
Optional
scan_
depth
scan_depth
?:
number
= 10
Optional
token_
budget
token_budget
?:
number
Methods
_
keys_
fix
_keys_fix
()
:
void
Returns
void
scan
scan
(
context
:
string
,
)
:
{
case_sensitive
?:
boolean
;
comment
?:
string
;
constant
?:
boolean
;
content
:
string
;
enabled
:
boolean
;
extensions
:
Record
<
string
,
any
>
;
id
?:
string
|
number
;
insertion_order
:
number
;
keys
:
string
[]
;
name
?:
string
;
position
?:
"before_char"
|
"after_char"
;
priority
?:
number
;
secondary_keys
?:
string
[]
;
selective
?:
boolean
;
use_regex
:
boolean
;
}
[]
Parameters
context
:
string
Returns
{
case_sensitive
?:
boolean
;
comment
?:
string
;
constant
?:
boolean
;
content
:
string
;
enabled
:
boolean
;
extensions
:
Record
<
string
,
any
>
;
id
?:
string
|
number
;
insertion_order
:
number
;
keys
:
string
[]
;
name
?:
string
;
position
?:
"before_char"
|
"after_char"
;
priority
?:
number
;
secondary_keys
?:
string
[]
;
selective
?:
boolean
;
use_regex
:
boolean
;
}
[]
Static
from_
json
from_json
(
data
:
any
)
:
CharacterBook
Parameters
data
:
any
Returns
CharacterBook
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
description
entries
extensions
name
recursive_
scanning
scan_
depth
token_
budget
Methods
_
keys_
fix
scan
from_
json
@lenml/char-card-reader - v1.0.6
Loading...