Repository navigation
Charts carry their source, small and muted in the bottom left corner - #60
Merged
Merged
Conversation
Every chart tool (weather_history, weather_days, weather_link, air_quality, air_days, plot_chart, air_link, air_scan) is offered a
`source` argument, and the prompt asks the model to name the site, tool or URL the data came from. Without one, the tool's own
device is used ("Ecowitt weather station", "AirGradient sensor"; the composer names the devices its readings come from). The source
is set for the length of one tool call (a context variable, so calls made together don't mix) and taken by the charts built in it;
it is cut to one line of 60 characters. The panels give up 0.07 in at the foot for it, clear of the time axis's labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Ending at 00:00 on the 1st of a month (yesterday being the 1st in the station's time zone) gave that month a row of its one reading, whose low equals its high, so the test failed on those days. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every chart now shows a small, muted "Source: …" line in its bottom-left corner.
weather_history,weather_days,weather_link,air_quality,air_days,plot_chart,air_link,air_scan) takes an optionalsourceargument. One new prompt line asks the model to give the site, tool or URL the data came from, and not to repeat it in its reply.tests/test_chart_source.py.Known:
test_year_long_questions_get_dated_monthly_figures_once_the_history_is_cachedfails on the unchanged base too. It may depend on the date and is not related to this change.Generated by Claude Code