Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
default.go822 B
package asker import ( "context" "github.com/Southclaws/fault" "github.com/Southclaws/fault/fctx" "github.com/Southclaws/opt" "github.com/rs/xid" "github.com/Southclaws/storyden/app/services/semdex" "github.com/Southclaws/storyden/internal/infrastructure/ai" ) // defaultAsker uses whatever prompter is available and performs RAG prompting. type defaultAsker struct { searcher semdex.Searcher prompter ai.Prompter } func (a *defaultAsker) Ask(ctx context.Context, q string, parent opt.Optional[xid.ID]) (semdex.AskResponseIterator, error) { t, err := buildContextPrompt(ctx, a.searcher, q) if err != nil { return nil, fault.Wrap(err, fctx.With(ctx)) } iter, err := a.prompter.PromptStream(ctx, t) if err != nil { return nil, fault.Wrap(err, fctx.With(ctx)) } return streamExtractor(iter), nil }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server