|
1 | 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | | -from typing import Dict, List, Optional |
| 3 | +from typing import List, Optional |
4 | 4 | from typing_extensions import Literal |
5 | 5 |
|
6 | 6 | from ..._models import BaseModel |
7 | 7 | from ..completion_usage import CompletionUsage |
8 | 8 | from .chat_completion_message import ChatCompletionMessage |
9 | 9 | from .chat_completion_token_logprob import ChatCompletionTokenLogprob |
10 | 10 |
|
11 | | -__all__ = [ |
12 | | - "ChatCompletion", |
13 | | - "Choice", |
14 | | - "ChoiceLogprobs", |
15 | | - "McpListTool", |
16 | | - "McpListToolTool", |
17 | | - "UsageBreakdown", |
18 | | - "UsageBreakdownModel", |
19 | | -] |
| 11 | +__all__ = ["ChatCompletion", "Choice", "ChoiceLogprobs", "UsageBreakdown", "UsageBreakdownModel"] |
20 | 12 |
|
21 | 13 |
|
22 | 14 | class ChoiceLogprobs(BaseModel): |
@@ -44,31 +36,6 @@ class Choice(BaseModel): |
44 | 36 | """A chat completion message generated by the model.""" |
45 | 37 |
|
46 | 38 |
|
47 | | -class McpListToolTool(BaseModel): |
48 | | - description: str |
49 | | - """The description of the discovered tool""" |
50 | | - |
51 | | - input_schema: Dict[str, object] |
52 | | - """JSON schema describing the tool's input parameters""" |
53 | | - |
54 | | - name: str |
55 | | - """The name of the discovered tool""" |
56 | | - |
57 | | - |
58 | | -class McpListTool(BaseModel): |
59 | | - id: str |
60 | | - """Unique identifier for the MCP discovery operation""" |
61 | | - |
62 | | - server_label: str |
63 | | - """Label or identifier for the MCP server""" |
64 | | - |
65 | | - tools: List[McpListToolTool] |
66 | | - """List of tools discovered from the MCP server""" |
67 | | - |
68 | | - type: Literal["mcp_list_tools"] |
69 | | - """The type of output, always "mcp_list_tools" """ |
70 | | - |
71 | | - |
72 | 39 | class UsageBreakdownModel(BaseModel): |
73 | 40 | model: str |
74 | 41 | """The name/identifier of the model used""" |
@@ -101,9 +68,6 @@ class ChatCompletion(BaseModel): |
101 | 68 | object: Literal["chat.completion"] |
102 | 69 | """The object type, which is always `chat.completion`.""" |
103 | 70 |
|
104 | | - mcp_list_tools: Optional[List[McpListTool]] = None |
105 | | - """List of tools discovered from MCP servers during the request.""" |
106 | | - |
107 | 71 | system_fingerprint: Optional[str] = None |
108 | 72 | """This fingerprint represents the backend configuration that the model runs with. |
109 | 73 |
|
|
0 commit comments