Skip to content

Commit d7835c8

Browse files
committed
Remove unused code
1 parent 3c972a6 commit d7835c8

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

packages/agents-openai/src/tools.ts

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)