Use Port of Context (pctx) for code mode (#6765)
Signed-off-by: Elias Posen <elias@posen.ch> Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -72,7 +72,7 @@ pub async fn run_mcp_http_server<S: Session>() {
|
||||
pub async fn run_builtin_and_mcp<S: Session>() {
|
||||
let expected_session_id = ExpectedSessionId::default();
|
||||
let prompt =
|
||||
"Search for get_code and text_editor tools. Use them to save the code to /tmp/result.txt.";
|
||||
"Search for getCode and textEditor tools. Use them to save the code to /tmp/result.txt.";
|
||||
let mcp = McpFixture::new(expected_session_id.clone()).await;
|
||||
let openai = OpenAiFixture::new(
|
||||
vec: string - Get the code"#.into(),
|
||||
r#"export async function getCode"#.into(),
|
||||
include_str!("../test_data/openai_builtin_execute.txt"),
|
||||
),
|
||||
(
|
||||
r#"Successfully wrote to /tmp/result.txt"#.into(),
|
||||
r#""writeResult": "Successfully wrote to /tmp/result.txt"#.into(),
|
||||
include_str!("../test_data/openai_builtin_final.txt"),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user