on a specific function_tool, make it not appear on...
# ask-ai
c
on a specific function_tool, make it not appear on llm context
t
Thanks for reaching out, Antoine. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To hide a specific function tool from the LLM context, you can use the
copy
method of the
ChatContext
class with the
tools
parameter. This allows you to selectively include only certain tools when sending the context to the LLM. Here's an example:
Copy code
# Create a copy of the chat context with only specific tools
filtered_context = chat_context.copy(
    tools=[tool1, tool2]  # Only include these specific tools
)
Any function calls or outputs related to tools not in the provided list will be excluded from the context. Sources: Tree View: | dse-workbench