Skip to content

Files

Latest commit

 

History

History
18 lines (17 loc) · 539 Bytes

request_format.md

File metadata and controls

18 lines (17 loc) · 539 Bytes

Requests to your agent will be application/json formatted. An example curl request to your agent may look like this:

curl --request POST \
    --url $AGENT_URL \
    --header 'Accept: application/json' \
    --header 'Content-Type: application/json' \
    --header "X-GitHub-Token: $RUNTIME_GENERATED_TOKEN" \
    --data '{
        "messages": [
            {
                "role": "user",
                "content": "What is a closure in javascript?",
                "copilot_references": []
            }
        ]
    }'