17
17
18
18
19
19
@router .post (
20
- "/agents/ " ,
20
+ "/" ,
21
21
response_model = AgentResponse ,
22
- tags = ["agents" ],
23
22
operation_id = "create_agent" ,
24
23
)
25
24
async def create_agent (request : AgentRequest ) -> AgentResponse :
@@ -33,9 +32,8 @@ async def create_agent(request: AgentRequest) -> AgentResponse:
33
32
34
33
35
34
@router .get (
36
- "/agents/ {agent_id}" ,
35
+ "/{agent_id}" ,
37
36
response_model = AgentResponse ,
38
- tags = ["agents" ],
39
37
operation_id = "get_agent" ,
40
38
)
41
39
async def get_agent (agent_id : str ) -> AgentResponse :
@@ -49,9 +47,8 @@ async def get_agent(agent_id: str) -> AgentResponse:
49
47
50
48
51
49
@router .get (
52
- "/agents/ " ,
50
+ "/" ,
53
51
response_model = AgentListResponse ,
54
- tags = ["agents" ],
55
52
operation_id = "list_agents" ,
56
53
)
57
54
async def list_agents (
@@ -67,8 +64,7 @@ async def list_agents(
67
64
68
65
69
66
@router .delete (
70
- "/agents/{agent_id}" ,
71
- tags = ["agents" ],
67
+ "/{agent_id}" ,
72
68
operation_id = "delete_agent" ,
73
69
)
74
70
async def delete_agent (agent_id : str ) -> dict :
@@ -86,9 +82,8 @@ async def delete_agent(agent_id: str) -> dict:
86
82
87
83
88
84
@router .post (
89
- "/agents/ {agent_id}/chat" ,
85
+ "/{agent_id}/chat" ,
90
86
response_model = ChatResponse ,
91
- tags = ["agents" ],
92
87
operation_id = "chat_with_agent" ,
93
88
)
94
89
async def chat_with_agent (agent_id : str , request : ChatRequest ) -> ChatResponse :
@@ -102,9 +97,8 @@ async def chat_with_agent(agent_id: str, request: ChatRequest) -> ChatResponse:
102
97
103
98
104
99
@router .post (
105
- "/agents/ threads/" ,
100
+ "/threads/" ,
106
101
response_model = ThreadResponse ,
107
- tags = ["agents" ],
108
102
operation_id = "create_thread" ,
109
103
)
110
104
async def create_thread (request : ThreadRequest ) -> ThreadResponse :
@@ -118,9 +112,8 @@ async def create_thread(request: ThreadRequest) -> ThreadResponse:
118
112
119
113
120
114
@router .get (
121
- "/agents/ threads/{thread_id}" ,
115
+ "/threads/{thread_id}" ,
122
116
response_model = ThreadResponse ,
123
- tags = ["agents" ],
124
117
operation_id = "get_thread" ,
125
118
)
126
119
async def get_thread (thread_id : str ) -> ThreadResponse :
@@ -134,8 +127,7 @@ async def get_thread(thread_id: str) -> ThreadResponse:
134
127
135
128
136
129
@router .delete (
137
- "/agents/threads/{thread_id}" ,
138
- tags = ["agents" ],
130
+ "/threads/{thread_id}" ,
139
131
operation_id = "delete_thread" ,
140
132
)
141
133
async def delete_thread (thread_id : str ) -> dict :
@@ -153,9 +145,8 @@ async def delete_thread(thread_id: str) -> dict:
153
145
154
146
155
147
@router .get (
156
- "/agents/ threads/" ,
148
+ "/threads/" ,
157
149
response_model = ThreadListResponse ,
158
- tags = ["agents" ],
159
150
operation_id = "list_threads" ,
160
151
)
161
152
async def list_threads (
0 commit comments