Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMCPTools ¶ added in v0.2.4
ConvertToLLMTools converts mcp.Tool to llm.Tool format
func GenerateAvailableToolsContent ¶ added in v0.1.6
GenerateAvailableToolsContent generates a string containing the JSON representation of the provided tools array, wrapped in [AVAILABLE_TOOLS] and [/AVAILABLE_TOOLS] tags.
✋ it works for mistral:7b
Parameters: - tools: an array of llm.Tool objects representing the tools to be converted to JSON.
Returns: - string: the JSON representation of the tools array, wrapped in [AVAILABLE_TOOLS] and [/AVAILABLE_TOOLS] tags. - error: an error if the JSON marshaling fails.
func GenerateSystemToolsInstructions ¶ added in v0.1.6
func GenerateSystemToolsInstructions() string
GenerateSystemToolsInstructions generates a string containing the system content instructions for using "function calling".
✋ Use it only if the LLM does not implement function calling.
func GenerateUserToolsInstructions ¶ added in v0.1.6
GenerateUserToolsInstructions generates a string containing the user message wrapped in [INST] and [/INST] tags.
✋ it works for mistral:7b
Parameters: - userMessage: a string representing the user message to be wrapped.
Returns: - string: the user message wrapped in [INST] and [/INST] tags.
Types ¶
This section is empty.