AddMessageToSession adds a message to the current session on the remote server.
(ctx context.Context, msg *session.Message)
| 733 | |
| 734 | // AddMessageToSession adds a message to the current session on the remote server. |
| 735 | func (r *RemoteRuntime) AddMessageToSession(ctx context.Context, msg *session.Message) error { |
| 736 | if r.sessionID == "" { |
| 737 | return errors.New("no active session") |
| 738 | } |
| 739 | return r.client.AddMessage(ctx, r.sessionID, msg) |
| 740 | } |
| 741 | |
| 742 | // UpdateSessionMessage updates a message in the current session on the remote server. |
| 743 | func (r *RemoteRuntime) UpdateSessionMessage(ctx context.Context, msgID string, msg *session.Message) error { |
nothing calls this directly
no test coverage detected