Unverified Commit 46e6327e authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

api: add stringifier for `Tool` (#5891)

parent 68ee42f9
...@@ -114,6 +114,11 @@ func (t Tools) String() string { ...@@ -114,6 +114,11 @@ func (t Tools) String() string {
return string(bts) return string(bts)
} }
func (t Tool) String() string {
bts, _ := json.Marshal(t)
return string(bts)
}
// Message is a single message in a chat sequence. The message contains the // Message is a single message in a chat sequence. The message contains the
// role ("system", "user", or "assistant"), the content and an optional list // role ("system", "user", or "assistant"), the content and an optional list
// of images. // of images.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment