-
Notifications
You must be signed in to change notification settings - Fork 56
langsmith: clarifications to messages format #655
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
base: main
Are you sure you want to change the base?
Conversation
Preview ID generated: preview-llmcal-1758848807-b95b6b2 |
Preview ID generated: preview-llmcal-1759194510-092ba06 |
Preview ID generated: preview-llmcal-1759195340-f7db8a9 |
Preview ID generated: preview-llmcal-1759195522-41a72bb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think table of contents can be better (too much under "Tracing a Model with a Custom Input/Output Format") . input/output format should be at a higher level. there should probably be more explicit setions for tool calls and content blocks. O
class LangSmithOutputs(BaseModel): | ||
"""The output format LangSmith expects.""" | ||
|
||
def process_inputs(inputs: dict) -> dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a real example?
Preview ID generated: preview-llmcal-1759474889-0b7785c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, couple of edits to consider.
] | ||
chat_model_choices(inputs) | ||
``` | ||
<Expandable title="the code"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could leave in a regular, open code block — but your call.
Goals
To-do:
Preview deployment: https://langchain-5e9cc07a-preview-llmcal-1759474889-0b7785c.mintlify.app/langsmith/log-llm-trace