Initial codex telegram bot source
This commit is contained in:
18
internal/codexapp/turn.go
Normal file
18
internal/codexapp/turn.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user