Skip to content

Check links in markdown files #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 29, 2025
Prev Previous commit
Next Next commit
Fix balancing of back-ticks
Signed-off-by: David Gardner <dagardner@nvidia.com>
  • Loading branch information
dagardner-nv committed May 15, 2025
commit b9b814eb39a08f0d3d0c05e1028461621764d989
5 changes: 3 additions & 2 deletions examples/simple_calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ curl -X 'POST' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"input_message": "Is the product of 2 * 4 greater than the current hour of the day?"}'
```
```

### Expected API Output
The API response should be similar to the following:
Expand All @@ -257,6 +257,7 @@ The API response should be similar to the following:
"output": "No, the product of 2 * 4 (which is 8) is less than the current hour of the day (which is 16)."
}
```

## Accessing Request Metadata
Users can define custom routes that are dynamically added to the API server, and capture HTTP request metadata such
as the method, URL path, URL scheme, headers, query parameters, path parameters, host, port, and cookies.
Expand All @@ -274,7 +275,7 @@ general:
method: POST
description: Gets the request attributes from the request.
function_name: current_request_attributes
```
```

### Access the request metadata
Get the instance of the `aiq.builder.context.AIQContext` object using the `aiq.builder.context.AIQContext.get()` method. This will give you access to the metadata method which holds the request attributes defined by the user on request. A complete example of the function can be found in `src/aiq/tool/server_tools.py.`
Expand Down