File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed
packages/agents-openai/src Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -189,40 +189,4 @@ export function imageGenerationTool(
189189 } ;
190190}
191191
192- /**
193- * A hosted MCP tool that lets the model call a remote MCP server directly
194- * without a round trip back to your code.
195- */
196- export type HostedMCPTool = HostedTool & {
197- name : 'hosted_mcp' ;
198- providerData : {
199- type : 'mcp' ;
200- serverLabel : string ;
201- serverUrl : string ;
202- requireApproval ?: 'never' | 'once' | 'always' ;
203- } ;
204- } ;
205-
206- /**
207- * Creates a hosted MCP tool definition.
208- *
209- * @param serverLabel - The label identifying the MCP server.
210- * @param serverUrl - The URL of the MCP server.
211- * @param requireApproval - Whether tool calls require approval.
212- */
213- export function hostedMcpTool ( options : {
214- serverLabel : string ;
215- serverUrl : string ;
216- requireApproval ?: 'never' | 'once' | 'always' ;
217- } ) : HostedMCPTool {
218- return {
219- type : 'hosted_tool' ,
220- name : 'hosted_mcp' ,
221- providerData : {
222- type : 'mcp' ,
223- serverLabel : options . serverLabel ,
224- serverUrl : options . serverUrl ,
225- requireApproval : options . requireApproval ,
226- } ,
227- } ;
228- }
192+ // HostedMCPTool exists in agents-core package
You can’t perform that action at this time.
0 commit comments