Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Sep 10, 2025

Features/improvements inspired by the following problem

import chatlas as ctl

chat = ctl.ChatAnthropic()

def get_current_temperature(latitude: float, longitude: float):
    return "72°F."


chat.register_tool(get_current_temperature)

chat.chat("How is the weather in Duluth, MN today?")

# Doesn't render the tool displays correctly
chat.app()

@cpsievert cpsievert force-pushed the fix/app-static-messages branch from d62bbcf to e8519fd Compare September 10, 2025 16:51
@cpsievert cpsievert changed the title fix: rendering of pre-populated messages in the .app() method fix: .app() method now correctly renders pre-populated turns that contain tool calls Sep 10, 2025
@cpsievert cpsievert force-pushed the fix/app-static-messages branch from e8519fd to 9f4e7a4 Compare September 10, 2025 16:53
@cpsievert cpsievert force-pushed the fix/app-static-messages branch from 9f4e7a4 to d5d142a Compare September 10, 2025 16:55
@cpsievert cpsievert force-pushed the fix/app-static-messages branch from 1c5a4ce to a1ce265 Compare September 10, 2025 19:08
@cpsievert cpsievert force-pushed the fix/app-static-messages branch from 2720345 to efa78d0 Compare September 10, 2025 20:25
@cpsievert cpsievert changed the title fix: .app() method now correctly renders pre-populated turns that contain tool calls feat: Add .get_turns(tool_result_role=...); fix/improve .app() method Sep 10, 2025
@cpsievert cpsievert requested a review from Copilot September 10, 2025 20:34

This comment was marked as resolved.

@cpsievert cpsievert marked this pull request as ready for review September 10, 2025 20:58
@cpsievert cpsievert merged commit d6f8124 into main Sep 10, 2025
12 of 14 checks passed
@cpsievert cpsievert deleted the fix/app-static-messages branch November 6, 2025 15:33
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