Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add print method #948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add print method #948

wants to merge 1 commit into from

Conversation

ahuang11
Copy link
Contributor

As I was tailoring the AnalystAgent, I wanted to know what was the base prompt to build off from there.

I remember we discussed this before, and I still feel strongly about having a way to examine the prompts without having to open a browser and navigate to the code base, or having to type all of print(lmai.agents.AnalystAgent.prompts["main"]["template"].read_text()) every time I want to read the default prompt (nested dict too which can be confusing to a new user who simply wants to modify the prompt).

Now, it's simplified down to lmai.agents.AnalystAgent.print_prompt_template(), but not sure if need both methods (e.g. get_prompt_template).

image

@ahuang11 ahuang11 requested a review from philippjfr January 24, 2025 23:55
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 58.40%. Comparing base (7b1a8bb) to head (1a36a66).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
lumen/ai/actor.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #948      +/-   ##
==========================================
- Coverage   58.40%   58.40%   -0.01%     
==========================================
  Files         109      109              
  Lines       13914    13921       +7     
==========================================
+ Hits         8127     8131       +4     
- Misses       5787     5790       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant