Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
MentorHostedTools enum
Provider-hosted tools the coordinator may use (roadmap #15 — Agent Framework hosted tools).
On this page
Unlike [MentorAction] function tools, these are not executed by your application: they run on the model provider's infrastructure during inference. MentorAgent only declares them, which is exactly what the Agent Framework does (HostedWebSearchTool, HostedCodeInterpreterTool, HostedFileSearchTool, HostedImageGenerationTool, HostedMcpServerTool from Microsoft.Extensions.AI).
⚠️ Availability depends on the provider. Azure OpenAI / OpenAI Responses clients support the full set; the Chat Completions client supports web search only. Enabling a tool the provider does not support makes the provider reject the call — see the package README.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public enum MentorHostedTools
dotnet add package Novior.MentorAgent.AbstractionsValues
Section titled “Values”| Value | Number | Description |
|---|---|---|
None | 0 | No hosted tools (default). |
WebSearch | 1 | Web search — the provider searches the web for up-to-date information (current events, documentation, anything past the model's training cut-off). |
CodeInterpreter | 2 | Code interpreter — the provider writes and runs code in its own sandbox for exact computation, data analysis and file processing. The code never runs on your servers. |
FileSearch | 4 | File search — the provider searches documents you uploaded to its vector store(s). Requires MentorOptions.FileSearchVectorStoreIds. |
ImageGeneration | 8 | Image generation — the provider generates images from the conversation and returns them inline. The generated images are rendered in the message bubble. |
HostedMcp | 16 | Hosted MCP — the provider connects to a remote MCP server and calls its tools during inference (as opposed to MentorOptions.McpServers, where your process is the MCP client). Requires MentorOptions.HostedMcpServers. |
