Skip to content

Improve Langfuse prompts listing and packaging#16

Merged
jgwill merged 11 commits intomainfrom
codex/fix-langfuse-prompts-list-pagination-2025-06-15-14-04-57
Jun 15, 2025
Merged

Improve Langfuse prompts listing and packaging#16
jgwill merged 11 commits intomainfrom
codex/fix-langfuse-prompts-list-pagination-2025-06-15-14-04-57

Conversation

@jgwill
Copy link
Copy Markdown
Owner

@jgwill jgwill commented Jun 15, 2025

Summary

  • handle missing config with defaults
  • paginate through all Langfuse prompt pages
  • add TestPyPI upload target and twine dependency
  • document build steps
  • update docs with pagination note

Testing

  • pytest -q
  • make build
  • make upload-test (fails: 403 Forbidden due to missing credentials)

https://chatgpt.com/codex/tasks/task_e_684ed071a3e08329a2229af62562f7de


APPENDIX


FUSE DOCS

Langfuse Integration

  • Added a new Python module cofuse.py to handle Langfuse HTTP requests using requests.
  • Provided commands in coaiacli.py under fuse subparser to manage:
    • Comments
    • Prompts
    • Datasets
    • Sessions (create a root trace and add child nodes)
  • Utilizes read_config() from coaiamodule for authentication details.
  • Exposes:
    • create_session(session_id, user_id, session_name)
    • add_trace_node(session_id, trace_id, user_id, node_name)
    • list_prompts(), get_prompt(...), create_prompt(...)
    • list_datasets(), get_dataset(...), create_dataset(...)
    • get_comments(), post_comment(...)

Usage

comments

• List comments:
coaia fuse comments list
• Post a new comment:
coaia fuse comments post "Your comment here"

prompts

• List prompts (all pages):
coaia fuse prompts list
• Get a specific prompt:
coaia fuse prompts get myPrompt
• Create a prompt:
coaia fuse prompts create myPrompt "Prompt text"

datasets

• List datasets:
coaia fuse datasets list
• Get a dataset:
coaia fuse datasets get myDataset
• Create a dataset:
coaia fuse datasets create myDataset

sessions

• Create a new session:
coaia fuse sessions create session123 userABC -n "My Session" -f mysession.yml
• Add a child node:
coaia fuse sessions addnode session123 trace01 userABC -n "First Node" -f mysession.yml
• View session file:
coaia fuse sessions view -f mysession.yml

scores (alias: sc)

• Create a new score:
coaia fuse scores create myScoreId -n "Score Name" -v 1.5
• Apply a score to a trace:
coaia fuse scores apply someTrace myScoreId -v 2.0


"coaia fuse "It is so much more than that..... but that is a start

@jgwill jgwill merged commit a3b251c into main Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant