Feature: scriptable citations / annotations on text responses
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- ai-infra-agents, api, testing
Direzione di ricerca
Start with the TextResponse and ContentWithToolCallsResponse response types, then trace the Responses, Chat Completions, Anthropic, and Gemini serialization and streaming paths. Locate tests covering output_text.annotations and provider-specific streaming events. Done means optional citations round-trip in each supported wire format, including streaming annotations or citation deltas.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Responses API output_text parts are always emitted with annotations: [], and Chat Completions / Anthropic / Gemini have no citation equivalent. There is no way to script a model turn that returns sources, so clients that surface citations (e.g. the AI SDK source stream part) can't be tested end-to-end against aimock.
Proposal
An optional citations (or annotations) field on TextResponse / ContentWithToolCallsResponse, e.g.
llm.on({ endpoint: 'responses' }, {
content: 'Paris is the capital of France.',
citations: [{ type: 'url', url: 'https://example.com/paris', title: 'Paris', startIndex: 0, endIndex: 5 }],
});
Emitted per provider wire format:
- OpenAI Responses:
url_citation(andfile_citation) entries inoutput_text.annotations, plusresponse.output_text.annotation.addedevents when streaming - Chat Completions:
message.annotations/delta.annotations(url_citation) - Anthropic:
citationson text blocks (citations_deltawhen streaming) - Gemini:
groundingMetadata.groundingChunks/groundingSupports
Use case
Mastra is moving its agent-loop regression tests from hand-written mock models to aimock scenarios; source/citation propagation is one of the few behaviours we can't currently cover.
- Lingua principale
- TypeScript
- Stelle
- 979
- Fork
- 84
- Merge medio
- 1g 5h
- PR unite (30g)
- 75
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CopilotKit/aimock
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
CopilotKit/aimock#549 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Feature: model-generated files (inline images) in chat/responses turnsForse già presa @abhiaiyer91 l’ha presa 5 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
CopilotKit/aimock#548 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Dependency DashboardAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
CopilotKit/aimock#289 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CopilotKit/aimock
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
maniator/verticopolis#1303 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
components-web-app/docs#297 ·
-
listFeatures/getFeatureExamples never return Kotlin examples for Android or server Kotlin SDKsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
appwrite/mcp-for-docs#23 · 1 commento ·
-
`@vanilla-extract/turbopack-plugin`: "getImageSize is not a function" with Next.js 16.4.x when a `.css.ts` file imports an imageForse già presa @aevarOrigo l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vanilla-extract-css/vanilla-extract#1799 · 1 commento ·
-
native
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
prime-radiant-inc/evener#4839 ·
I maintainer di solito rispondono entro 1 giorno