freeplay 0.5.0a5__tar.gz → 0.5.0a6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/PKG-INFO +1 -1
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/pyproject.toml +1 -1
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/prompts.py +7 -2
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/recordings.py +5 -7
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/LICENSE +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/README.md +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/__init__.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/api_support.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/errors.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/freeplay.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/freeplay_cli.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/llm_parameters.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/model.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/py.typed +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/__init__.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/adapters.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/customer_feedback.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/sessions.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/test_cases.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/resources/test_runs.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/support.py +0 -0
- {freeplay-0.5.0a5 → freeplay-0.5.0a6}/src/freeplay/utils.py +0 -0
@@ -93,12 +93,17 @@ GenericProviderMessage = ProviderMessage
|
|
93
93
|
|
94
94
|
|
95
95
|
# SDK-Exposed Classes
|
96
|
+
|
97
|
+
@dataclass
|
98
|
+
class PromptVersionInfo:
|
99
|
+
prompt_template_version_id: str
|
100
|
+
environment: Optional[str]
|
101
|
+
|
96
102
|
@dataclass
|
97
|
-
class PromptInfo:
|
103
|
+
class PromptInfo(PromptVersionInfo):
|
98
104
|
prompt_template_id: str
|
99
105
|
prompt_template_version_id: str
|
100
106
|
template_name: str
|
101
|
-
environment: Optional[str]
|
102
107
|
model_parameters: LLMParameters
|
103
108
|
provider_info: Optional[Dict[str, Any]]
|
104
109
|
provider: str
|
@@ -11,14 +11,13 @@ from freeplay.errors import FreeplayClientError, FreeplayError
|
|
11
11
|
from freeplay.llm_parameters import LLMParameters
|
12
12
|
from freeplay.model import (
|
13
13
|
InputVariables,
|
14
|
-
MediaInput,
|
15
14
|
MediaInputMap,
|
16
|
-
MediaInputUrl,
|
17
15
|
OpenAIFunctionCall,
|
18
16
|
TestRunInfo,
|
19
17
|
)
|
20
18
|
from freeplay.resources.prompts import (
|
21
19
|
PromptInfo,
|
20
|
+
PromptVersionInfo,
|
22
21
|
)
|
23
22
|
from freeplay.resources.sessions import SessionInfo, TraceInfo
|
24
23
|
from freeplay.support import CallSupport, media_inputs_to_json
|
@@ -85,7 +84,7 @@ class RecordPayload:
|
|
85
84
|
default_factory=lambda: SessionInfo(session_id=str(uuid4()), custom_metadata=None)
|
86
85
|
)
|
87
86
|
inputs: Optional[InputVariables] = None
|
88
|
-
|
87
|
+
prompt_version_info: Optional[PromptVersionInfo] = None
|
89
88
|
call_info: Optional[CallInfo] = None
|
90
89
|
media_inputs: Optional[MediaInputMap] = None
|
91
90
|
tool_schema: Optional[List[Dict[str, Any]]] = None
|
@@ -128,13 +127,12 @@ class Recordings:
|
|
128
127
|
"inputs": record_payload.inputs,
|
129
128
|
"tool_schema": record_payload.tool_schema,
|
130
129
|
"session_info": {"custom_metadata": record_payload.session_info.custom_metadata},
|
131
|
-
|
132
130
|
}
|
133
131
|
|
134
|
-
if record_payload.
|
132
|
+
if record_payload.prompt_version_info is not None:
|
135
133
|
record_api_payload["prompt_info"] = {
|
136
|
-
"environment": record_payload.
|
137
|
-
"prompt_template_version_id": record_payload.
|
134
|
+
"environment": record_payload.prompt_version_info.environment,
|
135
|
+
"prompt_template_version_id": record_payload.prompt_version_info.prompt_template_version_id,
|
138
136
|
}
|
139
137
|
|
140
138
|
if record_payload.call_info is not None:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|