(c *apiClient, sessionID string)
| 567 | } |
| 568 | |
| 569 | func showSessionTools(c *apiClient, sessionID string) { |
| 570 | sess, err := c.getSession(sessionID) |
| 571 | if err != nil { |
| 572 | fmt.Printf(" error: %v\n", err) |
| 573 | return |
| 574 | } |
| 575 | if len(sess.Tools) == 0 { |
| 576 | fmt.Println(" No tools observed yet.") |
| 577 | return |
| 578 | } |
| 579 | fmt.Println() |
| 580 | fmt.Printf(" %-30s %s\n", "Tool Name", "Schema Keys") |
| 581 | printSep(60) |
| 582 | for _, t := range sess.Tools { |
| 583 | fmt.Printf(" %-30s %s\n", t.Name, schemaKeys(t.Schema)) |
| 584 | } |
| 585 | fmt.Println() |
| 586 | } |
| 587 | |
| 588 | func showSessionInfo(c *apiClient, sessionID string) { |
| 589 | sess, err := c.getSession(sessionID) |
no test coverage detected