18 lines
390 B
Go
18 lines
390 B
Go
|
|
// SPDX-License-Identifier: EUPL-1.2
|
||
|
|
|
||
|
|
package brain
|
||
|
|
|
||
|
|
import core "dappco.re/go/core"
|
||
|
|
|
||
|
|
func ExampleRememberInput() {
|
||
|
|
input := RememberInput{Content: "Core uses Result pattern", Type: "observation"}
|
||
|
|
core.Println(input.Type)
|
||
|
|
// Output: observation
|
||
|
|
}
|
||
|
|
|
||
|
|
func ExampleRecallInput() {
|
||
|
|
input := RecallInput{Query: "how does Core handle errors", TopK: 5}
|
||
|
|
core.Println(input.TopK)
|
||
|
|
// Output: 5
|
||
|
|
}
|