feat: add 'uri' for context items for http context provider

This commit is contained in:
Vignesh.V 2025-07-08 18:27:20 +05:30
parent 922441918a
commit 1b28153c72
2 changed files with 31 additions and 0 deletions

View file

@ -72,6 +72,10 @@ class HttpContextProvider extends BaseContextProvider {
description: item.description ?? "HTTP Context Item",
content: item.content ?? "",
name: item.name ?? this.options.title ?? "HTTP",
uri: {
type: item.uri.type,
value: item.uri.value,
},
});
return Array.isArray(json)

View file

@ -987,6 +987,33 @@ The response 200 OK should be a JSON object with the following structure:
"description": "",
"content": ""
}
// For response context items with hyperlinks
[
{
"name": "",
"description": "",
"content": "",
"uri": {
"type": "file" or "url",
"value": "file:///path/to/file" or "https://example.com",
}
}
]
// OR
{
"name": "",
"description": "",
"content": "",
"uri": {
"type": "file" or "url",
"value": "file:///path/to/file" or "https://example.com",
}
}
```
### `@Commits`