Changesets · Branches · Tags · Compare
| Changeset | 1686aa828e856a85fcfae0f5c4838f87d413818aa04dfa786b126007a574ed8a |
|---|---|
| Author | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-07-09 09:05 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-07-09 09:05 -07:00 |
| Parents | e8ee99375f3e, 6df66bc619fc |
2 files changed
modified core/context/providers/HttpContextProvider.ts +4 −0
| @@ -72,6 +72,10 @@ | ||
| 72 | 72 | description: item.description ?? "HTTP Context Item", |
| 73 | 73 | content: item.content ?? "", |
| 74 | 74 | name: item.name ?? this.options.title ?? "HTTP", |
| 75 | + uri: { | |
| 76 | + type: item.uri.type, | |
| 77 | + value: item.uri.value, | |
| 78 | + }, | |
| 75 | 79 | }); |
| 76 | 80 | |
| 77 | 81 | return Array.isArray(json) |
modified docs/docs/customize/custom-providers.mdx +27 −0
| @@ -987,6 +987,33 @@ | ||
| 987 | 987 | "description": "", |
| 988 | 988 | "content": "" |
| 989 | 989 | } |
| 990 | + | |
| 991 | +// For response context items with hyperlinks | |
| 992 | + | |
| 993 | +[ | |
| 994 | + { | |
| 995 | + "name": "", | |
| 996 | + "description": "", | |
| 997 | + "content": "", | |
| 998 | + "uri": { | |
| 999 | + "type": "file" or "url", | |
| 1000 | + "value": "file:///path/to/file" or "https://example.com", | |
| 1001 | + } | |
| 1002 | + } | |
| 1003 | +] | |
| 1004 | + | |
| 1005 | +// OR | |
| 1006 | + | |
| 1007 | +{ | |
| 1008 | + "name": "", | |
| 1009 | + "description": "", | |
| 1010 | + "content": "", | |
| 1011 | + "uri": { | |
| 1012 | + "type": "file" or "url", | |
| 1013 | + "value": "file:///path/to/file" or "https://example.com", | |
| 1014 | + } | |
| 1015 | +} | |
| 1016 | + | |
| 990 | 1017 | ``` |
| 991 | 1018 | |
| 992 | 1019 | ### `@Commits` |