MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / start_conversation

Function start_conversation

scripts/issue_good_first_issue_check_openhands.py:218–239  ·  view source on GitHub ↗
(
    prompt: str, repository: str, issue_number: int
)

Source from the content-addressed store, hash-verified

216
217
218def start_conversation(
219 prompt: str, repository: str, issue_number: int
220) -> dict[str, Any]:
221 body = {
222 'title': f'Good first issue check #{issue_number}',
223 'selected_repository': repository,
224 'initial_message': {
225 'content': [
226 {
227 'type': 'text',
228 'text': prompt,
229 }
230 ]
231 },
232 }
233 return request_json(
234 OPENHANDS_BASE_URL,
235 '/api/v1/app-conversations',
236 method='POST',
237 headers=openhands_headers(),
238 body=body,
239 )
240
241
242def extract_first_item(payload: Any) -> dict[str, Any] | None:

Callers 1

mainFunction · 0.70

Calls 2

request_jsonFunction · 0.70
openhands_headersFunction · 0.70

Tested by

no test coverage detected