MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / getAssistantById

Function getAssistantById

src/store/assistant.ts:13–16  ·  view source on GitHub ↗
(id: Id)

Source from the content-addressed store, hash-verified

11});
12
13export const getAssistantById = (id: Id) => {
14 const assistant = assistantList.find((assistant) => assistant.id === id);
15 return assistant || (first(assistantList) as Assistant);
16};
17
18export const getPromptGeneratorOfAssistant = (assistant: Assistant) => {
19 return assistant.getPrompt;

Callers 2

getPromptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected