Skip to content

Commit 6f51c80

Browse files
committed
refactor: removes role-message text methods
1 parent eb386cf commit 6f51c80

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

src/Messages/DTO/ModelMessage.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,4 @@ public function __construct(array $parts)
2727
{
2828
parent::__construct(MessageRoleEnum::model(), $parts);
2929
}
30-
31-
/**
32-
* Creates a model message from a simple text string.
33-
*
34-
* @since n.e.x.t
35-
*
36-
* @param string $text The text content.
37-
* @return self
38-
*/
39-
public static function text(string $text): self
40-
{
41-
return new self([MessagePart::text($text)]);
42-
}
4330
}

src/Messages/DTO/SystemMessage.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,4 @@ public function __construct(array $parts)
2727
{
2828
parent::__construct(MessageRoleEnum::system(), $parts);
2929
}
30-
31-
/**
32-
* Creates a system message from a simple text string.
33-
*
34-
* @since n.e.x.t
35-
*
36-
* @param string $text The text content.
37-
* @return self
38-
*/
39-
public static function text(string $text): self
40-
{
41-
return new self([MessagePart::text($text)]);
42-
}
4330
}

src/Messages/DTO/UserMessage.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,4 @@ public function __construct(array $parts)
2626
{
2727
parent::__construct(MessageRoleEnum::user(), $parts);
2828
}
29-
30-
/**
31-
* Creates a user message from a simple text string.
32-
*
33-
* @since n.e.x.t
34-
*
35-
* @param string $text The text content.
36-
* @return self
37-
*/
38-
public static function text(string $text): self
39-
{
40-
return new self([MessagePart::text($text)]);
41-
}
4229
}

0 commit comments

Comments
 (0)