cool-camera-83057
05/09/2025, 9:14 AMtall-airline-16756
05/09/2025, 9:14 AMtall-airline-16756
05/09/2025, 9:14 AMcopy 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:
# 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