99from ...models .error_response import ErrorResponse
1010from ...models .insufficient_balance_error import InsufficientBalanceError
1111from ...models .operation_response import OperationResponse
12- from ...types import Response
12+ from ...types import UNSET , Response , Unset
1313
1414
1515def _get_kwargs (
1616 * ,
1717 body : AgentMapOperation ,
18+ x_cohort_source : None | str | Unset = UNSET ,
1819) -> dict [str , Any ]:
1920 headers : dict [str , Any ] = {}
21+ if not isinstance (x_cohort_source , Unset ):
22+ headers ["X-Cohort-Source" ] = x_cohort_source
2023
2124 _kwargs : dict [str , Any ] = {
2225 "method" : "post" ,
@@ -70,6 +73,7 @@ def sync_detailed(
7073 * ,
7174 client : AuthenticatedClient ,
7275 body : AgentMapOperation ,
76+ x_cohort_source : None | str | Unset = UNSET ,
7377) -> Response [ErrorResponse | InsufficientBalanceError | OperationResponse ]:
7478 """Parallel AI research agents
7579
@@ -82,6 +86,7 @@ def sync_detailed(
8286 `include_research`
8387
8488 Args:
89+ x_cohort_source (None | str | Unset):
8590 body (AgentMapOperation):
8691
8792 Raises:
@@ -94,6 +99,7 @@ def sync_detailed(
9499
95100 kwargs = _get_kwargs (
96101 body = body ,
102+ x_cohort_source = x_cohort_source ,
97103 )
98104
99105 response = client .get_httpx_client ().request (
@@ -107,6 +113,7 @@ def sync(
107113 * ,
108114 client : AuthenticatedClient ,
109115 body : AgentMapOperation ,
116+ x_cohort_source : None | str | Unset = UNSET ,
110117) -> ErrorResponse | InsufficientBalanceError | OperationResponse | None :
111118 """Parallel AI research agents
112119
@@ -119,6 +126,7 @@ def sync(
119126 `include_research`
120127
121128 Args:
129+ x_cohort_source (None | str | Unset):
122130 body (AgentMapOperation):
123131
124132 Raises:
@@ -132,13 +140,15 @@ def sync(
132140 return sync_detailed (
133141 client = client ,
134142 body = body ,
143+ x_cohort_source = x_cohort_source ,
135144 ).parsed
136145
137146
138147async def asyncio_detailed (
139148 * ,
140149 client : AuthenticatedClient ,
141150 body : AgentMapOperation ,
151+ x_cohort_source : None | str | Unset = UNSET ,
142152) -> Response [ErrorResponse | InsufficientBalanceError | OperationResponse ]:
143153 """Parallel AI research agents
144154
@@ -151,6 +161,7 @@ async def asyncio_detailed(
151161 `include_research`
152162
153163 Args:
164+ x_cohort_source (None | str | Unset):
154165 body (AgentMapOperation):
155166
156167 Raises:
@@ -163,6 +174,7 @@ async def asyncio_detailed(
163174
164175 kwargs = _get_kwargs (
165176 body = body ,
177+ x_cohort_source = x_cohort_source ,
166178 )
167179
168180 response = await client .get_async_httpx_client ().request (** kwargs )
@@ -174,6 +186,7 @@ async def asyncio(
174186 * ,
175187 client : AuthenticatedClient ,
176188 body : AgentMapOperation ,
189+ x_cohort_source : None | str | Unset = UNSET ,
177190) -> ErrorResponse | InsufficientBalanceError | OperationResponse | None :
178191 """Parallel AI research agents
179192
@@ -186,6 +199,7 @@ async def asyncio(
186199 `include_research`
187200
188201 Args:
202+ x_cohort_source (None | str | Unset):
189203 body (AgentMapOperation):
190204
191205 Raises:
@@ -200,5 +214,6 @@ async def asyncio(
200214 await asyncio_detailed (
201215 client = client ,
202216 body = body ,
217+ x_cohort_source = x_cohort_source ,
203218 )
204219 ).parsed
0 commit comments