Skip to content

preps for initial prompt caching#13

Merged
shellygr merged 5 commits intomasterfrom
shelly/cacheInitialPrompt
Apr 4, 2026
Merged

preps for initial prompt caching#13
shellygr merged 5 commits intomasterfrom
shelly/cacheInitialPrompt

Conversation

@shellygr
Copy link
Copy Markdown
Contributor

@shellygr shellygr commented Apr 2, 2026

No description provided.

shellygr and others added 2 commits March 18, 2026 17:15
@shellygr shellygr requested a review from jtoman April 2, 2026 11:24
graph.py Outdated
Comment on lines +271 to +272
# Handle initial_prompt as either str or dict (with cache_control)
initial_content: str | list[str | dict] = [initial_prompt] if isinstance(initial_prompt, dict) else initial_prompt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, since we have list[str | dict] can't you just do [initial_prompt] unconditionally?

@shellygr shellygr merged commit 43fc111 into master Apr 4, 2026
2 checks passed
@shellygr shellygr deleted the shelly/cacheInitialPrompt branch April 4, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants