19 lines
418 B
Go
19 lines
418 B
Go
package codexapp
|
|
|
|
import (
|
|
"context"
|
|
"encoding/json"
|
|
)
|
|
|
|
func (c *Client) SteerTurn(ctx context.Context, threadID, expectedTurnID string, input []InputItem) error {
|
|
if err := c.EnsureConnected(ctx); err != nil {
|
|
return err
|
|
}
|
|
var ignored json.RawMessage
|
|
return c.call(ctx, "turn/steer", map[string]any{
|
|
"threadId": threadID,
|
|
"expectedTurnId": expectedTurnID,
|
|
"input": input,
|
|
}, &ignored)
|
|
}
|